|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.event.MouseInputAdapter
Graphics2DTestPlusGlassPane.RightClickListener
Class RightClickListener implements all of the methods of a MouseInputAdapter. The work of converting the event into a form usable by the target component is done in the redispatchEvent method.
Field Summary | |
protected Graphics2DTest.DrawingCanvas |
canvas
The drawing canvas in the parent application. |
protected javax.swing.JFrame |
frame
The frame in the parent application. |
Constructor Summary | |
Graphics2DTestPlusGlassPane.RightClickListener(javax.swing.JFrame frame,
Graphics2DTest.DrawingCanvas canvas)
Construct with refs to the main JFrame and drawing canvas. |
Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent e)
Forward the mouseClicked event. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Forward the mouseDragged event. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Forward the mouseEntered event. |
void |
mouseExited(java.awt.event.MouseEvent e)
Forward the mouseExited event. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Forward the mouseMoved event. |
void |
mousePressed(java.awt.event.MouseEvent e)
Forward the mousePressed event, after printing a message if the right mouse button has been pressed. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Forward the mouseReleased event. |
protected void |
redispatchEvent(java.awt.event.MouseEvent e)
Redispatch the given MouseEvent to the appropriate target component in the frame. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.JFrame frame
protected Graphics2DTest.DrawingCanvas canvas
Constructor Detail |
public Graphics2DTestPlusGlassPane.RightClickListener(javax.swing.JFrame frame, Graphics2DTest.DrawingCanvas canvas)
Method Detail |
public void mouseMoved(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
protected void redispatchEvent(java.awt.event.MouseEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |