Packagecom.yworks.graph.drawing
Classpublic class BevelNodeStyle
InheritanceBevelNodeStyle Inheritance Object
Implements IBevelNodeStyle

Simple basic implementation of the IBevelNodeStyle that is used by the BevelNodeStyleRenderer. Nodes are drawn as a rounded rectangle with a bevel border in a 'shiny plate' fashion.

See also

IBevelNodeStyle
BevelNodeStyleRenderer


Public Properties
 PropertyDefined By
  color : uint
The base color to use.
BevelNodeStyle
  inset : Number
The insets to use for the bevel.
BevelNodeStyle
  radius : Number
The radius of the corner of the rounded rectangle.
BevelNodeStyle
  styleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
BevelNodeStyle
Public Methods
 MethodDefined By
  
Creates a new instance of this style.
BevelNodeStyle
  
clone():Object
Creates a clone of this instance.
BevelNodeStyle
  
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.
BevelNodeStyle
Protected Methods
 MethodDefined By
  
Callback that creates the cloned instance for the clone() method.
BevelNodeStyle
Property Detail
colorproperty
color:uint

The base color to use.


Implementation
    public function get color():uint
    public function set color(value:uint):void
insetproperty 
inset:Number

The insets to use for the bevel.


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

The radius of the corner of the rounded rectangle.


Implementation
    public function get radius():Number
    public function set radius(value:Number):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
BevelNodeStyle()Constructor
public function BevelNodeStyle(renderer:BevelNodeStyleRenderer = null)

Creates a new instance of this style.

Parameters
renderer:BevelNodeStyleRenderer (default = null) — The renderer to be used by this style. Uses BevelNodeStyleRenderer if no renderer is given.
Method Detail
clone()method
public function clone():Object

Creates a clone of this instance.

Returns
Object — A clone of this instance.
createClone()method 
protected function createClone():BevelNodeStyle

Callback that creates the cloned instance for the clone() method.

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