Class TLspParameterizedRasterIconStyle

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

public class TLspParameterizedRasterIconStyle extends ALspStyle

Style used to visualize multi-dimensional (parameterized) raster data as a flat icon (also known as a point sprite).

This style can for example be used to label an image containing temperature values, or to label a multi-band image containing the x- and y- components of wind speed. For example:

Painting wind icons using TLspParameterizedRasterIconStyle

Construction of an icon style is done through the Builder design pattern mechanism.

Since:
2013.0
See Also:
  • Constructor Details

    • TLspParameterizedRasterIconStyle

      protected TLspParameterizedRasterIconStyle(TLspParameterizedRasterIconStyle.Builder<?> aBuilder)
      Creates a new style with the properties that are set on the builder
      Parameters:
      aBuilder - a builder which will be used to initialize this style.
  • Method Details

    • newBuilder

      public static TLspParameterizedRasterIconStyle.Builder<?> 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.
      Specified by:
      asBuilder in class ALspStyle
      Returns:
      the new builder.
    • getIcon

      public ILcdParameterizedIcon getIcon()
      Returns the icon to use for multi-valued raster data (if any). The specified icon will be painted at regular grid locations in the view.
      Returns:
      the icon to use
    • getSpacing

      public int getSpacing()
      Returns the grid spacing of multi-valued raster icons (if any), expressed in pixels.
      Returns:
      the icon spacing, or -1 if a default should be chosen
    • getHaloColor

      public Color getHaloColor()
      Returns the halo color of multi-valued raster icons. This property is only used if the halo thickness is larger than 0.
      Returns:
      the halo color
    • getHaloThickness

      public float getHaloThickness()
      Returns the halo thickness of multi-valued raster icons in pixels.
      Returns:
      the thickness in pixels (zero if no halo should be visible)
    • 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
    • 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