com.ibm.mm.viewer.annotation
Class CMBAnnotationReorderedEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.ibm.mm.viewer.annotation.CMBAnnotationReorderedEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class CMBAnnotationReorderedEvent
- extends java.util.EventObject
Generated by the annotation services when new annotation is created.
- Since:
- 8.1
- See Also:
CMBAnnotationCreatedListener
,
CMBAnnotationSet
, Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
CMBAnnotationReorderedEvent
public CMBAnnotationReorderedEvent(java.lang.Object source,
CMBAnnotationView view,
CMBPageAnnotation annotation,
int index)
- Constructs the event.
- Parameters:
source
- the source of the event.annotation
- the CMBPageAnnotation of the annotation.index
- the new index of the annotation in the list that determines the z-order.
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 reordered.
- Returns:
- CMBPageAnnotation the annotation that reordered.
getNewIndex
public int getNewIndex()
- Returns the new index of the annotation.
- Returns:
- int The new index.
(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.