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 Link icon

    • TLspViewDisplacementStyle Link icon

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

    • newBuilder Link icon

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

      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 Link icon

      public int getViewDisplacementX()
      Retrieves the maximum allowed horizontal displacement in view coordinates (pixels)
      Returns:
      the maximum displacement, in pixels
    • getViewDisplacementY Link icon

      public int getViewDisplacementY()
      Retrieves the maximum allowed vertical displacement in view coordinates (pixels)
      Returns:
      the maximum displacement, in pixels
    • equals Link icon

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

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

      public String toString()
      Overrides:
      toString in class Object
    • isTransparent Link icon

      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