public final class VoidStripeStyleRenderer extends Object implements IStripeStyleRenderer
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 IStripeStyle
.
Modifier and Type | Field and Description |
---|---|
static VoidStripeStyleRenderer |
INSTANCE
The
VoidStripeStyleRenderer singleton. |
Modifier and Type | Method and Description |
---|---|
ILookup |
getContext(IStripe stripe,
IStripeStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
IVisualCreator |
getVisualCreator(IStripe stripe,
IStripeStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
public static final VoidStripeStyleRenderer INSTANCE
VoidStripeStyleRenderer
singleton.public final ILookup getContext(IStripe stripe, IStripeStyle style)
ILookup.EMPTY
that will not yield anything.getContext
in interface IStripeStyleRenderer
stripe
- The stripe to provide a context instance for.style
- The style to use for the context.null
lookup implementation.ILookup.EMPTY
,
ILookup
public final IVisualCreator getVisualCreator(IStripe stripe, IStripeStyle style)
VoidVisualCreator.INSTANCE
that will do nothing.getVisualCreator
in interface IStripeStyleRenderer
stripe
- The nstripeode to provide an instance forstyle
- The style to use for the creation of the visualnull
but should yield a void
implementation instead.VoidVisualCreator.INSTANCE