public interface IStripeStyleRenderer
IStripeStyle
implementations that can be used to query the actual IVisualCreator
implementation for a stripe 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.
IStripeStyle
,
IStripe
Modifier and Type | Method and Description |
---|---|
ILookup |
getContext(IStripe stripe,
IStripeStyle style)
Gets a temporary context instance that can be used to query additional information for the stripe's style.
|
IVisualCreator |
getVisualCreator(IStripe stripe,
IStripeStyle style)
Gets an implementation of the
IVisualCreator interface that can handle the provided stripe and its associated
style. |
ILookup getContext(IStripe stripe, IStripeStyle style)
Implementations may return ILookup.EMPTY
if they don't support this, but may not return null
.
stripe
- The stripe to provide a context instance for.style
- The style to use for the context.null
lookup implementation.ILookup.EMPTY
,
ILookup
IVisualCreator getVisualCreator(IStripe stripe, IStripeStyle style)
IVisualCreator
interface that can handle the provided stripe and its associated
style.
This method may return a flyweight implementation, but never null
.
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