public class TLspFillStyle extends ALspStyle implements ILspTexturedStyle, ILspWorldElevationStyle, ILspEffectsHintStyle
Builder
design pattern mechanism.Modifier and Type | Class and Description |
---|---|
static class |
TLspFillStyle.Builder<B extends TLspFillStyle.Builder<B>>
Builder used to create fill styles.
|
static class |
TLspFillStyle.StipplePattern
Represents a 2D stipple pattern, which is specified by a 32x32 grid of bits.
|
ILspTexturedStyle.TextureCoordinatesMode
ILspWorldElevationStyle.ElevationMode
ILspEffectsHintStyle.EffectsHint
Modifier | Constructor and Description |
---|---|
protected |
TLspFillStyle(TLspFillStyle.Builder<?> aBuilder)
Creates a new style with the properties that are set on the builder
|
Modifier and Type | Method and Description |
---|---|
TLspFillStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object obj) |
Color |
getColor()
Gets the color.
|
Collection<ILspEffectsHintStyle.EffectsHint> |
getEffectsHints()
Returns the effects hints specified for this style.
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
TLspFillStyle.StipplePattern |
getStipplePattern()
Gets the stipple pattern used for the fill.
|
RenderedImage |
getTexture()
Gets the texture used for the fill.
|
ILspTexturedStyle.TextureCoordinatesMode |
getTextureCoordinatesMode()
Specifies whether the texture coordinates computed to apply the texture map
should be relative to the bounds of the object or relative to the world.
|
ILcdIcon |
getTextureIcon()
Returns the texture icon used for the fill, if any.
|
ELcdInterpolationType |
getTextureInterpolationType()
Specifies whether linear filtering should be used for the texture map.
|
void |
getTextureMatrixSFCT(double[] aMatrixSFCT)
Returns a 4x4 matrix that should be applied to the texture coordinates when
mapping the texture given by this style.
|
ALsp2DTextureObject |
getTextureObject()
Returns the texture object to be used.
|
int |
hashCode() |
boolean |
isRepeatTexture()
Returns true if the texture should be repeated (or tiled).
|
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspFillStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
protected TLspFillStyle(TLspFillStyle.Builder<?> aBuilder)
aBuilder
- a builder which will be used to initialize this style.public static TLspFillStyle.Builder<?> newBuilder()
public TLspFillStyle.Builder<?> asBuilder()
public Color getColor()
public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle
public RenderedImage getTexture()
null
.getTexture
in interface ILspTexturedStyle
null
.public ALsp2DTextureObject getTextureObject()
ILspTexturedStyle
getTextureObject
in interface ILspTexturedStyle
public ILcdIcon getTextureIcon()
null
public boolean isRepeatTexture()
isRepeatTexture
in interface ILspTexturedStyle
public ELcdInterpolationType getTextureInterpolationType()
ILspTexturedStyle
getTextureInterpolationType
in interface ILspTexturedStyle
public ILspTexturedStyle.TextureCoordinatesMode getTextureCoordinatesMode()
ILspTexturedStyle
getTextureCoordinatesMode
in interface ILspTexturedStyle
public void getTextureMatrixSFCT(double[] aMatrixSFCT)
ILspTexturedStyle
getTextureMatrixSFCT
in interface ILspTexturedStyle
aMatrixSFCT
- array containing the elements of a 4x4 matrix in column-major orderpublic TLspFillStyle.StipplePattern getStipplePattern()
null
.null
.public ILspWorldElevationStyle.ElevationMode getElevationMode()
ILspWorldElevationStyle
getElevationMode
in interface ILspWorldElevationStyle
public Collection<ILspEffectsHintStyle.EffectsHint> getEffectsHints()
ILspEffectsHintStyle
getEffectsHints
in interface ILspEffectsHintStyle