Packagecom.yworks.graph.input.snapLines
Classpublic class BendMovementInfo
InheritanceBendMovementInfo Inheritance MovementInfo Inheritance Object

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

See also

IBend
com.yworks.graph.input.snapLines.GraphSnapContext.getMovementInfos
com.yworks.graph.input.snapLines.GraphSnapContext.addOrthogonalSegment
com.yworks.graph.input.snapLines.PortMovementInfo


Public Properties
 PropertyDefined By
  bend : IBend
[read-only] Gets the bend that is being moved.
BendMovementInfo
  currentLocation : IPoint
[override] [read-only] Gets the bend's current location.
BendMovementInfo
 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
 InheritedverticalAnchor : MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically.
MovementInfo
Public Methods
 MethodDefined By
  
BendMovementInfo(bend:IBend, moveType:uint, originalLocation:IPoint = null)
Initializes a new instance of the BendMovementInfo class using the current location of the bend if null is passed as originalLocation.
BendMovementInfo
 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
bendproperty
bend:IBend  [read-only]

Gets the bend that is being moved.


Implementation
    public function get bend():IBend
currentLocationproperty 
currentLocation:IPoint  [read-only] [override]

Gets the bend's current location.


Implementation
    public function get currentLocation():IPoint
Constructor Detail
BendMovementInfo()Constructor
public function BendMovementInfo(bend:IBend, moveType:uint, originalLocation:IPoint = null)

Initializes a new instance of the BendMovementInfo class using the current location of the bend if null is passed as originalLocation.

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