|
Search this API | ||||||||
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
public class 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 |
---|
ACTIVE_PROPERTY, ACTIVE_VIEW_PROPERTY, CHILD_MODE_PROPERTY, EDITING_PROPERTY, GRAB_FOCUS_ENABLED_PROPERTY, lastClickEvent, lastDragEvent, lastMoveEvent, lastPressEvent, lastReleaseEvent, MODIFIER_MASK_PROPERTY, NAME_PROPERTY, originalX, originalY, PARENT_MODE_PROPERTY, 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 occurred 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-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |