Package | com.yworks.graph.drawing |
Class | public class SimplePortStyle |
Inheritance | SimplePortStyle AbstractStyle Object |
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 [override] [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 instance. | SimplePortStyle | ||
clone():Object [override]
Creates a clone of this instance. | SimplePortStyle | ||
[override]
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
The radius of the port.
public function get radius():Number
public function set radius(value:Number):void
stroke | property |
stroke:IStroke
The stroke, the port is drawn with.
public function get stroke():IStroke
public function set stroke(value:IStroke):void
styleRenderer | property |
styleRenderer:IStyleRenderer
[read-only] [override] Gets the renderer implementation that has been supplied to this instance upon creation.
public function get styleRenderer():IStyleRenderer
SimplePortStyle | () | Constructor |
public function SimplePortStyle(styleRenderer:IStyleRenderer = null)
Creates a new instance.
ParametersstyleRenderer:IStyleRenderer (default = null ) — A custom style renderer. If none is provided, a new instance of SimplePortStyleRenderer will be used.
|
clone | () | method |
override public function clone():Object
Creates a clone of this instance.
ReturnsObject — A clone of this instance.
|
createDefaultStroke | () | method |
protected function createDefaultStroke():IStroke
The default Stroke, that is used to draw the ports. A black line with width = 1
ReturnsIStroke — The default Stroke
|
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.
|