public class TLspRasterStyle extends ALspStyle implements ILspWorldElevationStyle, ILspEffectsHintStyle
Builder
design pattern mechanism.Modifier and Type | Class and Description |
---|---|
static class |
TLspRasterStyle.Builder<B extends TLspRasterStyle.Builder<B>>
Builder for raster styles.
|
ILspWorldElevationStyle.ElevationMode
ILspEffectsHintStyle.EffectsHint
Modifier | Constructor and Description |
---|---|
protected |
TLspRasterStyle(TLspRasterStyle.Builder aBuilder)
Creates a new style with the properties that are set on the builder
|
Modifier and Type | Method and Description |
---|---|
TLspRasterStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object o) |
float |
getBrightness()
Gets the brightness.
|
TLcdColorMap |
getColorMap()
Returns the color map.
|
ColorModel |
getColorModel()
Gets the color model.
|
float |
getContrast()
Gets the contrast.
|
Collection<ILspEffectsHintStyle.EffectsHint> |
getEffectsHints()
Returns the effects hints specified for this style.
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
ELcdInterpolationType |
getInterpolationType()
Returns the interpolation type of this style.
|
double |
getLevelSwitchFactor()
Returns the lowest pixel density (number of raster pixels per screen pixel) at which a raster
level is used.
|
Color |
getModulationColor()
Gets the color that is modulated with the raster.
|
double |
getStartResolutionFactor()
Returns the highest pixel density (number of raster pixels per screen pixel) at which the data
will be used.
|
int |
hashCode() |
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspRasterStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
protected TLspRasterStyle(TLspRasterStyle.Builder aBuilder)
aBuilder
- a builder which will be used to initialize this style.public static TLspRasterStyle.Builder<?> newBuilder()
public TLspRasterStyle.Builder<?> asBuilder()
public Color getModulationColor()
public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle
public float getBrightness()
[0, 2]
. A value of 1 (the default) leaves the brightness
unchanged. Values larger than 1 makes the colors brighter, while a value smaller than 1 makes
the colors less bright.
Note that the same effect can be achieved using TLspLayerStyle
.
public float getContrast()
[0, 2]
. A value of 1 (the default) leaves the contrast
unchanged. A value larger than 1 enhances the contrast of dark colors by making them brighter,
while a value smaller than 1 enhances the contrast of bright colors by making them darker.
Note that the same effect can be achieved using TLspLayerStyle
.
public double getStartResolutionFactor()
TLspRasterStyle.Builder.startResolutionFactor(double)
public double getLevelSwitchFactor()
TLspRasterStyle.Builder.levelSwitchFactor(double)
public ColorModel getColorModel()
null
then the default color model of the raster should be used.
This color model should never be modified. To change the color model
you should create a new style with a different color model instance.null
.public TLcdColorMap getColorMap()
null
.public ILspWorldElevationStyle.ElevationMode getElevationMode()
getElevationMode
in interface ILspWorldElevationStyle
public ELcdInterpolationType getInterpolationType()
null
interpolation type indicates the default (implementation specific) value
should be used.public Collection<ILspEffectsHintStyle.EffectsHint> getEffectsHints()
ILspEffectsHintStyle
getEffectsHints
in interface ILspEffectsHintStyle