| Package | com.yworks.graph.drawing |
| Class | public class BevelNodeStyle |
| 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:uint [read-write]The base color to use.
Implementation public function get color():uint
public function set color(value:uint):void
| inset | property |
inset:Number [read-write]The insets to use for the bevel.
Implementation public function get inset():Number
public function set inset(value:Number):void
| radius | property |
radius:Number [read-write]The radius of the corner of the rounded rectangle.
Implementation 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.
Implementation 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.
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.
|