| Package | com.yworks.graph.drawing.compat |
| Class | public class AbstractJavaNodeStyle |
| Implements | INodeStyle |
| Subclasses | JavaImageNodeStyle, JavaShapeNodeStyle |
This style corresponds to the NodeRealizer class in yFiles Java.
| Property | Defined by | ||
|---|---|---|---|
| fillColor : SolidColor
Get or set the style's fill color
| AbstractJavaNodeStyle | ||
| fillColor2 : SolidColor
Get or set the style's second gradient fill color
| AbstractJavaNodeStyle | ||
| lineType : LineType
Get or set the style's line type.
| AbstractJavaNodeStyle | ||
| styleRenderer : IStyleRenderer
[read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation.
| AbstractJavaNodeStyle | ||
| transparent : Boolean
Gets or sets the transparent property.
| AbstractJavaNodeStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractJavaNodeStyle(styleRenderer:JavaNodeStyleRenderer)
| AbstractJavaNodeStyle | ||
|
clone():Object
Creates a clone of this instance.
| AbstractJavaNodeStyle | ||
|
Prepares the rendering of an
IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | AbstractJavaNodeStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
Callback that creates the cloned instance for the clone() method.
| AbstractJavaNodeStyle | ||
| fillColor | property |
fillColor:SolidColor [read-write]Get or set the style's fill color
Implementation public function get fillColor():SolidColor
public function set fillColor(value:SolidColor):void
| fillColor2 | property |
fillColor2:SolidColor [read-write]Get or set the style's second gradient fill color
Implementation public function get fillColor2():SolidColor
public function set fillColor2(value:SolidColor):void
| lineType | property |
lineType:LineType [read-write]Get or set the style's line type.
In contrast to the yFiles Java LineType class,
there is no separate
lineColor
property - keep this in mind when sharing line types between styles. Implementation public function get lineType():LineType
public function set lineType(value:LineType):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
| transparent | property |
transparent:Boolean [read-write]Gets or sets the transparent property.
This property is deprecated and only saved for roundtripping of node realizers.
Renderers should treat a style with transparent = true like a
style that has no fill color.
public function get transparent():Boolean
public function set transparent(value:Boolean):void
| AbstractJavaNodeStyle | () | constructor |
public function AbstractJavaNodeStyle(styleRenderer:JavaNodeStyleRenderer)Parameters
styleRenderer:JavaNodeStyleRenderer |
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
protected function createClone():AbstractJavaNodeStyleCallback that creates the cloned instance for the clone() method.
ReturnsAbstractJavaNodeStyle |
| 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.
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.
|