public class TLspLineStyle extends ALspStyle implements ILspTexturedStyle, ILspWorldElevationStyle, ILspEffectsHintStyle
Builder
design pattern mechanism.
To style objects based its properties use TLspParameterizedLineStyle
Modifier and Type | Class and Description |
---|---|
static class |
TLspLineStyle.BlendOverlapMode
An enumeration that defines how lines with the same style will be blended.
|
static class |
TLspLineStyle.Builder<B extends TLspLineStyle.Builder<B>>
Builder for line styles.
|
static class |
TLspLineStyle.DashPattern
Dash pattern for line styles.
|
ILspTexturedStyle.TextureCoordinatesMode
ILspWorldElevationStyle.ElevationMode
ILspEffectsHintStyle.EffectsHint
Modifier | Constructor and Description |
---|---|
protected |
TLspLineStyle(TLspLineStyle.Builder aBuilder)
Creates a new style with the properties that are set on the builder
|
Modifier and Type | Method and Description |
---|---|
TLspLineStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object obj) |
TLspLineStyle.BlendOverlapMode |
getBlendOverlap()
Determines whether different lines that are painted with the same style and
that cover the same pixels are blended together or not.
|
Color |
getColor()
Gets the color.
|
TLspLineStyle.DashPattern |
getDashPattern()
Gets the dash pattern.
|
Collection<ILspEffectsHintStyle.EffectsHint> |
getEffectsHints()
Returns the effects hints specified for this style.
|
ILspWorldElevationStyle.ElevationMode |
getElevationMode()
Returns the elevation mode of this style.
|
double |
getPixelOffset()
Returns the offset from the original geometry at which the line should be
drawn.
|
RenderedImage |
getTexture()
Returns the image to be used as a texture map.
|
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.
|
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.
|
double |
getWidth()
Gets the line width (pixels).
|
int |
hashCode() |
boolean |
isBlendOverlap()
Deprecated.
The blend overlap mode is now defined by an enumeration, use
getBlendOverlap() . |
boolean |
isRepeatTexture()
Specifies whether the texture map should be repeated (tiled) or not.
|
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspLineStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
protected TLspLineStyle(TLspLineStyle.Builder aBuilder)
aBuilder
- a builder which will be used to initialize this style.public static TLspLineStyle.Builder<?> newBuilder()
public TLspLineStyle.Builder<?> asBuilder()
public Color getColor()
public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle
public double getWidth()
@Deprecated public boolean isBlendOverlap()
getBlendOverlap()
.
When false
, all pixels covered will receive the same color, even if
this color is transparent and if multiple lines cover the same pixel. If
true
, overlapping (transparent) lines will be blended together
resulting in a less transparent color at their crossings.
The default value is false
.
public TLspLineStyle.BlendOverlapMode getBlendOverlap()
When the mode is BlendOverlapMode#NEVER
, all pixels covered will
receive the same color, even if this color is transparent and if multiple
lines cover the same pixel. If the mode is BlendOverlapMode#ALWAYS
,
overlapping (transparent) lines will be blended together resulting in a
less transparent color at their crossings.
Finally the BlendOverlapMode#AUTO
chooses the mode that gives the
best results depending on the context. For instance, lines that are not
draped should be blended. Lines that are draped will not be blended.
The default value is BlendOverlapMode#AUTO
.
public double getPixelOffset()
public RenderedImage getTexture()
ILspTexturedStyle
getTexture
in interface ILspTexturedStyle
public ALsp2DTextureObject getTextureObject()
ILspTexturedStyle
getTextureObject
in interface ILspTexturedStyle
public boolean isRepeatTexture()
ILspTexturedStyle
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 TLspLineStyle.DashPattern getDashPattern()
null
.public ILspWorldElevationStyle.ElevationMode getElevationMode()
ILspWorldElevationStyle
getElevationMode
in interface ILspWorldElevationStyle
public Collection<ILspEffectsHintStyle.EffectsHint> getEffectsHints()
ILspEffectsHintStyle
getEffectsHints
in interface ILspEffectsHintStyle