| Package | com.yworks.graph.drawing |
| Class | public class SimplePortStyle |
| Inheritance | SimplePortStyle AbstractStyle |
| Implements | IPortStyle |
| Property | Defined by | ||
|---|---|---|---|
| radius : Number
The radius of the port.
| SimplePortStyle | ||
| stroke : IStroke
The stroke, the port is drawn with.
| SimplePortStyle | ||
| styleRenderer : IStyleRenderer
[read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation.
| SimplePortStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
SimplePortStyle(styleRenderer:IStyleRenderer = null)
Creates a new intance.
| SimplePortStyle | ||
|
clone():Object
Creates a clone of this instance.
| SimplePortStyle | ||
|
Prepares the rendering of an
IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | SimplePortStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
createDefaultStroke():IStroke
The default Stroke, that is used to draw the ports.
| SimplePortStyle | ||
| radius | property |
radius:Number [read-write]The radius of the port.
Implementation public function get radius():Number
public function set radius(value:Number):void
| stroke | property |
stroke:IStroke [read-write]The stroke, the port is drawn with.
Implementation 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.
Implementation public function get styleRenderer():IStyleRenderer
| SimplePortStyle | () | constructor |
public function SimplePortStyle(styleRenderer:IStyleRenderer = null)Creates a new intance.
ParametersstyleRenderer:IStyleRenderer (default = null) — A custom style renderer. If none is provided, a new instance of SimplePortStyleRendere will be used.
|
| clone | () | method |
public override function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createDefaultStroke | () | method |
protected function createDefaultStroke():IStrokeThe default Stroke, that is used to draw the ports. A black line with width = 1
ReturnsIStroke — The default Stroke
|
| install | () | method |
public override 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.
|