|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.view.ViewMode | +--y.view.MoveSelectionMode
This view mode is responsible for moving selected parts of the displayed graph. On a left press this mode starts to move selected graph elements around. While the mouse is being dragged the selected parts will be moved around. If the mouse gets released the operation will end and all registered views will receive an update event.
Field Summary |
Fields inherited from class y.view.ViewMode |
lastClickEvent, lastDragEvent, lastPressEvent, lastReleaseEvent, originalX, originalY, view |
Constructor Summary | |
MoveSelectionMode()
Initializes a new MoveSelectionMode. |
|
MoveSelectionMode(ViewContainer view)
Initializes a new MoveSelectionMode for a given ViewContainer |
Method Summary | |
protected BendList |
getBendsToBeMoved()
Returns the bends that should will be moved by this view mode. |
protected NodeList |
getNodesToBeMoved()
Returns the nodes that should will be moved by this view mode. |
void |
mouseDraggedLeft(double x,
double y)
Moves the selected graph elements around. |
void |
mousePressedLeft(double x,
double y)
Initiates the movement of the selected graph elements. |
void |
mouseReleasedLeft(double x,
double y)
Terminates the movements of the selected graph elements. |
void |
mouseShiftPressedLeft(double x,
double y)
Initiates the movement of the selected graph elements. |
void |
mouseShiftReleasedLeft(double x,
double y)
Terminates the movements of the selected graph elements. |
protected void |
selectionMovedAction(double dx,
double dy,
double x,
double y)
Performs an action after the selection was moved. |
protected void |
selectionOnMove(double dx,
double dy,
double x,
double y)
Performs an action when the selection is moving. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MoveSelectionMode(ViewContainer view)
public MoveSelectionMode()
Method Detail |
public void mouseShiftPressedLeft(double x, double y)
mouseShiftPressedLeft
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 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 mouseShiftReleasedLeft(double x, double y)
mouseShiftReleasedLeft
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)
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 void mouseDraggedLeft(double x, double y)
mouseDraggedLeft
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.protected void selectionOnMove(double dx, double dy, double x, double y)
protected void selectionMovedAction(double dx, double dy, double x, double y)
protected NodeList getNodesToBeMoved()
protected BendList getBendsToBeMoved()
|
© 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 |