public class TLspIconStyle extends ALspStyle implements ILspWorldElevationStyle, ILspEffectsHintStyle
Builder
design
pattern mechanism.
To style objects based its properties use TLspParameterizedIconStyle
Modifier and Type | Class and Description |
---|---|
static class |
TLspIconStyle.Builder<B extends TLspIconStyle.Builder<B>>
Builder for icon styles.
|
static class |
TLspIconStyle.ScalingMode
The different scaling modes for icons.
|
ILspWorldElevationStyle.ElevationMode
ILspEffectsHintStyle.EffectsHint
Modifier | Constructor and Description |
---|---|
protected |
TLspIconStyle(TLspIconStyle.Builder<?> aBuilder)
Creates a new style with the properties that are set on the builder
|
Modifier and Type | Method and Description |
---|---|
TLspIconStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object o) |
Collection<ILspEffectsHintStyle.EffectsHint> |
getEffectsHints()
Returns the effects hints specified for this style.
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
ILcdIcon |
getIcon()
Gets the icon.
|
int |
getMinimumPixelSize()
Returns the minimum icon size in pixels.
|
Color |
getModulationColor()
Gets the color that is modulated with the icon.
|
double |
getOffsetX()
Gets the icon view offset in X direction.
|
double |
getOffsetY()
Gets the icon view offset in Y direction.
|
double |
getScale()
Returns the factor by which the icon width and height are scaled.
|
TLspIconStyle.ScalingMode |
getScalingMode()
Returns the scaling mode of this style.
|
double |
getWorldSize()
Returns the icon size in meters.
|
int |
hashCode() |
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspIconStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
boolean |
usesOrientation()
Returns whether the icon respects its orientation
|
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
protected TLspIconStyle(TLspIconStyle.Builder<?> aBuilder)
aBuilder
- a builder which will be used to initialize this style.public static TLspIconStyle.Builder<?> newBuilder()
public TLspIconStyle.Builder<?> asBuilder()
public ILcdIcon getIcon()
public double getScale()
VIEW_SCALING
or WORLD_SCALING_CLAMPED
.getScalingMode()
public Color getModulationColor()
public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle
public double getOffsetX()
public double getOffsetY()
public boolean usesOrientation()
public TLspIconStyle.ScalingMode getScalingMode()
public double getWorldSize()
ScalingMode.WORLD_SCALING
or
ScalingMode.WORLD_SCALING_CLAMPED
.
The world size is applied to the width of the icon. I.e. when the icon is not square,
the width will correspond to this world size, but the height will not.
By default this is set to 50000m.public int getMinimumPixelSize()
ScalingMode.WORLD_SCALING_CLAMPED
or ScalingMode.WORLD_SCALING
.
As soon as the largest dimension (i.e. width or height) of the icon is smaller than this
minimum pixel size, the icon will be scaled to satisfy this minimum size.
By default this value is set to 0, which indicates that no minimum size will be
enforced.public ILspWorldElevationStyle.ElevationMode getElevationMode()
ILspWorldElevationStyle
getElevationMode
in interface ILspWorldElevationStyle
public Collection<ILspEffectsHintStyle.EffectsHint> getEffectsHints()
ILspEffectsHintStyle
getEffectsHints
in interface ILspEffectsHintStyle