Package | com.yworks.graph.drawing |
Class | public class IconLabelStyleDecorator |
Inheritance | IconLabelStyleDecorator Object |
Implements | IIconLabelStyleDecorator |
IIconLabelStyleDecorator
interface.
See also
Property | Defined By | ||
---|---|---|---|
autoFlip : Boolean
Whether the label should be flipped 180 degrees automatically,
if it would be oriented downwards, otherwise. | IconLabelStyleDecorator | ||
icon : IIcon
The icon to paint for the label
| IconLabelStyleDecorator | ||
iconPlacement : ILabelModelParameter
The icon placement model parameter. | IconLabelStyleDecorator | ||
innerStyle : ILabelStyle
The inner style that gets decorated by this decorator. | IconLabelStyleDecorator | ||
styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | IconLabelStyleDecorator |
Method | Defined By | ||
---|---|---|---|
IconLabelStyleDecorator(icon:IIcon, iconPlacement:ILabelModelParameter, innerStyle:ILabelStyle = null, renderer:ILabelStyleRenderer = null)
Creates a new instance. | IconLabelStyleDecorator | ||
clone():Object
Creates a clone of this instance. | IconLabelStyleDecorator | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | IconLabelStyleDecorator |
Method | Defined By | ||
---|---|---|---|
Callback that creates the cloned instance for the clone() method. | IconLabelStyleDecorator |
autoFlip | property |
autoFlip:Boolean
Whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.
public function get autoFlip():Boolean
public function set autoFlip(value:Boolean):void
icon | property |
icon:IIcon
The icon to paint for the label
public function get icon():IIcon
public function set icon(value:IIcon):void
iconPlacement | property |
iconPlacement:ILabelModelParameter
The icon placement model parameter.
All valid node label model parameters can be used. The label's ILabel.layout
will be interpreted as the node's layout and the icon will be placed relative to that
layout as if it was a node's label.
public function get iconPlacement():ILabelModelParameter
public function set iconPlacement(value:ILabelModelParameter):void
innerStyle | property |
innerStyle:ILabelStyle
The inner style that gets decorated by this decorator.
public function get innerStyle():ILabelStyle
public function set innerStyle(value:ILabelStyle):void
styleRenderer | property |
styleRenderer:IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
public function get styleRenderer():IStyleRenderer
IconLabelStyleDecorator | () | Constructor |
public function IconLabelStyleDecorator(icon:IIcon, iconPlacement:ILabelModelParameter, innerStyle:ILabelStyle = null, renderer:ILabelStyleRenderer = null)
Creates a new instance.
Parametersicon:IIcon — The icon to display.
| |
iconPlacement:ILabelModelParameter — A ILabelModelParameter which describes the position
of the icon relative to the label text.
All valid node label model parameters can be used. The label's | |
innerStyle:ILabelStyle (default = null ) — The ILabelStyle which is decorated by this instance.
If none is provided, a SimpleLabelStyle is used.
| |
renderer:ILabelStyleRenderer (default = null ) — The IStyleRenderer which renders the label. If none is
provided a new IconLabelStyleRenderer instance is used.
|
clone | () | method |
public function clone():Object
Creates a clone of this instance.
ReturnsObject — A clone of this instance.
|
createClone | () | method |
protected function createClone():IconLabelStyleDecorator
Callback that creates the cloned instance for the clone() method.
ReturnsIconLabelStyleDecorator — A clone of this instance.
|
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.
Parameters
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.
|