public class TLspViewDisplacementStyle extends ALspStyle
This style can be used by painters to allow icons or labels to be shifted on the screen to a position above the terrain.
Use TLspViewDisplacementStyle.Builder.viewDisplacement(int, int)
to specify the maximum allowed displacement in
view coordinates (pixels).
Modifier and Type | Class and Description |
---|---|
static class |
TLspViewDisplacementStyle.Builder<B extends TLspViewDisplacementStyle.Builder<B>>
Builder for
TLspViewDisplacementStyle |
Modifier | Constructor and Description |
---|---|
protected |
TLspViewDisplacementStyle(TLspViewDisplacementStyle.Builder aBuilder)
Creates a style based on the builder.
|
Modifier and Type | Method and Description |
---|---|
TLspViewDisplacementStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object o) |
int |
getViewDisplacementX()
Retrieves the maximum allowed horizontal displacement in view coordinates (pixels)
|
int |
getViewDisplacementY()
Retrieves the maximum allowed vertical displacement in view coordinates (pixels)
|
int |
hashCode() |
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspViewDisplacementStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
protected TLspViewDisplacementStyle(TLspViewDisplacementStyle.Builder aBuilder)
aBuilder
- the builderpublic static TLspViewDisplacementStyle.Builder<?> newBuilder()
public TLspViewDisplacementStyle.Builder<?> asBuilder()
public int getViewDisplacementX()
public int getViewDisplacementY()
public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle