| Package | com.yworks.graph.drawing |
| Class | public class PolylineEdgeStyle |
| Inheritance | PolylineEdgeStyle AbstractEdgeStyle AbstractStyle Object |
| Implements | IPolylineEdgeStyle |
IStroke.
This style can be used together with a PolylineEdgeStyleRenderer.
| Property | Defined By | ||
|---|---|---|---|
| smoothing : Number
The smoothing length used for creating smooth bends. | PolylineEdgeStyle | ||
![]() | sourceArrow : IArrow
Gets the visual arrow at the source end of edges that use this style. | AbstractEdgeStyle | |
| stroke : IStroke
The stroke used for painting an edge with this style. | PolylineEdgeStyle | ||
![]() | styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | AbstractStyle | |
![]() | targetArrow : IArrow
Gets the visual arrow at the target end of edges that use this style. | AbstractEdgeStyle | |
| Method | Defined By | ||
|---|---|---|---|
PolylineEdgeStyle(edgeStyleRenderer:IStyleRenderer = null)
Creates a new instance. | PolylineEdgeStyle | ||
clone():Object [override]
Creates a clone of this instance. | PolylineEdgeStyle | ||
[override]
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | PolylineEdgeStyle | ||
| Method | Defined By | ||
|---|---|---|---|
[override]
Called by clone() to get a new instance of this. | PolylineEdgeStyle | ||
createDefaultStroke():IStroke
Creates a dark gray stroke with width 1.0
| PolylineEdgeStyle | ||
| smoothing | property |
smoothing:NumberThe smoothing length used for creating smooth bends.
A value of 0.0 will disable smoothing.
public function get smoothing():Number public function set smoothing(value:Number):void| stroke | property |
stroke:IStrokeThe stroke used for painting an edge with this style.
public function get stroke():IStroke public function set stroke(value:IStroke):void| PolylineEdgeStyle | () | Constructor |
public function PolylineEdgeStyle(edgeStyleRenderer:IStyleRenderer = null)Creates a new instance.
ParametersedgeStyleRenderer:IStyleRenderer (default = null) — The style renderer used by this instance. If none
is provided, a new PolylineEdgeStyleRenderer instance will be used.
|
| clone | () | method |
override public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
override protected function createClone():AbstractEdgeStyle
Called by clone() to get a new instance of this.
Subclasses have to override this method
ReturnsAbstractEdgeStyle — A new configured instance of this.
|
| createDefaultStroke | () | method |
protected function createDefaultStroke():IStrokeCreates a dark gray stroke with width 1.0
ReturnsIStroke — An IStroke instance
|
| install | () | method |
override 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.
|