public class ViewScreen2D.ViewScreen2DListener extends java.lang.Object implements LayerListener, LayerMotionListener, java.awt.event.KeyListener
Constructor and Description |
---|
ViewScreen2DListener() |
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
Forward any keyPressed events to the figure which is selected
in the viewscreen.
|
void |
keyReleased(java.awt.event.KeyEvent e)
Forward any keyReleased events to the figure which is
selected in the viewscreen.
|
void |
keyTyped(java.awt.event.KeyEvent e)
Forward any keyTyped events to the figure which is
selected in the viewscreen.
|
void |
mouseClicked(LayerEvent e)
Included to comply with the LayerListener interface
requirements.
|
void |
mouseDragged(LayerEvent e)
Translate the origin of the viewScreen2D if the user drags the
origin marker.
|
void |
mouseEntered(LayerEvent e)
Update the state of this object to reflect that the mouse
is in the viewscreen.
|
void |
mouseExited(LayerEvent e)
Update the state of this object to reflect that the mouse is
no longer in the viewscreen.
|
void |
mouseMoved(LayerEvent e)
Included to comply with the LayerMotionListener interface
requirement.
|
void |
mousePressed(LayerEvent e)
Update the status of any figures which were deselected by the
user clicking on a blank area of the viewscreen.
|
void |
mouseReleased(LayerEvent e)
Update the state of this object to reflect that the mouse is no
longer being dragged.
|
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- The KeyEvent generated by the frame containing the
viewscreen.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
e
- The KeyEvent generated by the frame containing the
viewscreen.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
e
- The KeyEvent generated by the frame containing the
viewscreen.public void mouseClicked(LayerEvent e)
mouseClicked
in interface LayerListener
e
- The layer event generated by the informing layer.public void mouseDragged(LayerEvent e)
mouseDragged
in interface LayerListener
e
- The layer event generated by the informing layer.public void mouseEntered(LayerEvent e)
mouseEntered
in interface LayerMotionListener
e
- The layer event generated by the informing layer.public void mouseExited(LayerEvent e)
mouseExited
in interface LayerMotionListener
public void mouseMoved(LayerEvent e)
mouseMoved
in interface LayerMotionListener
e
- The layer event generated by the informing layer.public void mousePressed(LayerEvent e)
mousePressed
in interface LayerListener
e
- The layer event generated by the informing layer.public void mouseReleased(LayerEvent e)
mouseReleased
in interface LayerListener
e
- The layer event generated by the informing layer.