Class TLspViewDisplacementStyle

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.style.TLspViewDisplacementStyle
All Implemented Interfaces:
ILspStyler

public class TLspViewDisplacementStyle extends ALspStyle
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
  • Constructor Details

    • TLspViewDisplacementStyle

      protected TLspViewDisplacementStyle(TLspViewDisplacementStyle.Builder aBuilder)
      Creates a style based on the builder.
      Parameters:
      aBuilder - the builder
  • Method Details

    • newBuilder

      public static TLspViewDisplacementStyle.Builder<?> newBuilder()
      Creates a new builder with the default values.
      Returns:
      the new builder.
    • asBuilder

      public TLspViewDisplacementStyle.Builder<?> asBuilder()
      Creates a new builder initialized with all the properties of this style.
      Specified by:
      asBuilder in class ALspStyle
      Returns:
      the new builder.
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class ALspStyle
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ALspStyle
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 class ALspStyle
      Returns:
      whether or not this style is transparent