Packagecom.yworks.canvas.geom
Interfacepublic interface IMovable
Implementors OrientedRectangle, RectangleHandle, ReshapeableHandle, YPoint, YRectangle

Interface that is implemented by geometric objects that can be moved.

This interface allows for moving an instance given an offset.



Public Methods
 MethodDefined By
  
moveBy(dx:Number, dy:Number):Boolean
Moves the instances coordinates by the given offsets.
IMovable
  
moveByDx(dx:Number):Boolean
Moves the instance's x coordinate by the given offset.
IMovable
  
moveByDy(dy:Number):Boolean
Moves the instance's y coordinate by the given offset.
IMovable
Method Detail
moveBy()method
public function moveBy(dx:Number, dy:Number):Boolean

Moves the instances coordinates by the given offsets.

It is up to the implementation to decide whether to perform the move. The return value indicates whether the instance has been moved at all.

Parameters

dx:Number — The offset to move the instance's x coordinate by.
 
dy:Number — The offset to move the instance's y coordinate by.

Returns
Boolean — Whether the instance has been moved.
moveByDx()method 
public function moveByDx(dx:Number):Boolean

Moves the instance's x coordinate by the given offset.

It is up to the implementation to decide whether to perform the move. The return value indicates whether the instance has been moved at all.

Parameters

dx:Number — The offset to move the instance's x coordinate by.

Returns
Boolean — Whether the instance has been moved.
moveByDy()method 
public function moveByDy(dy:Number):Boolean

Moves the instance's y coordinate by the given offset.

It is up to the implementation to decide whether to perform the move. The return value indicates whether the instance has been moved at all.

Parameters

dy:Number — The offset to move the instance's y coordinate by.

Returns
Boolean — Whether the instance has been moved.