Interface Annotation
- All Known Subinterfaces:
CategoryAnnotation, XYAnnotation
- All Known Implementing Classes:
AbstractAnnotation, AbstractXYAnnotation, CategoryLineAnnotation, CategoryPointerAnnotation, CategoryTextAnnotation, TextAnnotation, XYBoxAnnotation, XYDataImageAnnotation, XYDataRangeAnnotation, XYDrawableAnnotation, XYImageAnnotation, XYInversePointerAnnotation, XYLineAnnotation, XYNoteAnnotation, XYPointerAnnotation, XYPolygonAnnotation, XYShapeAnnotation, XYTextAnnotation, XYTitleAnnotation
public interface Annotation
The base interface for annotations. All annotations should support the
AnnotationChangeEvent mechanism by allowing listeners to register
and receive notification of any changes to the annotation.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(AnnotationChangeListener listener) Registers an object for notification of changes to the annotation.voidremoveChangeListener(AnnotationChangeListener listener) Deregisters an object for notification of changes to the annotation.
-
Method Details
-
addChangeListener
Registers an object for notification of changes to the annotation.- Parameters:
listener- the object to register.
-
removeChangeListener
Deregisters an object for notification of changes to the annotation.- Parameters:
listener- the object to deregister.
-