Packagecom.yworks.graph.input.snapLines
Classpublic class NodeMovementInfo
InheritanceNodeMovementInfo Inheritance MovementInfo Inheritance Object

Specialized subclass of MovementInfo that describes the movement of an INode in the context of GraphSnapContext.

See also

INode
com.yworks.graph.input.snapLines.BendMovementInfo
com.yworks.graph.input.snapLines.EdgeEndMovementInfo
com.yworks.graph.input.snapLines.PortMovementInfo


Public Properties
 PropertyDefined By
  currentLocation : IPoint
[override] [read-only] Gets the location of top left corner of the node.
NodeMovementInfo
 InheritedhorizontalAnchor : MovementInfo
Gets or sets the horizontal movement info to which this info is anchored horizontally.
MovementInfo
 InheritedisHorizontallyFixed : Boolean
[read-only] Indicates whether the x coordinate of the item is fixed during the move operation.
MovementInfo
 InheritedisVerticallyFixed : Boolean
[read-only] Indicates whether the y coordinate of the item is fixed during the move operation.
MovementInfo
 InheritedmoveType : 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
 InheritedoriginalLocation : IPoint
[read-only] Gets the original location of the element at the time the editing started.
MovementInfo
 InheritedverticalAnchor : MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically.
MovementInfo
Public Methods
 MethodDefined By
  
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.
NodeMovementInfo
 Inherited
getX(dx:Number):Number
Gets the new x coordinate of the element if the mouse has been moved by dx during the gesture.
MovementInfo
 Inherited
getY(dy:Number):Number
Gets the new y coordinate of the element if the mouse has been moved by dy during the gesture.
MovementInfo
 Inherited
Determines whether this instance moves in sync with the provided info.
MovementInfo
 Inherited
Determines whether this instance moves in sync with the provided info.
MovementInfo
Property Detail
currentLocationproperty
currentLocation:IPoint  [read-only] [override]

Gets the location of top left corner of the node.


Implementation
    public function get currentLocation():IPoint
nodeproperty 
node:INode  [read-only]

Gets the node that is being moved.


Implementation
    public function get node():INode
Constructor Detail
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.

Parameters
node:INode — The node.
 
moveType:uint — The type of the move as defined in MoveTypes.
 
originalLocation:IPoint (default = null)