Packagecom.yworks.graph.drawing
Interfacepublic interface IIconLabelStyleDecorator extends ILabelStyle, IVisualStyle, ICloneable
Implementors IconLabelStyle, IconLabelStyleDecorator

A label style that decorates an existing arbitrary label style with an icon.



Public Properties
 PropertyDefined By
  autoFlip : Boolean
[read-only] Whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.
IIconLabelStyleDecorator
  icon : IIcon
[read-only] The icon to paint for the label
IIconLabelStyleDecorator
  iconPlacement : ILabelModelParameter
[read-only] The icon placement model parameter.
IIconLabelStyleDecorator
  innerStyle : ILabelStyle
[read-only] The inner style that gets decorated by this decorator.
IIconLabelStyleDecorator
 InheritedstyleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
IVisualStyle
Public Methods
 MethodDefined By
 Inherited
clone():Object
Creates a clone of this instance.
ICloneable
 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.
IVisualStyle
Property Detail
autoFlipproperty
autoFlip:Boolean  [read-only]

Whether the label should be flipped 180 degrees automatically, if it would be oriented downwards, otherwise.


Implementation
    public function get autoFlip():Boolean
iconproperty 
icon:IIcon  [read-only]

The icon to paint for the label


Implementation
    public function get icon():IIcon
iconPlacementproperty 
iconPlacement:ILabelModelParameter  [read-only]

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.


Implementation
    public function get iconPlacement():ILabelModelParameter
innerStyleproperty 
innerStyle:ILabelStyle  [read-only]

The inner style that gets decorated by this decorator.


Implementation
    public function get innerStyle():ILabelStyle