Packagecom.yworks.graph.drawing
Interfacepublic interface ILabelStyleRenderer extends IStyleRenderer
Implementors AbstractLabelStyleRenderer, DelegatingStyleRenderer, IconLabelStyleRenderer, VoidLabelStyleRenderer

Interface used by ILabelStyle implementations to query the actual IDisplayObjectCreator and IBoundsProvider implementations for a label and an associated style.



Public Methods
 MethodDefined By
 Inherited
Gets an implementation of the IBoundsProvider interface that can handle the provided item and its associated style.
IStyleRenderer
 Inherited
Gets a temporary context instance that can be used to query additional information for the item's style.
IStyleRenderer
 Inherited
Gets an implementation of IDisplayObjectCreator that will create the display object for the user object.
IStyleRenderer
 Inherited
Gets an implementation of the IHitTestable interface that can handle the provided item and its associated style.
IStyleRenderer
 Inherited
Gets an implementation of the IMarqueeTestable interface that can handle the provided item and its associated style.
IStyleRenderer
  
Calculates the ILabel.preferredSize of a given label using the associated style.
ILabelStyleRenderer
Method Detail
getPreferredSize()method
public function getPreferredSize(label:ILabel, style:ILabelStyle):ISize

Calculates the ILabel.preferredSize of a given label using the associated style.

Parameters

label:ILabel — The label to determine the preferred size for
 
style:ILabelStyle — The style instance that uses this instance as its ILabelStyle.styleRenderer.

Returns
ISize — A size that can be used as the ILabel.preferredSize if this renderer paints the label using the associated style. May return null if there is no such thing like a preferred size for this style.