Enum Class TLcdColorMap.LevelInclusion

java.lang.Object
java.lang.Enum<TLcdColorMap.LevelInclusion>
com.luciad.util.TLcdColorMap.LevelInclusion
All Implemented Interfaces:
Serializable, Comparable<TLcdColorMap.LevelInclusion>, Constable
Enclosing class:
TLcdColorMap

public static enum TLcdColorMap.LevelInclusion extends Enum<TLcdColorMap.LevelInclusion>

The LevelInclusion determines how the levels are interpreted when retrieving values using TLcdColorMap.retrieveColor(double).

Since:
2019.1
  • Enum Constant Details

    • INCLUDES_END_POINT

      public static final TLcdColorMap.LevelInclusion INCLUDES_END_POINT

      Level inclusion which includes the end point. The color of that point will be the color of the current level.

      Using {100, 200, 300} as levels and {Black, Green, Blue, Red} as colors (piecewise constant), the intervals would be defined as follows:

      • ]-inf, 100] - Black
      • ]100, 200] - Green
      • ]200, 300] - Blue
      • ]300, +inf[ - Red
    • EXCLUDES_END_POINT

      public static final TLcdColorMap.LevelInclusion EXCLUDES_END_POINT

      Level inclusion which excludes the end point. The color of that point will be the color of the next level.

      Using {100, 200, 300} as levels and {Black, Green, Blue, Red} as colors (piecewise constant), the intervals would be defined as follows:

      • ]-inf, 100[ - Black
      • [100, 200[ - Green
      • [200, 300[ - Blue
      • [300, +inf[ - Red
  • Method Details

    • values

      public static TLcdColorMap.LevelInclusion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TLcdColorMap.LevelInclusion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null