Packagecom.yworks.graph.input.snapLines
Classpublic class EdgeEndMovementInfo
InheritanceEdgeEndMovementInfo Inheritance MovementInfo Inheritance Object

Specialized subclass of MovementInfo that describes the movement of the end points of an IEdge in the context of GraphSnapContext.

See also

IEdge
com.yworks.graph.input.snapLines.GraphSnapContext.getMovementInfos
com.yworks.graph.input.snapLines.GraphSnapContext.addOrthogonalSegment


Public Properties
 PropertyDefined 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
 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
  sourceEnd : Boolean
[read-only] Gets a value indicating whether the source end is being described by this instance.
EdgeEndMovementInfo
 InheritedverticalAnchor : MovementInfo
Gets or sets the vertical movement info to which this info is anchored vertically.
MovementInfo
Public Methods
 MethodDefined 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
 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
currentLocationproperty
currentLocation:IPoint  [read-only] [override]

Gets the live location that was passed during construction.


Implementation
    public function get currentLocation():IPoint
edgeproperty 
edge:IEdge  [read-only]

Gets the edge that is being described.


Implementation
    public function get edge():IEdge
sourceEndproperty 
sourceEnd:Boolean  [read-only]

Gets a value indicating whether the source end is being described by this instance.


Implementation
    public function get sourceEnd():Boolean
Constructor Detail
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.

Parameters
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.