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

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] The base64 string that encodes the image that should be displayed by this style.
JavaImageNodeStyle
 InheritedfillColor : SolidColor
The style's fill color
AbstractJavaNodeStyle
 InheritedfillColor2 : SolidColor
The style's second gradient fill color
AbstractJavaNodeStyle
  image : DisplayObject
The style's image.
JavaImageNodeStyle
  imageURL : String
The url where this style's image will be loaded from.
JavaImageNodeStyle
 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 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
  
[override] Creates a clone instance of this.
JavaImageNodeStyle
Property Detail
base64property
base64:String  [write-only]

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

The style's image.


Implementation
    public function get image():DisplayObject
    public function set image(value:DisplayObject):void
imageURLproperty 
imageURL:String

The url where this style's image will be loaded from.


Implementation
    public function get imageURL():String
    public function set imageURL(value:String):void

See also

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.
Method Detail
createClone()method
override protected function createClone():AbstractJavaNodeStyle

Creates a clone instance of this.

Returns
AbstractJavaNodeStyle — A clone instance of this.