Packagecom.yworks.graph.drawing.compat
Classpublic class AbstractJavaNodeStyle
InheritanceAbstractJavaNodeStyle Inheritance Object
Implements INodeStyle
Subclasses JavaGenericNodeStyle, JavaImageNodeStyle, 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
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
Public Methods
 MethodDefined By
  
Creates a new instance using the given renderer.
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

The style's fill color


Implementation
    public function get fillColor():SolidColor
    public function set fillColor(value:SolidColor):void
fillColor2property 
fillColor2:SolidColor

The style's second gradient fill color


Implementation
    public function get fillColor2():SolidColor
    public function set fillColor2(value:SolidColor):void
lineTypeproperty 
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.


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

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)

Creates a new instance using the given renderer.

Parameters
styleRenderer:JavaNodeStyleRenderer — The renderer to be used with this style.
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.