|
||||||||||
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
public class InputListener
A InputListener
(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 DSOLApplicationInterface |
application
the simulator to control |
protected Point2D |
mouseClicked
the mouseClicked point in screen coordinates |
protected AnimationPanel |
panel
the panel to use |
Constructor Summary | |
---|---|
InputListener(DSOLApplicationInterface application,
AnimationPanel panel)
constructs a new InputListener |
Method Summary | |
---|---|
protected Object |
getSelectedObject(List targets)
edits a selected Renderable2D |
protected List |
getSelectedObjects(Point2D mousePoint)
returns the list of selected objects at a certain mousePoint |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent mouseEvent)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
mouseWheelMoved(MouseWheelEvent e)
|
protected void |
pan(Point2D mouseClickedPoint,
Point2D mouseReleasedPoint)
What to do if the middle mouse button was released |
protected void |
popup(MouseEvent e)
popsup on a mouseEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DSOLApplicationInterface application
protected AnimationPanel panel
protected Point2D mouseClicked
Constructor Detail |
---|
public InputListener(DSOLApplicationInterface application, AnimationPanel panel)
application
- the applicationpanel
- the panelMethod Detail |
---|
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
#mouseClicked(java.awt.event.MouseEvent)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
MouseListener.mouseReleased(java.awt.event.MouseEvent)
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
MouseListener.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
MouseListener.mouseExited(java.awt.event.MouseEvent)
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
MouseWheelListener.mouseWheelMoved(java.awt.event.MouseWheelEvent)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mouseMoved(MouseEvent mouseEvent)
mouseMoved
in interface MouseMotionListener
MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
KeyListener.keyPressed(java.awt.event.KeyEvent)
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
KeyListener.keyReleased(java.awt.event.KeyEvent)
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
KeyListener.keyTyped(java.awt.event.KeyEvent)
protected void pan(Point2D mouseClickedPoint, Point2D mouseReleasedPoint)
mouseClickedPoint
- the point where the mouse was clickedmouseReleasedPoint
- the point where the mouse was releasedprotected List getSelectedObjects(Point2D mousePoint)
mousePoint
- the mousePoint
protected void popup(MouseEvent e)
e
- the mouseEventprotected Object getSelectedObject(List targets)
targets
- which are selected by the mouse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |