Package | com.yworks.canvas.geom |
Interface | public interface IMovable |
Implementors | OrientedRectangle, RectangleHandle, ReshapeableHandle, YPoint, YRectangle |
This interface allows for moving an instance given an offset.
Method | Defined 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 |
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.
|
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.
|
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.
|
Boolean — Whether the instance has been moved.
|