|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLayeredPaneTransparentDemo.MousePressedListener
Class MousePressedListener implements a mouse listener for press events only, ignoring all other events. When the mouse is pressed, the location of the press event and the layer the press happnens on are written to stdout.
Constructor Summary | |
LayeredPaneTransparentDemo.MousePressedListener(int layerNum)
Construct this with an integer indicating the layer position to which this is attached. |
Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent e)
Ignore mouseClicked events. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Ignore mouseEntered events. |
void |
mouseExited(java.awt.event.MouseEvent e)
Ignore mouseExited events. |
void |
mousePressed(java.awt.event.MouseEvent e)
Report the position of a mouse pressed event and the layer it happens on to stdout. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Ignore mouseReleased events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LayeredPaneTransparentDemo.MousePressedListener(int layerNum)
Method Detail |
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |