Packagecom.yworks.graph.drawing
Classpublic class GeneralPathNodeStyle
InheritanceGeneralPathNodeStyle Inheritance Object
Implements IGeneralPathNodeStyle

Generic mutable implementation of an IGeneralPathNodeStyle.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
  
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.
GeneralPathNodeStyle
Protected Methods
 MethodDefined By
  
Callback that creates the cloned instance for the clone() method.
GeneralPathNodeStyle
Property Detail
fillproperty
fill:IFill

Gets the fill that is used to draw the shape.


Implementation
    public function get fill():IFill
    public function set fill(value:IFill):void
pathproperty 
path:GeneralPath

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


Implementation
    public function get path():GeneralPath
    public function set path(value:GeneralPath):void
strokeproperty 
stroke:IStroke

Gets the stroke that is used to draw the shape.


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

Parameters
path:GeneralPath — The GeneralPath that determines the shape of the node.
 
renderer:GeneralPathNodeStyleRenderer (default = null) — The style renderer to use with this instance.
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():GeneralPathNodeStyle

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

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