Enterprise Information Portal APIs

com.ibm.mm.viewer.annotation
Class CMBAnnotationMovedEvent

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

public class CMBAnnotationMovedEvent
extends java.util.EventObject

Generated by the annotation services when new annotation is moved.

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

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CMBAnnotationMovedEvent(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 moved.
 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 point to which the annotation's x,y has moved.
 java.awt.Point getOldPoint()
          Returns the old point from which the annotation's x,y has moved.
 
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

CMBAnnotationMovedEvent

public CMBAnnotationMovedEvent(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 location of the annotation.
oldPoint - the old location 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 moved.
Returns:
CMBPageAnnotation the annotation that moved.

getNewPoint

public java.awt.Point getNewPoint()
Returns the new point to which the annotation's x,y has moved.
Returns:
Point the new x,y coordinates of the annotation.

getOldPoint

public java.awt.Point getOldPoint()
Returns the old point from which the annotation's x,y has moved.
Returns:
Point the old x,y coordinates of the annotation.

EIP JavaBeans

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