Packagecom.yworks.graph.input.snapLines
Classpublic class PortMovementInfo
InheritancePortMovementInfo Inheritance MovementInfo Inheritance Object

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

See also

IPort
com.yworks.graph.input.snapLines.GraphSnapContext.getMovementInfos
com.yworks.graph.input.snapLines.GraphSnapContext.addOrthogonalSegment
com.yworks.graph.input.snapLines.BendMovementInfo


Public Properties
 PropertyDefined By
  currentLocation : IPoint
[override] [read-only] Gets the port's current location.
PortMovementInfo
 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
 InheritedoriginalLocation : IPoint
[read-only] Gets the original location of the element at the time the editing started.
MovementInfo
  port : IPort
[read-only] Gets the port that is being moved.
PortMovementInfo
 InheritedverticalAnchor : MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically.
MovementInfo
Public Methods
 MethodDefined By
  
PortMovementInfo(port:IPort, moveType:uint, originalLocation:IPoint = null)
Initializes a new instance of the PortMovementInfo class using the current location of the port if null is passes as originalLocation.
PortMovementInfo
 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 port's current location.


Implementation
    public function get currentLocation():IPoint
portproperty 
port:IPort  [read-only]

Gets the port that is being moved.


Implementation
    public function get port():IPort
Constructor Detail
PortMovementInfo()Constructor
public function PortMovementInfo(port:IPort, moveType:uint, originalLocation:IPoint = null)

Initializes a new instance of the PortMovementInfo class using the current location of the port if null is passes as originalLocation.

Parameters
port:IPort — The port.
 
moveType:uint — The type of the move as defined in MoveTypes.
 
originalLocation:IPoint (default = null) — The location of the port at the initialization time of the gesture.