|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.gui.animation2D.mouse.InputListener
nl.tudelft.simulation.dsol.gui.editor2D.mouse.EditorInputListener
public class EditorInputListener
An input listener for the editor
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
protected boolean |
clickedWithinSelected
did we click within the selected object? |
protected Point2D |
dragCoord
Point where the mouse is when dragging |
protected int |
mouseButton
Last mouse button that was pressed |
protected Editor2DPanel |
panel
the source panel |
Fields inherited from class nl.tudelft.simulation.dsol.gui.animation2D.mouse.InputListener |
---|
application, mouseClicked |
Constructor Summary | |
---|---|
EditorInputListener(DSOLApplicationInterface application,
AnimationPanel panel)
constructor |
Method Summary | |
---|---|
void |
mouseClicked(MouseEvent event)
|
void |
mouseDragged(MouseEvent event)
|
void |
mousePressed(MouseEvent event)
|
void |
mouseReleased(MouseEvent event)
|
protected void |
performLeftMouseReleasedAction(MouseEvent event)
perform one of the actions of the editor |
protected void |
performRightMouseReleasedAction(MouseEvent event)
what to do if the right mouse button was released |
Methods inherited from class nl.tudelft.simulation.dsol.gui.animation2D.mouse.InputListener |
---|
getSelectedObject, getSelectedObjects, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, pan, popup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Editor2DPanel panel
protected boolean clickedWithinSelected
protected int mouseButton
protected Point2D dragCoord
Constructor Detail |
---|
public EditorInputListener(DSOLApplicationInterface application, AnimationPanel panel)
application
- the applicationpanel
- the panelMethod Detail |
---|
public void mouseClicked(MouseEvent event)
mouseClicked
in interface MouseListener
mouseClicked
in class InputListener
MouseListener.mouseClicked(java.awt.event.MouseEvent)
public void mouseDragged(MouseEvent event)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class InputListener
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mousePressed(MouseEvent event)
mousePressed
in interface MouseListener
mousePressed
in class InputListener
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseReleased(MouseEvent event)
mouseReleased
in interface MouseListener
mouseReleased
in class InputListener
MouseListener.mouseReleased(java.awt.event.MouseEvent)
protected void performLeftMouseReleasedAction(MouseEvent event)
event
- mouse eventprotected void performRightMouseReleasedAction(MouseEvent event)
event
- MouseEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |