|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.GaugeGraphEventListener
This class implements callback methods to handle mouse events dispatched
by the GaugeGraph class. If for some reason mouse event handling has to be changed
without losing pre-built functionalities, remove references to an instance
of this class from the GaugeGraph object and extend GaugeGraphEventListener,
changing the callback methods adequately. To remove the primary GaugeGraphEventListener,
which is created when the GaugeGraph class is instantiated, do as follows:
GaugeGraph graph=new GaugeGraph();
GaugeGraphEventListener g=graph.getGaugeGraphEventListener();
graph.removeMouseListener(g);
graph.removeMouseMotionListener(g);
GaugeGraph,
GaugeGraph.getGaugeGraphEventListener()| Constructor Summary | |
GaugeGraphEventListener(GaugeGraph graph)
Constructor of the GaugeGraphEventListener class. |
|
| Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent evt)
This method is called when a mouse button is pressed and released within the chart area. |
void |
mouseDragged(java.awt.event.MouseEvent evt)
This method is called when mouse is clicked within the chart area and dragged. |
void |
mouseEntered(java.awt.event.MouseEvent evt)
This method is called when the cursor enters the chart area. |
void |
mouseExited(java.awt.event.MouseEvent evt)
This method is called when the cursor exits the chart area. |
void |
mouseMoved(java.awt.event.MouseEvent evt)
This method is called when mouse is moved within the chart area. |
void |
mousePressed(java.awt.event.MouseEvent evt)
This method is called when a mouse button is pressed within the chart area. |
void |
mouseReleased(java.awt.event.MouseEvent evt)
This method is called when a mouse button is released within the chart area. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GaugeGraphEventListener(GaugeGraph graph)
graph - A GaugeGraph object.GaugeGraph| Method Detail |
public void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked in interface java.awt.event.MouseListenerevt - A MouseEvent object.public void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered in interface java.awt.event.MouseListenerevt - A MouseEvent object.public void mouseExited(java.awt.event.MouseEvent evt)
mouseExited in interface java.awt.event.MouseListenerevt - A MouseEvent object.public void mousePressed(java.awt.event.MouseEvent evt)
mousePressed in interface java.awt.event.MouseListenerevt - A MouseEvent object.public void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased in interface java.awt.event.MouseListenerevt - A MouseEvent object.public void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged in interface java.awt.event.MouseMotionListenerevt - A MouseEvent object.public void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved in interface java.awt.event.MouseMotionListenerevt - A MouseEvent object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||