Packagecom.yworks.graph.drawing.compat
Classpublic class JavaGenericNodeStyle
InheritanceJavaGenericNodeStyle Inheritance AbstractJavaNodeStyle Inheritance Object
Subclasses JavaGenericNodeStyleWrapper

Abstract base class for styles which represent a yFiles Java GenericNodeRealizer.

Implementors have to override the methods createRenderer() and createClone().

If a style is created on the client and intended to be serialized, its configuration property has to be set. For styles which are deserialized from GraphML, the configuration property will be set automatically by the deserializer.



Public Properties
 PropertyDefined By
  configuration : String
The name of the configuration.
JavaGenericNodeStyle
  dropShadowEnabled : Boolean
Whether a drop shadow should be drawn.
JavaGenericNodeStyle
  dropShadowFilters : Array
An array of filters which will be used to draw the drop shadow.
JavaGenericNodeStyle
 InheritedfillColor : SolidColor
The style's fill color
AbstractJavaNodeStyle
 InheritedfillColor2 : SolidColor
The style's second gradient fill color
AbstractJavaNodeStyle
 InheritedlineType : LineType
The style's line type.
AbstractJavaNodeStyle
 InheritedstyleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
AbstractJavaNodeStyle
 Inheritedtransparent : Boolean
Gets or sets the transparent property.
AbstractJavaNodeStyle
Public Methods
 MethodDefined By
  
Creates a new instance.
JavaGenericNodeStyle
  
clone():Object
[override] Creates a clone of this instance.
JavaGenericNodeStyle
 Inherited
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
 Inherited
Callback that creates the cloned instance for the clone() method.
AbstractJavaNodeStyle
  
Creates a renderer which can handle this style.
JavaGenericNodeStyle
Property Detail
configurationproperty
configuration:String

The name of the configuration.

When serialized, the GenericNode element will have this String as configuration attribute.


Implementation
    public function get configuration():String
    public function set configuration(value:String):void
dropShadowEnabledproperty 
dropShadowEnabled:Boolean

Whether a drop shadow should be drawn.

The default value is false.


Implementation
    public function get dropShadowEnabled():Boolean
    public function set dropShadowEnabled(value:Boolean):void
dropShadowFiltersproperty 
dropShadowFilters:Array

An array of filters which will be used to draw the drop shadow.

The default value is An appropriate DropShadowFilter..


Implementation
    public function get dropShadowFilters():Array
    public function set dropShadowFilters(value:Array):void
Constructor Detail
JavaGenericNodeStyle()Constructor
public function JavaGenericNodeStyle(styleRenderer:JavaNodeStyleRenderer = null)

Creates a new instance.

Implementors have to call this constructor.

Parameters
styleRenderer:JavaNodeStyleRenderer (default = null) — A renderer which can handle this style. If none is provided a new one will be created using the method createRenderer()
Method Detail
clone()method
override public function clone():Object

Creates a clone of this instance.

This implementation clones already the properties which are common for all JavaGenericNodeStyles. Thus, if overridden, implementors should get the cloned instance with

		 var clone:JavaGenericNodeStyle = super.clone() as JavaGenericNodeStyle;
		 
and copy their properties to that instance.

It is also necessary to override the method createClone() to return a new instance of the subclass.

It is recommended to create the new instance and copy the properties of the subclass in the overridden createClone() method and leave the clone() method unchanged.

Returns
Object — A clone of this instance.
createRenderer()method 
protected function createRenderer():JavaNodeStyleRenderer

Creates a renderer which can handle this style.

Implementors have to override this method to return an appropriate renderer.

Returns
JavaNodeStyleRenderer — A handler which can handle this style.