public interface ILabelStyleRenderer
ILabelStyle implementations to query the actual IVisualCreator,
IVisibilityTestable, IBoundsProvider, IHitTestable, and IMarqueeTestable
implementations for a label and an associated style.
Implementations of this interface should be designed to be sharable between multiple style instances and should therefore not contain style specific state.
ILabelStyle,
ILabel,
INodeStyleRenderer,
IEdgeStyleRenderer,
IPortStyleRenderer| Modifier and Type | Method and Description |
|---|---|
IBoundsProvider |
getBoundsProvider(ILabel label,
ILabelStyle style)
Gets an implementation of the
IBoundsProvider interface that can handle the provided label and its associated
style. |
ILookup |
getContext(ILabel label,
ILabelStyle style)
Gets a temporary context instance that can be used to query additional information for the label's style.
|
IHitTestable |
getHitTestable(ILabel label,
ILabelStyle style)
Gets an implementation of the
IHitTestable interface that can handle the provided label and its associated
style. |
IMarqueeTestable |
getMarqueeTestable(ILabel label,
ILabelStyle style)
Gets an implementation of the
IMarqueeTestable interface that can handle the provided label and its associated
style. |
SizeD |
getPreferredSize(ILabel label,
ILabelStyle style)
Calculates the
preferred size of a given label using the associated style. |
IVisibilityTestable |
getVisibilityTestable(ILabel label,
ILabelStyle style)
Gets an implementation of the
IVisibilityTestable interface that can handle the provided label and its
associated style. |
IVisualCreator |
getVisualCreator(ILabel label,
ILabelStyle style)
Gets an implementation of the
IVisualCreator interface that can handle the provided label and its associated
style. |
IBoundsProvider getBoundsProvider(ILabel label, ILabelStyle style)
IBoundsProvider interface that can handle the provided label and its associated
style.
This method may return a flyweight implementation.
label - The label to provide an instance forstyle - The style to use for the calculating the painting boundsILookup getContext(ILabel label, ILabelStyle style)
Implementations may return ILookup.EMPTY if they don't support this, but may not return null.
label - The label to provide a context instance for.style - The style to use for the context.null lookup implementation.ILookup.EMPTY,
ILookupIHitTestable getHitTestable(ILabel label, ILabelStyle style)
IHitTestable interface that can handle the provided label and its associated
style.
This method may return a flyweight implementation.
label - The label to provide an instance forstyle - The style to use for the querying hit testsnull to indicate that the label cannot be hit tested.IMarqueeTestable getMarqueeTestable(ILabel label, ILabelStyle style)
IMarqueeTestable interface that can handle the provided label and its associated
style.
This method may return a flyweight implementation.
label - The label to provide an instance forstyle - The style to use for the querying marquee intersection test.SizeD getPreferredSize(ILabel label, ILabelStyle style)
preferred size of a given label using the associated style.label - The label to determine the preferred size forstyle - The style instance that uses this instance as its RendererPreferredSize if this renderer renders the label using
the associated style.IVisibilityTestable getVisibilityTestable(ILabel label, ILabelStyle style)
IVisibilityTestable interface that can handle the provided label and its
associated style.
This method may return a flyweight implementation.
label - The label to provide an instance forstyle - The style to use for the testing the visibilityIVisualCreator getVisualCreator(ILabel label, ILabelStyle style)
IVisualCreator interface that can handle the provided label and its associated
style.
This method may return a flyweight implementation, but never null.
label - The label to provide an instance forstyle - The style to use for the creation of the visualnull but should yield a void
implementation instead.VoidVisualCreator.INSTANCE