Package | com.yworks.graph.input.snapLines |
Class | public class BendMovementInfo |
Inheritance | BendMovementInfo MovementInfo Object |
MovementInfo
that describes the movement of an IBend
in the context of GraphSnapContext
.
See also
Property | Defined 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 | ||
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 | ||
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 BendMovementInfo class using the current location of the
bend if null is passed as originalLocation. | BendMovementInfo | ||
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 |
bend | property |
bend:IBend
[read-only] Gets the bend that is being moved.
public function get bend():IBend
currentLocation | property |
currentLocation:IPoint
[read-only] [override] Gets the bend's current location.
public function get currentLocation():IPoint
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
.
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.
|