Package | com.yworks.graph.input.snapLines |
Class | public class MovementInfo |
Inheritance | MovementInfo Object |
Subclasses | BendMovementInfo, EdgeEndMovementInfo, NodeMovementInfo, PortMovementInfo |
GraphSnapContext
to describe the movement
of entities during the edit process.
See also
Property | Defined By | ||
---|---|---|---|
currentLocation : IPoint [read-only]
Gets the current location as a live point. | MovementInfo | ||
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 | ||
---|---|---|---|
MovementInfo(originalLocation:IPoint, moveType:uint)
Initializes a new instance of the MovementInfo class. | MovementInfo | ||
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] Gets the current location as a live point.
public function get currentLocation():IPoint
horizontalAnchor | property |
horizontalAnchor:MovementInfo
Gets or sets the horizontal movement info to which this info is anchored horizontally.
This info can be declared to be implicitly anchored to another info. Method movesHorizontallyInSyncWith
will try to match against the anchors to determine if two infos are moving in sync.
public function get horizontalAnchor():MovementInfo
public function set horizontalAnchor(value:MovementInfo):void
See also
isHorizontallyFixed | property |
isHorizontallyFixed:Boolean
[read-only] Indicates whether the x coordinate of the item is fixed during the move operation.
public function get isHorizontallyFixed():Boolean
isVerticallyFixed | property |
isVerticallyFixed:Boolean
[read-only] Indicates whether the y coordinate of the item is fixed during the move operation.
public function get isVerticallyFixed():Boolean
moveType | property |
moveType:uint
Indicates the type of the movement as defined in MoveTypes
for this instance.
public function get moveType():uint
public function set moveType(value:uint):void
See also
originalLocation | property |
originalLocation:IPoint
[read-only] Gets the original location of the element at the time the editing started.
public function get originalLocation():IPoint
verticalAnchor | property |
verticalAnchor:MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically.
This info can be declared to be implicitly anchored to another info. Method movesVerticallyInSyncWith
will try to match against the anchors to determine if two infos are moving in sync.
public function get verticalAnchor():MovementInfo
public function set verticalAnchor(value:MovementInfo):void
See also
MovementInfo | () | Constructor |
public function MovementInfo(originalLocation:IPoint, moveType:uint)
Initializes a new instance of the MovementInfo
class.
Don't instantiate MovementInfo
itself but use one of it's subclasses instead.
originalLocation:IPoint — The original location.
| |
moveType:uint — The type of the move as defined in MoveTypes .
|
See also
getX | () | method |
public function getX(dx:Number):Number
Gets the new x coordinate of the element if the mouse has been moved by dx
during the gesture.
This takes the moveType
and originalLocation
into account.
Parameters
dx:Number — The delta x coordinate.
|
Number — The new x coordinate.
|
See also
getY | () | method |
public function getY(dy:Number):Number
Gets the new y coordinate of the element if the mouse has been moved by dy
during the gesture.
This takes the moveType
and originalLocation
into account.
Parameters
dy:Number — The delta y coordinate.
|
Number — The new y coordinate.
|
See also
movesHorizontallyInSyncWith | () | method |
public function movesHorizontallyInSyncWith(info:MovementInfo):Boolean
Determines whether this instance moves in sync with the provided info.
Parameters
info:MovementInfo — The info to check.
|
Boolean — Whether this info and the given info move horizontally in sync.
|
See also
movesVerticallyInSyncWith | () | method |
public function movesVerticallyInSyncWith(info:MovementInfo):Boolean
Determines whether this instance moves in sync with the provided info.
Parameters
info:MovementInfo — The info to check.
|
Boolean — Whether this info and the given info move vertically in sync.
|
See also