| Package | com.yworks.graph.drawing |
| Interface | public interface ILabelStyleRenderer extends IStyleRenderer |
| Implementors | AbstractLabelStyleRenderer, IconLabelStyleRenderer |
ILabelStyle implementations to
query the actual IPaintable 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 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 | |
![]() |
Gets an implementation of the
IPaintable 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.
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.
|