Packagecom.yworks.graph.drawing
Classpublic class ShinyPlateNodeStyle
InheritanceShinyPlateNodeStyle Inheritance Object
Implements IShinyPlateNodeStyle



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
  
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.
ShinyPlateNodeStyle
Property Detail
fillproperty
fill:IFill

The base color to use.


Implementation
    public function get fill():IFill
    public function set fill(value:IFill):void
insetsproperty 
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.


Implementation
    public function get insets():Rectangle
    public function set insets(value:Rectangle):void
radiusproperty 
radius:Number

The radius of the rounded corners.


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
strokeproperty 
stroke:IStroke

The outline stroke to use.


Implementation
    public function get stroke():IStroke
    public function set stroke(value:IStroke):void
styleRendererproperty 
styleRenderer:IStyleRenderer  [read-only]

Gets the renderer implementation that has been supplied to this instance upon creation.


Implementation
    public function get styleRenderer():IStyleRenderer
Constructor Detail
ShinyPlateNodeStyle()Constructor
public function ShinyPlateNodeStyle(color:IFill = null, radius:Number = 5, insets:Rectangle = null, stroke:IStroke = null, renderer:ShinyPlateNodeStyleRenderer = null)

Creates a new instance.

Parameters
color: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.
Method Detail
clone()method
public function clone():Object

Creates a clone of this instance.

Returns
Object — 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.

Returns
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.