public class LayerMouseAdapter extends java.lang.Object implements LayerListener, LayerMotionListener
Modifier and Type | Field and Description |
---|---|
(package private) MouseFilter |
_filter |
(package private) java.awt.event.MouseListener |
_ml |
(package private) java.awt.event.MouseMotionListener |
_mml |
Constructor and Description |
---|
LayerMouseAdapter(java.awt.event.MouseListener ml,
java.awt.event.MouseMotionListener mml) |
Modifier and Type | Method and Description |
---|---|
MouseFilter |
getMouseFilter() |
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 |
mouseEntered(LayerEvent e)
Invoked when the mouse enters a layer or figure.
|
void |
mouseExited(LayerEvent e)
Invoked when the mouse exits a layer or figure.
|
void |
mouseMoved(LayerEvent e)
Invoked when the mouse moves while over a layer or figure.
|
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.
|
void |
setMouseFilter(MouseFilter f) |
MouseFilter _filter
java.awt.event.MouseListener _ml
java.awt.event.MouseMotionListener _mml
public LayerMouseAdapter(java.awt.event.MouseListener ml, java.awt.event.MouseMotionListener mml)
public MouseFilter getMouseFilter()
public void mouseClicked(LayerEvent e)
LayerListener
mouseClicked
in interface LayerListener
e
- The eventpublic void mousePressed(LayerEvent e)
LayerListener
mousePressed
in interface LayerListener
e
- The eventpublic void mouseDragged(LayerEvent e)
LayerListener
mouseDragged
in interface LayerListener
e
- The eventpublic void mouseMoved(LayerEvent e)
LayerMotionListener
mouseMoved
in interface LayerMotionListener
e
- The eventpublic void mouseReleased(LayerEvent e)
LayerListener
mouseReleased
in interface LayerListener
e
- The eventpublic void mouseEntered(LayerEvent e)
LayerMotionListener
mouseEntered
in interface LayerMotionListener
e
- The eventpublic void mouseExited(LayerEvent e)
LayerMotionListener
mouseExited
in interface LayerMotionListener
e
- The eventpublic void setMouseFilter(MouseFilter f)