Package | com.yworks.graph.drawing |
Class | public class ShinyPlateNodeStyle |
Inheritance | ShinyPlateNodeStyle Object |
Implements | IShinyPlateNodeStyle |
Property | Defined By | ||
---|---|---|---|
fill : IFill
The base color to use. | ShinyPlateNodeStyle | ||
insets : Rectangle
Provides the insets for the given item. | ShinyPlateNodeStyle | ||
radius : Number
The radius of the rounded corners. | ShinyPlateNodeStyle | ||
stroke : IStroke
The outline stroke to use. | ShinyPlateNodeStyle | ||
styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | ShinyPlateNodeStyle |
Method | Defined By | ||
---|---|---|---|
ShinyPlateNodeStyle(color:IFill = null, radius:Number = 5, insets:Rectangle = null, stroke:IStroke = null, renderer:ShinyPlateNodeStyleRenderer = null)
Creates a new instance. | ShinyPlateNodeStyle | ||
clone():Object
Creates a clone of this instance. | ShinyPlateNodeStyle | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | ShinyPlateNodeStyle |
fill | property |
fill:IFill
The base color to use.
public function get fill():IFill
public function set fill(value:IFill):void
insets | property |
insets:Rectangle
Provides the insets for the given item.
The ShinyPlateNodeStyleRenderer
will use these insets and return them
via an INodeInsetsProvider
if such an instance is queried through the
context lookup.
public function get insets():Rectangle
public function set insets(value:Rectangle):void
radius | property |
radius:Number
The radius of the rounded corners.
public function get radius():Number
public function set radius(value:Number):void
stroke | property |
stroke:IStroke
The outline stroke to use.
public function get stroke():IStroke
public function set stroke(value:IStroke):void
styleRenderer | property |
styleRenderer:IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
public function get styleRenderer():IStyleRenderer
ShinyPlateNodeStyle | () | Constructor |
public function ShinyPlateNodeStyle(color:IFill = null, radius:Number = 5, insets:Rectangle = null, stroke:IStroke = null, renderer:ShinyPlateNodeStyleRenderer = null)
Creates a new instance.
Parameterscolor:IFill (default = null ) — The base color.
| |
radius:Number (default = 5 ) — The radius of the corners.
| |
insets:Rectangle (default = null ) — The insets. If none are provided, 5,5,5,5 will be taken as default.
| |
stroke:IStroke (default = null ) — The stroke for the outline.
| |
renderer:ShinyPlateNodeStyleRenderer (default = null ) — The renderer to use. If none is provided,
a new ShinyPlateNodeStyleRenderer will be created.
|
clone | () | method |
public function clone():Object
Creates a clone of this instance.
ReturnsObject — A clone of this instance.
|
install | () | method |
public function install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array
Prepares the rendering of an IModelItem
in a CanvasComponent
by
adding ICanvasObject
's to the provided canvas.
Implementations may add zero or more ICanvasObject
instances to
the given CanvasComponent
. The group
parameter
can be used as a hint for implementations. They can add their newly created
canvas objects to the given group. However they are not obliged to do that.
Parameters
canvas:CanvasComponent — The canvas to install the canvas objects in.
| |
group:ICanvasObjectGroup — A hint that tells the implementation where to add the canvas objects.
| |
modelItem:IModelItem — The item to install a visual representation for.
|
Array — An array of zero or more canvas objects that have been installed
in the canvas by this method or null if nothing was installed.
|