JFreeChart 1.0.14-redhat-2

org.jfree.chart.event
Class AnnotationChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jfree.chart.event.ChartChangeEvent
          extended by org.jfree.chart.event.AnnotationChangeEvent
All Implemented Interfaces:
Serializable

public class AnnotationChangeEvent
extends ChartChangeEvent

An event that can be forwarded to any AnnotationChangeListener to signal a change to an Annotation.

Since:
1.0.14
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AnnotationChangeEvent(Object source, Annotation annotation)
          Creates a new AnnotationChangeEvent instance.
 
Method Summary
 Annotation getAnnotation()
          Returns the annotation that triggered the event.
 
Methods inherited from class org.jfree.chart.event.ChartChangeEvent
getChart, getType, setChart, setType
 
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

AnnotationChangeEvent

public AnnotationChangeEvent(Object source,
                             Annotation annotation)
Creates a new AnnotationChangeEvent instance.

Parameters:
source - the event source.
annotation - the annotation that triggered the event (null not permitted).
Since:
1.0.14
Method Detail

getAnnotation

public Annotation getAnnotation()
Returns the annotation that triggered the event.

Returns:
The annotation that triggered the event (never null).
Since:
1.0.14

JFreeChart 1.0.14-redhat-2

Copyright © 2001-2012 JFree.org. All Rights Reserved.