public final class TLcyLspCustomizableStyleContext extends Object
Container object around a TLspCustomizableStyle
,
which provides some extra contextual information.
An example use-case of this contextual information is an ILcyCustomizerPanel
allowing to modify the contained TLspCustomizableStyle
. It might be important for
the customizer panel to know whether the style is used for the BODY or for the
LABEL
to adjust its title accordingly.
Constructor and Description |
---|
TLcyLspCustomizableStyleContext(TLspCustomizableStyle aStyle,
TLspPaintRepresentation aPaintRepresentation,
TLspPaintState aPaintState,
ILspLayer aLayer)
Create a new
TLcyLspCustomizableStyleContext instance |
Modifier and Type | Method and Description |
---|---|
ILspLayer |
getLayer()
Returns the layer using the style
|
TLspPaintRepresentation |
getPaintRepresentation()
Returns the
PaintRepresentation for which the style is used |
TLspPaintState |
getPaintState()
Returns the
PaintState for which the style is used |
TLspCustomizableStyle |
getStyle()
Returns the customizable style instance.
|
String |
toString() |
public TLcyLspCustomizableStyleContext(TLspCustomizableStyle aStyle, TLspPaintRepresentation aPaintRepresentation, TLspPaintState aPaintState, ILspLayer aLayer)
TLcyLspCustomizableStyleContext
instanceaStyle
- The customizable style. Must not be null
aPaintRepresentation
- The paint representation for which aStyle
is used. May
be null
when unknownaPaintState
- The paint state for which aStyle
is used. May be
null
when unknownaLayer
- The layer from which the style is retrieved. May be
null
when unknownpublic TLspCustomizableStyle getStyle()
null
public TLspPaintRepresentation getPaintRepresentation()
PaintRepresentation
for which the style is usedPaintRepresentation
for which the style is used. May be
null
when unknownpublic TLspPaintState getPaintState()
PaintState
for which the style is usedPaintState
for which the style is used. May be null
when unknownpublic ILspLayer getLayer()
null
when unknown