Packagecom.yworks.graph.drawing.compat
Classpublic class AbstractJavaNodeStyle
ImplementsINodeStyle
SubclassesJavaImageNodeStyle, JavaShapeNodeStyle

Abstract Style implementation for use with the yFiles Java library.

This style corresponds to the NodeRealizer class in yFiles Java.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
AbstractJavaNodeStyle
  
clone():Object
Creates a clone of this instance.
AbstractJavaNodeStyle
  
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.
AbstractJavaNodeStyle
Protected Methods
 MethodDefined by
  
Callback that creates the cloned instance for the clone() method.
AbstractJavaNodeStyle
Property detail
fillColorproperty
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
fillColor2property 
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
lineTypeproperty 
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
styleRendererproperty 
styleRenderer:IStyleRenderer  [read-only]

Gets the renderer implementation that has been supplied to this instance upon creation.

Implementation
    public function get styleRenderer():IStyleRenderer
transparentproperty 
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.

Implementation
    public function get transparent():Boolean
    public function set transparent(value:Boolean):void
Constructor detail
AbstractJavaNodeStyle()constructor
public function AbstractJavaNodeStyle(styleRenderer:JavaNodeStyleRenderer)Parameters
styleRenderer:JavaNodeStyleRenderer
Method detail
clone()method
public function clone():Object

Creates a clone of this instance.

Returns
Object — A clone of this instance.
createClone()method 
protected function createClone():AbstractJavaNodeStyle

Callback that creates the cloned instance for the clone() method.

Returns
AbstractJavaNodeStyle
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.

Returns
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.