Packagecom.yworks.graph.drawing.compat
Classpublic class JavaShapeNodeStyle
InheritanceJavaShapeNodeStyle Inheritance AbstractJavaNodeStyle Inheritance Object
Subclasses JavaGroupNodeStyle

Style implementation for use with the yFiles Java library.

This style corresponds to the ShapeNodeRealizer in yFiles Java.



Public Properties
 PropertyDefined By
  dropShadowColor : SolidColor
Get or set this style's drop shadow color
JavaShapeNodeStyle
  dropShadowOffsetX : int
Get or set this style's horizontal drop shadow offset.
JavaShapeNodeStyle
  dropShadowOffsetY : int
Get or set this style's vertical drop shadow offset.
JavaShapeNodeStyle
 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
  shapeNodeShape : uint
Get or set this style's shape.
JavaShapeNodeStyle
 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
  
JavaShapeNodeStyle(styleRenderer:JavaShapeNodeStyleRenderer = null, shapeNodeShape:int = -1)
Creates a new instance.
JavaShapeNodeStyle
  
clone():Object
[override] Creates a clone of this instance.
JavaShapeNodeStyle
 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
  
Queries whether or not the drop shadow is visible.
JavaShapeNodeStyle
Protected Methods
 MethodDefined By
  
[override] Callback that creates the cloned instance for the clone() method.
JavaShapeNodeStyle
Property Detail
dropShadowColorproperty
dropShadowColor:SolidColor

Get or set this style's drop shadow color


Implementation
    public function get dropShadowColor():SolidColor
    public function set dropShadowColor(value:SolidColor):void

See also

dropShadowOffsetXproperty 
dropShadowOffsetX:int

Get or set this style's horizontal drop shadow offset.


Implementation
    public function get dropShadowOffsetX():int
    public function set dropShadowOffsetX(value:int):void

See also

dropShadowOffsetYproperty 
dropShadowOffsetY:int

Get or set this style's vertical drop shadow offset.


Implementation
    public function get dropShadowOffsetY():int
    public function set dropShadowOffsetY(value:int):void

See also

shapeNodeShapeproperty 
shapeNodeShape:uint

Get or set this style's shape.


Implementation
    public function get shapeNodeShape():uint
    public function set shapeNodeShape(value:uint):void

See also

Constructor Detail
JavaShapeNodeStyle()Constructor
public function JavaShapeNodeStyle(styleRenderer:JavaShapeNodeStyleRenderer = null, shapeNodeShape:int = -1)

Creates a new instance.

Parameters
styleRenderer:JavaShapeNodeStyleRenderer (default = null) — The style renderer to be used. If none is provided, a new instance of JavaShapeNodeSyleRenderer will be used.
 
shapeNodeShape:int (default = -1) — The shape of the node as defined in ShapeNodeShape If none is provided, ShapeNodeShape.rectangle will be used.

See also

Method Detail
clone()method
override public function clone():Object

Creates a clone of this instance.

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

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

Returns
AbstractJavaNodeStyle
isDropShadowVisible()method 
public function isDropShadowVisible():Boolean

Queries whether or not the drop shadow is visible. Visibility depends on the offset and color of the drop shadow.

Returns
Booleantrue if the drop shadow is visible.