public final class VoidLabelStyleRenderer extends Object implements ILabelStyleRenderer
This class implements the singleton pattern. Use the shared static INSTANCE of this class instead of null
where null is not allowed. For example you cannot assign null to the Renderer
property of an ILabelStyle.
| Modifier and Type | Field and Description |
|---|---|
static VoidLabelStyleRenderer |
INSTANCE
The singleton instance of this renderer.
|
| Modifier and Type | Method and Description |
|---|---|
IBoundsProvider |
getBoundsProvider(ILabel label,
ILabelStyle style)
Yields the
IBoundsProvider.EMPTY that will return empty bounds. |
ILookup |
getContext(ILabel label,
ILabelStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
IHitTestable |
getHitTestable(ILabel label,
ILabelStyle style)
Yields the
IHitTestable.NEVER that will always report misses. |
static VoidLabelStyleRenderer |
getInstance()
Returns the
com.yworks.yfiles.common.drawing.VoidLabelStyleRenderer singleton. |
IMarqueeTestable |
getMarqueeTestable(ILabel label,
ILabelStyle style)
Yields the
IMarqueeTestable.NEVER that will always report misses. |
SizeD |
getPreferredSize(ILabel label,
ILabelStyle style)
Yields
SizeD.EMPTY. |
IVisibilityTestable |
getVisibilityTestable(ILabel label,
ILabelStyle style)
Yields the
IVisibilityTestable.NEVER that will always claim invisibility. |
IVisualCreator |
getVisualCreator(ILabel label,
ILabelStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
public static final VoidLabelStyleRenderer INSTANCE
public final IBoundsProvider getBoundsProvider(ILabel label, ILabelStyle style)
IBoundsProvider.EMPTY that will return empty bounds.getBoundsProvider in interface ILabelStyleRendererlabel - The label to provide an instance forstyle - The style to use for the calculating the painting boundspublic final ILookup getContext(ILabel label, ILabelStyle style)
ILookup.EMPTY that will not yield anything.getContext in interface ILabelStyleRendererlabel - The label to provide a context instance for.style - The style to use for the context.null lookup implementation.ILookup.EMPTY,
ILookuppublic final IHitTestable getHitTestable(ILabel label, ILabelStyle style)
IHitTestable.NEVER that will always report misses.getHitTestable in interface ILabelStyleRendererlabel - 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.public static VoidLabelStyleRenderer getInstance()
com.yworks.yfiles.common.drawing.VoidLabelStyleRenderer singleton.com.yworks.yfiles.common.drawing.VoidLabelStyleRenderer singleton.public final IMarqueeTestable getMarqueeTestable(ILabel label, ILabelStyle style)
IMarqueeTestable.NEVER that will always report misses.getMarqueeTestable in interface ILabelStyleRendererlabel - The label to provide an instance forstyle - The style to use for the querying marquee intersection test.public final SizeD getPreferredSize(ILabel label, ILabelStyle style)
SizeD.EMPTY.getPreferredSize in interface ILabelStyleRendererlabel - 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.public final IVisibilityTestable getVisibilityTestable(ILabel label, ILabelStyle style)
IVisibilityTestable.NEVER that will always claim invisibility.getVisibilityTestable in interface ILabelStyleRendererlabel - The label to provide an instance forstyle - The style to use for the testing the visibilitypublic final IVisualCreator getVisualCreator(ILabel label, ILabelStyle style)
VoidVisualCreator.INSTANCE that will do nothing.getVisualCreator in interface ILabelStyleRendererlabel - 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