Class TLspParameterizedRasterIconStyle

All Implemented Interfaces:

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.

See Also:
  • Constructor Details

    • TLspParameterizedRasterIconStyle

      protected TLspParameterizedRasterIconStyle(TLspParameterizedRasterIconStyle.Builder<?> aBuilder)
      Creates a new style with the properties that are set on the builder
      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.
      the new builder.
    • asBuilder

      Creates a new builder initialized with all the properties of this style.
      Specified by:
      asBuilder in class ALspStyle
      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.
      the icon to use
    • getSpacing

      public int getSpacing()
      Returns the grid spacing of multi-valued raster icons (if any), expressed in pixels.
      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.
      the halo color
    • getHaloThickness

      public float getHaloThickness()
      Returns the halo thickness of multi-valued raster icons in pixels.
      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
      whether or not this style is transparent
    • equals

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

      public int hashCode()
      hashCode in class ALspStyle
    • toString

      public String toString()
      toString in class Object