public abstract class ChartAdapter extends java.lang.Object implements ChartListener
Extend this class to create a Chart
listener
and override the methods for the events of interest. (If you implement the
ChartListener
interface, you have to define all of
the methods in it. This abstract class defines null methods for them
all, so you can only have to define methods for events you care about.)
Create a listener object using the extended class and then register it with
a component using the component's addChartListener
method.
ChartListener
Constructor and Description |
---|
ChartAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
seriesAdded(ChartEvent e)
Invoked when a series has been added to the chart
|
void |
toolAdded(ChartEvent e)
Invoked when a tool has been added to the chart
|
public void seriesAdded(ChartEvent e)
seriesAdded
in interface ChartListener
public void toolAdded(ChartEvent e)
toolAdded
in interface ChartListener