Package org.jfree.chart.event
Class LegendChangeEvent
java.lang.Object
java.util.EventObject
org.jfree.chart.event.ChartChangeEvent
org.jfree.chart.event.LegendChangeEvent
- All Implemented Interfaces:
Serializable
public class LegendChangeEvent extends ChartChangeEvent
A change event that encapsulates information about a change to a chart
legend.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.jfree.chart.event.ChartChangeEvent
GENERAL, NEW_DATASET, UPDATED_DATASET
-
Constructor Summary
Constructors Constructor Description LegendChangeEvent(Legend legend)
Creates a new LegendChangeEvent. -
Method Summary
Methods inherited from class org.jfree.chart.event.ChartChangeEvent
getChart, getType, setChart, setType
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LegendChangeEvent
Creates a new LegendChangeEvent.- Parameters:
legend
- the legend that generated the event.
-
-
Method Details
-
getLegend
Returns the legend that generated the event.- Returns:
- the legend that generated the event.
-