Package | com.yworks.graph.input.snapLines |
Class | public class EdgeEndMovementInfo |
Inheritance | EdgeEndMovementInfo MovementInfo Object |
MovementInfo
that describes the movement of the end points of an
IEdge
in the context of GraphSnapContext
.
See also
Property | Defined By | ||
---|---|---|---|
currentLocation : IPoint [override] [read-only]
Gets the live location that was passed during construction. | EdgeEndMovementInfo | ||
edge : IEdge [read-only]
Gets the edge that is being described. | EdgeEndMovementInfo | ||
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 | ||
sourceEnd : Boolean [read-only]
Gets a value indicating whether the source end is being described by this instance. | EdgeEndMovementInfo | ||
verticalAnchor : MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically. | MovementInfo |
Method | Defined By | ||
---|---|---|---|
EdgeEndMovementInfo(edge:IEdge, sourceEnd:Boolean, moveType:uint, location:IPoint, originalLocation:IPoint = null)
Initializes a new instance of the EdgeEndMovementInfo class using the current location of
the end point if null is passes as originalLocation. | EdgeEndMovementInfo | ||
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 live location that was passed during construction.
public function get currentLocation():IPoint
edge | property |
edge:IEdge
[read-only] Gets the edge that is being described.
public function get edge():IEdge
sourceEnd | property |
sourceEnd:Boolean
[read-only] Gets a value indicating whether the source end is being described by this instance.
public function get sourceEnd():Boolean
EdgeEndMovementInfo | () | Constructor |
public function EdgeEndMovementInfo(edge:IEdge, sourceEnd:Boolean, moveType:uint, location:IPoint, originalLocation:IPoint = null)
Initializes a new instance of the EdgeEndMovementInfo
class using the current location of
the end point if null
is passes as originalLocation
.
edge:IEdge — The edge that is moved.
| |
sourceEnd:Boolean — Whether the source end of the edge is meant.
| |
moveType:uint — The type of the move as defined in MoveTypes .
| |
location:IPoint — The point describing the live location of the edge's end.
| |
originalLocation:IPoint (default = null ) — The location of the edge end at the initialization time of the gesture.
|