Package | com.yworks.graph.input.snapLines |
Class | public class NodeMovementInfo |
Inheritance | NodeMovementInfo MovementInfo Object |
MovementInfo
that describes the movement of an INode
in the context of GraphSnapContext
.
See also
Property | Defined By | ||
---|---|---|---|
currentLocation : IPoint [override] [read-only]
Gets the location of top left corner of the node. | NodeMovementInfo | ||
horizontalAnchor : MovementInfo
Gets or sets the horizontal movement info to which this info is anchored horizontally. | MovementInfo | ||
isHorizontallyFixed : Boolean [read-only]
Indicates whether the x coordinate of the item is fixed during the move operation. | MovementInfo | ||
isVerticallyFixed : Boolean [read-only]
Indicates whether the y coordinate of the item is fixed during the move operation. | MovementInfo | ||
moveType : uint
Indicates the type of the movement as defined in MoveTypes for this instance. | MovementInfo | ||
node : INode [read-only]
Gets the node that is being moved. | NodeMovementInfo | ||
originalLocation : IPoint [read-only]
Gets the original location of the element at the time the editing started. | MovementInfo | ||
verticalAnchor : MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically. | MovementInfo |
Method | Defined By | ||
---|---|---|---|
Initializes a new instance of the NodeMovementInfo class using the current location of the
node if null is passes as originalLocation. | NodeMovementInfo | ||
getX(dx:Number):Number
Gets the new x coordinate of the element if the mouse has been moved by dx during the gesture. | MovementInfo | ||
getY(dy:Number):Number
Gets the new y coordinate of the element if the mouse has been moved by dy during the gesture. | MovementInfo | ||
movesHorizontallyInSyncWith(info:MovementInfo):Boolean
Determines whether this instance moves in sync with the provided info. | MovementInfo | ||
movesVerticallyInSyncWith(info:MovementInfo):Boolean
Determines whether this instance moves in sync with the provided info. | MovementInfo |
currentLocation | property |
currentLocation:IPoint
[read-only] [override] Gets the location of top left corner of the node.
public function get currentLocation():IPoint
node | property |
node:INode
[read-only] Gets the node that is being moved.
public function get node():INode
NodeMovementInfo | () | Constructor |
public function NodeMovementInfo(node:INode, moveType:uint, originalLocation:IPoint = null)
Initializes a new instance of the NodeMovementInfo
class using the current location of the
node if null
is passes as originalLocation
.
node:INode — The node.
| |
moveType:uint — The type of the move as defined in MoveTypes .
| |
originalLocation:IPoint (default = null )
|