Package | com.yworks.graph.drawing |
Interface | public interface ILabelStyleRenderer extends IStyleRenderer |
Implementors | AbstractLabelStyleRenderer, DelegatingStyleRenderer, IconLabelStyleRenderer, VoidLabelStyleRenderer |
ILabelStyle
implementations to
query the actual IDisplayObjectCreator
and IBoundsProvider
implementations for a label and an associated style.
Method | Defined By | ||
---|---|---|---|
Gets an implementation of the IBoundsProvider interface that can
handle the provided item and its associated style. | IStyleRenderer | ||
Gets a temporary context instance that can be used to query additional information
for the item's style. | IStyleRenderer | ||
Gets an implementation of IDisplayObjectCreator that will create
the display object for the user object. | IStyleRenderer | ||
Gets an implementation of the IHitTestable interface that can
handle the provided item and its associated style. | IStyleRenderer | ||
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 |
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 .
|
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.
|