Package org.jfree.chart.event
Class ChartChangeEvent
java.lang.Object
java.util.EventObject
org.jfree.chart.event.ChartChangeEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnnotationChangeEvent
,AxisChangeEvent
,DialLayerChangeEvent
,MarkerChangeEvent
,PlotChangeEvent
,RendererChangeEvent
,TitleChangeEvent
A change event that encapsulates information about a change to a chart.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionChartChangeEvent
(Object source) Creates a new chart change event.ChartChangeEvent
(Object source, JFreeChart chart) Creates a new chart change event.ChartChangeEvent
(Object source, JFreeChart chart, ChartChangeEventType type) Creates a new chart change event. -
Method Summary
Modifier and TypeMethodDescriptiongetChart()
Returns the chart that generated the change event.getType()
Returns the event type.void
setChart
(JFreeChart chart) Sets the chart that generated the change event.void
setType
(ChartChangeEventType type) Sets the event type.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ChartChangeEvent
Creates a new chart change event.- Parameters:
source
- the source of the event (could be the chart, a title, an axis etc.)
-
ChartChangeEvent
Creates a new chart change event.- Parameters:
source
- the source of the event (could be the chart, a title, an axis etc.)chart
- the chart that generated the event.
-
ChartChangeEvent
Creates a new chart change event.- Parameters:
source
- the source of the event (could be the chart, a title, an axis etc.)chart
- the chart that generated the event.type
- the type of event.
-
-
Method Details
-
getChart
Returns the chart that generated the change event.- Returns:
- The chart that generated the change event.
-
setChart
Sets the chart that generated the change event.- Parameters:
chart
- the chart that generated the event.
-
getType
Returns the event type.- Returns:
- The event type.
-
setType
Sets the event type.- Parameters:
type
- the event type.
-