Package | com.yworks.canvas.drawing |
Class | public class RectangularSelectionPaintable |
Inheritance | RectangularSelectionPaintable Object |
Implements | ISelectionPaintable |
ISelectionPaintable
implementation
that draws a rectangle of the bounds of the selected item.
Property | Defined By | ||
---|---|---|---|
fill : IFill
Gets or sets the brush to use for filling the rectangle in the view coordinate system. | RectangularSelectionPaintable | ||
stroke : IStroke
Gets or sets the pen to use for drawing the rectangle in the view coordinate system. | RectangularSelectionPaintable |
Method | Defined By | ||
---|---|---|---|
Creates a selection paintable that paints the bounds. | RectangularSelectionPaintable | ||
installSelectionPaintables(userObject:Object, canvas:CanvasComponent, selectionGroup:ICanvasObjectGroup):Array
Creates and installs
one or more canvas objects into the canvas that indicate a selection decoration for
an item. | RectangularSelectionPaintable |
Method | Defined By | ||
---|---|---|---|
getRectangle(userObject:Object):IRectangle
Factory method that retrieves the bounds for a given user object. | RectangularSelectionPaintable |
fill | property |
fill:IFill
Gets or sets the brush 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 pen to use for drawing the rectangle in the view coordinate system.
public function get stroke():IStroke
public function set stroke(value:IStroke):void
RectangularSelectionPaintable | () | Constructor |
public function RectangularSelectionPaintable(bounds:IRectangle)
Creates a selection paintable that paints the bounds.
Parametersbounds:IRectangle — The bounds to query for the painting.
|
getRectangle | () | method |
protected function getRectangle(userObject:Object):IRectangle
Factory method that retrieves the bounds for a given user object.
This implementation simply returns the value provided to the constructor.
Parameters
userObject:Object — The user object to get the bounds for.
|
IRectangle — The bounds of the user object. This implementation simply returns the value provided to the constructor.
|
installSelectionPaintables | () | method |
public function installSelectionPaintables(userObject:Object, canvas:CanvasComponent, selectionGroup:ICanvasObjectGroup):Array
Creates and installs one or more canvas objects into the canvas that indicate a selection decoration for an item.
Parameters
userObject:Object — The item to create a selection for.
| |
canvas:CanvasComponent — The canvas to add the selection visualization 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.
|