|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.event.LayerConsumer
An adapter for layer listeners that consumes events. This should be used instead of LayerAdapter in situations in which a subclass overrides just one or two methods, but consumes the event in those methods, and require that they be consumed in the other methods as well.
| Constructor Summary | |
LayerConsumer()
|
|
| Method Summary | |
void |
mouseClicked(LayerEvent e)
Invoked when the mouse is clicked on a layer or figure. |
void |
mouseDragged(LayerEvent e)
Invoked when the mouse moves while the button is still held down. |
void |
mousePressed(LayerEvent e)
Invoked when the mouse is pressed on a layer or figure. |
void |
mouseReleased(LayerEvent e)
Invoked when the mouse is released on a layer or figure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LayerConsumer()
| Method Detail |
public void mouseDragged(LayerEvent e)
mouseDragged in interface LayerListenerpublic void mousePressed(LayerEvent e)
mousePressed in interface LayerListenerpublic void mouseReleased(LayerEvent e)
mouseReleased in interface LayerListenerpublic void mouseClicked(LayerEvent e)
mouseClicked in interface LayerListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||