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

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
Get or set the style's fill color
AbstractJavaNodeStyle
 InheritedfillColor2 : SolidColor
Get or set the style's second gradient fill color
AbstractJavaNodeStyle
 InheritedlineType : LineType
Get or set the style's line type.
AbstractJavaNodeStyle
  shapeNodeShape : uint
Get or set this style's shape.
JavaShapeNodeStyle
 InheritedstyleRenderer : IStyleRenderer
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
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
  
Callback that creates the cloned instance for the clone() method.
JavaShapeNodeStyle
Property detail
dropShadowColorproperty
dropShadowColor:SolidColor  [read-write]

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  [read-write]

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  [read-write]

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  [read-write]

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
public override function clone():Object

Creates a clone of this instance.

Returns
Object — A clone of this instance.
createClone()method 
protected override 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.