Package | com.yworks.canvas.drawing |
Class | public class OrientedRectangleSelectionPaintable |
Inheritance | OrientedRectangleSelectionPaintable Object |
Implements | ISelectionPaintable |
ISelectionPaintable
implementation
that draws an oriented rectangle as a selection box.
Property | Defined By | ||
---|---|---|---|
fill : IFill
Gets or sets the fill to use for filling the rectangle in the view coordinate system. | OrientedRectangleSelectionPaintable | ||
stroke : IStroke
Gets or sets the stroke to use for drawing the rectangle in the view coordinate system. | OrientedRectangleSelectionPaintable |
Method | Defined By | ||
---|---|---|---|
Creates a selection paintable that paints the bounds. | OrientedRectangleSelectionPaintable | ||
installSelectionPaintables(userObject:Object, canvas:CanvasComponent, selectionGroup:ICanvasObjectGroup):Array
Implements the interface and installs a rectangle into the canvas control. | OrientedRectangleSelectionPaintable |
Method | Defined By | ||
---|---|---|---|
getRectangle(userObject:Object):IOrientedRectangle
Factory method that retrieves the bounds for a given user object. | OrientedRectangleSelectionPaintable |
fill | property |
fill:IFill
Gets or sets the fill to use for filling the rectangle in the view coordinate system.
public function get fill():IFill
public function set fill(value:IFill):void
stroke | property |
stroke:IStroke
Gets or sets the stroke to use for drawing the rectangle in the view coordinate system.
public function get stroke():IStroke
public function set stroke(value:IStroke):void
OrientedRectangleSelectionPaintable | () | Constructor |
public function OrientedRectangleSelectionPaintable(bounds:IOrientedRectangle)
Creates a selection paintable that paints the bounds.
Parametersbounds:IOrientedRectangle — The bounds to query for the painting.
|
getRectangle | () | method |
protected function getRectangle(userObject:Object):IOrientedRectangle
Factory method that retrieves the bounds for a given user object.
This implementation simply returns the value provided to the constructor.
Parameters
userObject:Object — user object to get the bounds for
|
IOrientedRectangle — an oriented rectangle representing the bounds of the user object.
|
installSelectionPaintables | () | method |
public function installSelectionPaintables(userObject:Object, canvas:CanvasComponent, selectionGroup:ICanvasObjectGroup):Array
Implements the interface and installs a rectangle into the canvas control.
This method queries the getRectangle
for a suitable rectangle.
Parameters
userObject:Object — The item to create a selection for.
| |
canvas:CanvasComponent — The canvas to add the IDisplayObjectCreator s for the selection painting to.
| |
selectionGroup:ICanvasObjectGroup — The canvas object group to add the items to.
|
Array — An array of canvas objects this instance has installed into the canvas.
|
See also