Packagecom.yworks.graph.drawing
Interfacepublic interface IIconLabelStyle extends ISimpleLabelStyle, ILabelStyle, IVisualStyle
Implementors IconLabelStyle

A label style that also holds an icon.



Public Properties
 PropertyDefined By
 InheritedbackgroundFill : IFill
[read-only] Gets the fill to use for the background box of the label or null
ISimpleLabelStyle
 InheritedbackgroundStroke : IStroke
[read-only] Gets the pen to use for the background box of the label or null
ISimpleLabelStyle
 InheritedclipText : Boolean
[read-only] Gets a value that determines whether text should be clipped.
ISimpleLabelStyle
  icon : IIcon
[read-only] The icon to paint for the label.
IIconLabelStyle
  iconPlacement : ILabelModelParameter
[read-only] The icon placement model parameter.
IIconLabelStyle
 InheritedstyleRenderer : IStyleRenderer
[read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
IVisualStyle
 InheritedtextFormat : UITextFormat
[read-only] Gets the text format used to format the text on a label drawn with this style.
ISimpleLabelStyle
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
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 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, e.g.

     label.iconPlacement = ExteriorLabelModel.west;
     
will place the icon left to the label.


Implementation
    public function get iconPlacement():ILabelModelParameter

See also