| Package | com.yworks.graph.drawing |
| Class | public class BitmapNodeStyle |
| Implements | INodeStyle |
Although the DisplayObject displayed by this style could actually
also represent a vector image, the default (de)serialization of this style only supports reading
and writing of bitmap images using base64 encoding.
See also
| Property | Defined by | ||
|---|---|---|---|
| fallbackStyle : INodeStyle
The fallback style that is painted until the
imageLoader is completely loaded. | BitmapNodeStyle | ||
| image : DisplayObject
The image display object that is used for the associated node.
| BitmapNodeStyle | ||
| imageLoader : ImageLoader
An image loader that is loading or has already
finished loading the image that is to be displayed by this style.
| BitmapNodeStyle | ||
| styleRenderer : IStyleRenderer
[read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation.
| BitmapNodeStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
BitmapNodeStyle(styleRenderer:BitmapNodeStyleRenderer = null, image:DisplayObject = null)
Constructor.
| BitmapNodeStyle | ||
|
clone():Object
Creates a clone of this instance.
| BitmapNodeStyle | ||
|
Prepares the rendering of an
IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | BitmapNodeStyle | ||
| Method | Defined by | ||
|---|---|---|---|
|
Callback that creates the cloned instance for the clone() method.
| BitmapNodeStyle | ||
| fallbackStyle | property |
fallbackStyle:INodeStyle [read-write]
The fallback style that is painted until the
imageLoader is completely loaded.
If the fallback style is null, nothing is painted while
the image is loaded.
public function get fallbackStyle():INodeStyle
public function set fallbackStyle(value:INodeStyle):void
| image | property |
image:DisplayObject [read-write]The image display object that is used for the associated node.
Implementation public function get image():DisplayObject
public function set image(value:DisplayObject):void
See also
| imageLoader | property |
imageLoader:ImageLoader [read-write]An image loader that is loading or has already finished loading the image that is to be displayed by this style.
Implementation public function get imageLoader():ImageLoader
public function set imageLoader(value:ImageLoader):void
See also
| styleRenderer | property |
styleRenderer:IStyleRenderer [read-only]Gets the renderer implementation that has been supplied to this instance upon creation.
Implementation public function get styleRenderer():IStyleRenderer
| BitmapNodeStyle | () | constructor |
public function BitmapNodeStyle(styleRenderer:BitmapNodeStyleRenderer = null, image:DisplayObject = null)Constructor.
ParametersstyleRenderer:BitmapNodeStyleRenderer (default = null) — the image display object to use for the associated node.
for embedded bitmap images, the image should be a |
|
image:DisplayObject (default = null) |
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
protected function createClone():BitmapNodeStyleCallback that creates the cloned instance for the clone() method.
ReturnsBitmapNodeStyle |
| install | () | method |
public function 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.
Implementations may add zero or more ICanvasObject instances to
the given CanvasComponent. The group parameter
can be used as a hint for implementations. They can add their newly created
canvas objects to the given group. However they are not obliged to do that.
canvas:CanvasComponent — The canvas to install the canvas objects in.
|
|
group:ICanvasObjectGroup — A hint that tells the implementation where to add the canvas objects.
|
|
modelItem:IModelItem — The item to install a visual representation for.
|
Array — An array of zero or more canvas objects that have been installed
in the canvas by this method or null if nothing was installed.
|