public class

ChartChangeEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.jfree.chart.event.ChartChangeEvent
Known Direct Subclasses

Class Overview

A change event that encapsulates information about a change to a chart.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ChartChangeEvent(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.
Public Methods
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.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ChartChangeEvent (Object source)

Creates a new chart change event.

Parameters
source the source of the event (could be the chart, a title, an axis etc.)

public ChartChangeEvent (Object source, JFreeChart chart)

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.

public ChartChangeEvent (Object source, JFreeChart chart, ChartChangeEventType type)

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.

Public Methods

public JFreeChart getChart ()

Returns the chart that generated the change event.

Returns
  • The chart that generated the change event.

public ChartChangeEventType getType ()

Returns the event type.

Returns
  • The event type.

public void setChart (JFreeChart chart)

Sets the chart that generated the change event.

Parameters
chart the chart that generated the event.

public void setType (ChartChangeEventType type)

Sets the event type.

Parameters
type the event type.