Packagecom.yworks.canvas.drawing
Classpublic class OrientedRectangleFocusPaintable
InheritanceOrientedRectangleFocusPaintable Inheritance Object
Implements IFocusPaintableInstaller

An installer for a display object in which an oriented rectangle as focus indicator is painted.



Public Properties
 PropertyDefined By
  fill : IFill
Gets or sets the brush to use for filling the rectangle in the view coordinate system.
OrientedRectangleFocusPaintable
  stroke : IStroke
Gets or sets the pen to use for drawing the rectangle in the view coordinate system.
OrientedRectangleFocusPaintable
Public Methods
 MethodDefined By
  
Initializes a new instance of the OrientedRectangleFocusPaintable class that uses the provided bounds for painting.
OrientedRectangleFocusPaintable
  
installFocusPaintables(context:IInputModeContext, focusGroup:ICanvasObjectGroup, item:Object):Array
Creates and installs one or more canvas objects into the canvas that indicate the focus decoration for an item.
OrientedRectangleFocusPaintable
Property Detail
fillproperty
fill:IFill

Gets or sets the brush to use for filling the rectangle in the view coordinate system.


Implementation
    public function get fill():IFill
    public function set fill(value:IFill):void
strokeproperty 
stroke:IStroke

Gets or sets the pen to use for drawing the rectangle in the view coordinate system.


Implementation
    public function get stroke():IStroke
    public function set stroke(value:IStroke):void
Constructor Detail
OrientedRectangleFocusPaintable()Constructor
public function OrientedRectangleFocusPaintable(bounds:IOrientedRectangle)

Initializes a new instance of the OrientedRectangleFocusPaintable class that uses the provided bounds for painting.

Parameters
bounds:IOrientedRectangle — The bounds to query for the painting.
Method Detail
installFocusPaintables()method
public function installFocusPaintables(context:IInputModeContext, focusGroup:ICanvasObjectGroup, item:Object):Array

Creates and installs one or more canvas objects into the canvas that indicate the focus decoration for an item.

Parameters

context:IInputModeContext — The context to add the IDisplayObjectCreator for the focus indicator.
 
focusGroup:ICanvasObjectGroup — The canvas object group to add the items to.
 
item:Object — The item to install the indicator for.

Returns
Array — An array of canvas objects this instance has installed into the CanvasComponent.