|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.view.ViewMode | +--y.view.InteractiveViewMode
A ViewMode for interactive input scenarios. This class provides blocking methods such as getClickedNode that allow interactive processing of view based input events. The caller of such a method blocks until a user clicks on a node, etc. The caller of the blocking query methods may not live in the same AWT thread that provides coordinates to this mode.
Field Summary |
Fields inherited from class y.view.ViewMode |
lastClickEvent, lastDragEvent, lastPressEvent, lastReleaseEvent, originalX, originalY, view |
Constructor Summary | |
InteractiveViewMode()
Initializes a new InteractiveViewMode. |
Method Summary | |
Node |
getClickedNode()
Blocks until a node in the associated view gets clicked by a user. |
void |
mousePressedLeft(double x,
double y)
Stores the press location. |
void |
mouseReleasedLeft(double x,
double y)
Called when the left mouse button was released. |
void |
waitForClick()
Blocks until a click occured in the associated view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InteractiveViewMode()
Method Detail |
public void mousePressedLeft(double x, double y)
mousePressedLeft
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public void mouseReleasedLeft(double x, double y)
ViewMode
mouseReleasedLeft
in class ViewMode
x
- the x-coordinate of the mouse event in world coordinates.y
- the y-coordinate of the mouse event in world coordinates.public Node getClickedNode()
public void waitForClick()
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |