public class ChartChangeEvent extends java.util.EventObject
Constructor and Description |
---|
ChartChangeEvent(java.lang.Object source)
Creates a new chart change event.
|
ChartChangeEvent(java.lang.Object source,
JFreeChart chart)
Creates a new chart change event.
|
ChartChangeEvent(java.lang.Object source,
JFreeChart chart,
ChartChangeEventType type)
Creates a new chart change event.
|
Modifier and Type | Method and Description |
---|---|
JFreeChart |
getChart()
Returns the chart that generated the change event.
|
ChartChangeEventType |
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.
|
public ChartChangeEvent(java.lang.Object source)
source
- the source of the event (could be the chart, a title,
an axis etc.)public ChartChangeEvent(java.lang.Object source, JFreeChart chart)
source
- the source of the event (could be the chart, a title, an
axis etc.)chart
- the chart that generated the event.public ChartChangeEvent(java.lang.Object source, JFreeChart chart, ChartChangeEventType type)
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.public JFreeChart getChart()
public void setChart(JFreeChart chart)
chart
- the chart that generated the event.public ChartChangeEventType getType()
public void setType(ChartChangeEventType type)
type
- the event type.