| Package | com.yworks.graph.drawing |
| Class | public class GeneralPathNodeStyle |
| Inheritance | GeneralPathNodeStyle Object |
| Implements | IGeneralPathNodeStyle |
IGeneralPathNodeStyle.
| Property | Defined By | ||
|---|---|---|---|
| fill : IFill
Gets the fill that is used to draw the shape. | GeneralPathNodeStyle | ||
| path : GeneralPath
Get the path that defines the boundary of the shape. | GeneralPathNodeStyle | ||
| stroke : IStroke
Gets the stroke that is used to draw the shape. | GeneralPathNodeStyle | ||
| styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | GeneralPathNodeStyle | ||
| Method | Defined By | ||
|---|---|---|---|
Create a new instance that uses the specified path and
the given renderer instance. | GeneralPathNodeStyle | ||
clone():Object
Creates a clone of this instance. | GeneralPathNodeStyle | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | GeneralPathNodeStyle | ||
| Method | Defined By | ||
|---|---|---|---|
Callback that creates the cloned instance for the clone() method. | GeneralPathNodeStyle | ||
| fill | property |
fill:IFillGets the fill that is used to draw the shape.
public function get fill():IFill public function set fill(value:IFill):void| path | property |
path:GeneralPathGet the path that defines the boundary of the shape.
The path must be defined in such a way that <0,0> will
be at the top left of a node's INode.layout
and <1,1> will be at the lower right.
The path will be scaled accordingly during the painting.
public function get path():GeneralPath public function set path(value:GeneralPath):void| stroke | property |
stroke:IStrokeGets the stroke that is used to draw the shape.
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| GeneralPathNodeStyle | () | Constructor |
public function GeneralPathNodeStyle(path:GeneralPath, renderer:GeneralPathNodeStyleRenderer = null)
Create a new instance that uses the specified path and
the given renderer instance. If renderer is null, a default
GeneralPathRenderer instance is created.
path:GeneralPath — The GeneralPath that determines the shape of the node.
| |
renderer:GeneralPathNodeStyleRenderer (default = null) — The style renderer to use with this instance.
|
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
protected function createClone():GeneralPathNodeStyleCallback that creates the cloned instance for the clone() method.
ReturnsGeneralPathNodeStyle |
| 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.
|