Package org.jfree.chart.event
Class AnnotationChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jfree.chart.event.ChartChangeEvent
-
- org.jfree.chart.event.AnnotationChangeEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class AnnotationChangeEvent extends ChartChangeEvent
An event that can be forwarded to anyAnnotationChangeListener
to signal a change to anAnnotation
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Annotation
annotation
The annotation that generated the event.
-
Constructor Summary
Constructors Constructor Description AnnotationChangeEvent(java.lang.Object source, Annotation annotation)
Creates a newAnnotationChangeEvent
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation
getAnnotation()
Returns the annotation that triggered the event.-
Methods inherited from class org.jfree.chart.event.ChartChangeEvent
getChart, getType, setChart, setType
-
-
-
-
Field Detail
-
annotation
private final Annotation annotation
The annotation that generated the event.
-
-
Constructor Detail
-
AnnotationChangeEvent
public AnnotationChangeEvent(java.lang.Object source, Annotation annotation)
Creates a newAnnotationChangeEvent
instance.- Parameters:
source
- the event source.annotation
- the annotation that triggered the event (null
not permitted).
-
-
Method Detail
-
getAnnotation
public Annotation getAnnotation()
Returns the annotation that triggered the event.- Returns:
- The annotation that triggered the event (never
null
).
-
-