Packagecom.yworks.graph.drawing.compat
Classpublic class JavaImageNodeStyle
InheritanceJavaImageNodeStyle Inheritance AbstractJavaNodeStyle

Style implementation for use with the yFiles Java library.

This style corresponds to the ImageNodeRealizer in yFiles Java.



Public Properties
 PropertyDefined by
  base64 : String
[write-only] Get or set the base64 string that encodes the image that should be displayed by this style.
JavaImageNodeStyle
 InheritedfillColor : SolidColor
Get or set the style's fill color
AbstractJavaNodeStyle
 InheritedfillColor2 : SolidColor
Get or set the style's second gradient fill color
AbstractJavaNodeStyle
  image : DisplayObject
JavaImageNodeStyle
  imageURL : String
JavaImageNodeStyle
 InheritedlineType : LineType
Get or set the style's line type.
AbstractJavaNodeStyle
 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
  
Creates a new instance of this.
JavaImageNodeStyle
 Inherited
clone():Object
Creates a clone of this instance.
AbstractJavaNodeStyle
 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
Property detail
base64property
base64:String  [write-only]

Get or set the base64 string that encodes the image that should be displayed by this style.

Implementation
    public function set base64(value:String):void
imageproperty 
image:DisplayObject  [read-write]Implementation
    public function get image():DisplayObject
    public function set image(value:DisplayObject):void
imageURLproperty 
imageURL:String  [read-write]Implementation
    public function get imageURL():String
    public function set imageURL(value:String):void
Constructor detail
JavaImageNodeStyle()constructor
public function JavaImageNodeStyle(renderer:JavaImageNodeStyleRenderer = null)

Creates a new instance of this.

Parameters
renderer:JavaImageNodeStyleRenderer (default = null) — A custom style renderer. If none is provided, a new JavaImageNodeStyleRenderer instance will be used.