|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.domains.gr.lib.ViewScreen2D.ViewScreen2DListener
public class ViewScreen2D.ViewScreen2DListener
Listen for Layer, LayerMotion and Key events.
Field Summary | |
---|---|
private boolean |
_mouseDragging
|
private boolean |
_mouseInWindow
|
Constructor Summary | |
---|---|
ViewScreen2D.ViewScreen2DListener()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean _mouseDragging
private boolean _mouseInWindow
Constructor Detail |
---|
public ViewScreen2D.ViewScreen2DListener()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |