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