Package com.luciad.util
Enum Class TLcdColorMap.LevelInclusion
- All Implemented Interfaces:
Serializable
,Comparable<TLcdColorMap.LevelInclusion>
,Constable
- Enclosing class:
TLcdColorMap
The LevelInclusion determines how the levels are interpreted when retrieving values
using TLcdColorMap.retrieveColor(double)
.
- Since:
- 2019.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLevel inclusion which excludes the end point.Level inclusion which includes the end point. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdColorMap.LevelInclusion
Returns the enum constant of this class with the specified name.static TLcdColorMap.LevelInclusion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException
- if the argument is null
-