Enterprise Information Portal APIs

com.ibm.mm.viewer.annotation
Class CMBAnnotationResizedEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.mm.viewer.annotation.CMBAnnotationResizedEvent
All Implemented Interfaces:
java.io.Serializable

public class CMBAnnotationResizedEvent
extends java.util.EventObject

Generated by the annotation services when new annotation is resized.

Since:
8.1
See Also:
CMBAnnotationResizedListener, CMBAnnotationSet, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CMBAnnotationResizedEvent(java.lang.Object source, CMBAnnotationView view, CMBPageAnnotation annotation, java.awt.Point newPoint, java.awt.Point oldPoint)
          Constructs the event.
 
Method Summary
 CMBPageAnnotation getAnnotation()
          Returns the annotation object that was resized.
 CMBAnnotationSet getAnnotationModel()
          Returns the annotation model that changed.
 CMBAnnotationView getAnnotationView()
          Returns the annotation view that needs to be refreshed due to the change.
 java.awt.Point getNewPoint()
          Returns the new dimension by which the annotation's width and height has grown.
 java.awt.Point getOldPoint()
          Returns the old dimension of the resized annotation.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMBAnnotationResizedEvent

public CMBAnnotationResizedEvent(java.lang.Object source,
                                 CMBAnnotationView view,
                                 CMBPageAnnotation annotation,
                                 java.awt.Point newPoint,
                                 java.awt.Point oldPoint)
Constructs the event.
Parameters:
source - the source of the event.
annotation - the CMBPageAnnotation of the annotation.
newPoint - the new delta width and height of the annotation.
oldPoint - the old dimensions of the annotation.
Method Detail

getAnnotationModel

public CMBAnnotationSet getAnnotationModel()
Returns the annotation model that changed.
Returns:
CMBAnnotationSet the annotation model.

getAnnotationView

public CMBAnnotationView getAnnotationView()
Returns the annotation view that needs to be refreshed due to the change.
Returns:
CMBAnnotationView the annotation view.

getAnnotation

public CMBPageAnnotation getAnnotation()
Returns the annotation object that was resized.
Returns:
CMBPageAnnotation the annotation that resized.

getNewPoint

public java.awt.Point getNewPoint()
Returns the new dimension by which the annotation's width and height has grown.
Returns:
Point the new delta width and height of the annotation.

getOldPoint

public java.awt.Point getOldPoint()
Returns the old dimension of the resized annotation.
Returns:
Point the old width and height of the annotation.

EIP JavaBeans

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.