Package com.luciad.view.lightspeed.style
Class TLspViewDisplacementStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.style.TLspViewDisplacementStyle
- All Implemented Interfaces:
ILspStyler
This style describes by how much an element may be displaced from its natural position.
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).
- Since:
- 2012.0
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a style based on the builder. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.boolean
int
Retrieves the maximum allowed horizontal displacement in view coordinates (pixels)int
Retrieves the maximum allowed vertical displacement in view coordinates (pixels)int
hashCode()
boolean
Determines whether this style is transparent.static TLspViewDisplacementStyle.Builder
<?> Creates a new builder with the default values.toString()
Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
-
Constructor Details
-
TLspViewDisplacementStyle
Creates a style based on the builder.- Parameters:
aBuilder
- the builder
-
-
Method Details
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-
asBuilder
Creates a new builder initialized with all the properties of this style. -
getViewDisplacementX
public int getViewDisplacementX()Retrieves the maximum allowed horizontal displacement in view coordinates (pixels)- Returns:
- the maximum displacement, in pixels
-
getViewDisplacementY
public int getViewDisplacementY()Retrieves the maximum allowed vertical displacement in view coordinates (pixels)- Returns:
- the maximum displacement, in pixels
-
equals
-
hashCode
public int hashCode() -
toString
-
isTransparent
public boolean isTransparent()Description copied from class:ALspStyle
Determines whether this style is transparent. Shapes that are transparent can be painted in a different paint phase than shapes that are not transparent.- Specified by:
isTransparent
in classALspStyle
- Returns:
- whether or not this style is transparent
-