public abstract class ChartMouseAdapter extends java.lang.Object implements ChartMouseListener
Extend this class to create a ChartClick
listener
and override the methods for the events of interest. (If you implement the
ChartMouseListener
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 addChartMouseListener
method.
ChartMouseListener
Constructor and Description |
---|
ChartMouseAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
axesClicked(ChartMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on an Axis
|
boolean |
backgroundClicked(ChartMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on the Background
|
void |
legendClicked(ChartMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a Legend
|
boolean |
mouseMove(ChartMouseEvent e)
Invoked when the mouse button has been released
|
boolean |
mouseUp(ChartMouseEvent e)
Invoked when the mouse button has been released
|
void |
titleClicked(ChartMouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on an Title
|
public void axesClicked(ChartMouseEvent e)
axesClicked
in interface ChartMouseListener
public boolean backgroundClicked(ChartMouseEvent e)
backgroundClicked
in interface ChartMouseListener
public void legendClicked(ChartMouseEvent e)
legendClicked
in interface ChartMouseListener
public void titleClicked(ChartMouseEvent e)
titleClicked
in interface ChartMouseListener
public boolean mouseUp(ChartMouseEvent e)
mouseUp
in interface ChartMouseListener
public boolean mouseMove(ChartMouseEvent e)
mouseMove
in interface ChartMouseListener