Package | com.yworks.graph.drawing.compat |
Class | public class JavaGenericNodeStyle |
Inheritance | JavaGenericNodeStyle AbstractJavaNodeStyle Object |
Subclasses | JavaGenericNodeStyleWrapper |
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.
Property | Defined 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 | ||
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 | ||
---|---|---|---|
JavaGenericNodeStyle(styleRenderer:JavaNodeStyleRenderer = null)
Creates a new instance. | JavaGenericNodeStyle | ||
clone():Object [override]
Creates a clone of this instance. | JavaGenericNodeStyle | ||
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 | ||
Creates a renderer which can handle this style. | JavaGenericNodeStyle |
configuration | property |
configuration:String
The name of the configuration.
When serialized, the GenericNode
element will have this
String
as configuration
attribute.
public function get configuration():String
public function set configuration(value:String):void
dropShadowEnabled | property |
dropShadowEnabled:Boolean
Whether a drop shadow should be drawn.
The default value is false
.
public function get dropShadowEnabled():Boolean
public function set dropShadowEnabled(value:Boolean):void
dropShadowFilters | property |
dropShadowFilters:Array
An array of filters which will be used to draw the drop shadow.
The default value is An appropriate DropShadowFilter.
.
public function get dropShadowFilters():Array
public function set dropShadowFilters(value:Array):void
JavaGenericNodeStyle | () | Constructor |
public function JavaGenericNodeStyle(styleRenderer:JavaNodeStyleRenderer = null)
Creates a new instance.
Implementors have to call this constructor.
ParametersstyleRenderer:JavaNodeStyleRenderer (default = null ) — A renderer which can handle this style. If none is provided
a new one will be created using the method createRenderer()
|
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.
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.
ReturnsJavaNodeStyleRenderer — A handler which can handle this style.
|