Package | com.yworks.graph.drawing.compat |
Class | public class AbstractJavaNodeStyle |
Inheritance | AbstractJavaNodeStyle Object |
Implements | INodeStyle |
Subclasses | JavaGenericNodeStyle, JavaImageNodeStyle, JavaShapeNodeStyle |
This style corresponds to the NodeRealizer
class in yFiles Java.
Property | Defined By | ||
---|---|---|---|
fillColor : SolidColor
The style's fill color
| AbstractJavaNodeStyle | ||
fillColor2 : SolidColor
The style's second gradient fill color
| AbstractJavaNodeStyle | ||
lineType : LineType
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)
Creates a new instance using the given renderer. | 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
The style's fill color
public function get fillColor():SolidColor
public function set fillColor(value:SolidColor):void
fillColor2 | property |
fillColor2:SolidColor
The style's second gradient fill color
public function get fillColor2():SolidColor
public function set fillColor2(value:SolidColor):void
lineType | property |
lineType:LineType
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.
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.
public function get styleRenderer():IStyleRenderer
transparent | property |
transparent:Boolean
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)
Creates a new instance using the given renderer.
ParametersstyleRenderer:JavaNodeStyleRenderer — The renderer to be used with this style.
|
clone | () | method |
public function clone():Object
Creates a clone of this instance.
ReturnsObject — A clone of this instance.
|
createClone | () | method |
protected function createClone():AbstractJavaNodeStyle
Callback 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.
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.
|