Class TLspLabelOpacityStyle

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

public class TLspLabelOpacityStyle extends ALspStyle
Style that can be used to modify the opacity and modulation color of a label.
Since:
2012.0
  • Constructor Details

  • Method Details

    • newBuilder

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

      public TLspLabelOpacityStyle.Builder<?> asBuilder()
      Creates a new builder initialized with all the properties of this style.
      Specified by:
      asBuilder in class ALspStyle
      Returns:
      the new builder.
    • getColor

      public Color getColor()
      Gets the modulation color. For example using a label with gray-scale colors and a red modulation color will result in a label painted with red hues.
      Returns:
      the modulation color
    • 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
    • getOpacity

      public float getOpacity()
      Returns the opacity of this style.
      Returns:
      the opacity of this style.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ALspStyle