|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.MoveSnapContext.MovingInfo y.view.MoveSnapContext.MovingPortInfo
public static class MoveSnapContext.MovingPortInfo
Concrete subclass of MoveSnapContext.MovingInfo
that
describes the movement of a Port
.
Constructor Summary | |
---|---|
MoveSnapContext.MovingPortInfo(Port port,
YPoint originalLocation,
byte mode)
Creates a new instance for the given port, location and mode |
Method Summary | |
---|---|
void |
applyLocation(double dx,
double dy)
Calls Port.setOffsets(double, double) according to the movement constraints. |
Port |
getPort()
Yields the port this instance acts on. |
Methods inherited from class y.view.MoveSnapContext.MovingInfo |
---|
getOriginalLocation, isFreelyMovable, isHorizontallyFixed, isVerticallyFixed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MoveSnapContext.MovingPortInfo(Port port, YPoint originalLocation, byte mode)
port
- The port to moveoriginalLocation
- The absolute location of the port before the move started.mode
- The mode of the movement, which is a bitwise combination of MoveSnapContext.MOVE_X
,
MoveSnapContext.MOVE_Y
, or MoveSnapContext.MOVE_XY
.Method Detail |
---|
public Port getPort()
public void applyLocation(double dx, double dy)
Port.setOffsets(double, double)
according to the movement constraints.
applyLocation
in class MoveSnapContext.MovingInfo
dx
- The delta in x coordinate direction of the move since the movement started.dy
- The delta in y coordinate direction of the move since the movement started.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |