| Package | com.yworks.graph.drawing |
| Class | public class BevelNodeStyle |
| Inheritance | BevelNodeStyle Object |
| Implements | IBevelNodeStyle |
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
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
BevelNodeStyle(renderer:BevelNodeStyleRenderer = null)
Creates a new instance of this style. | BevelNodeStyle | ||
clone():Object
Creates a clone of this instance. | BevelNodeStyle | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | BevelNodeStyle | ||
| Method | Defined By | ||
|---|---|---|---|
Callback that creates the cloned instance for the clone() method. | BevelNodeStyle | ||
| color | property |
color:uintThe base color to use.
public function get color():uint public function set color(value:uint):void| inset | property |
inset:NumberThe insets to use for the bevel.
public function get inset():Number public function set inset(value:Number):void| radius | property |
radius:NumberThe radius of the corner of the rounded rectangle.
public function get radius():Number public function set radius(value:Number):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| BevelNodeStyle | () | Constructor |
public function BevelNodeStyle(renderer:BevelNodeStyleRenderer = null)Creates a new instance of this style.
Parametersrenderer:BevelNodeStyleRenderer (default = null) — The renderer to be used by this style. Uses BevelNodeStyleRenderer if no renderer is given.
|
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
protected function createClone():BevelNodeStyleCallback that creates the cloned instance for the clone() method.
ReturnsBevelNodeStyle |
| 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.
|