public static enum TLcdColorMap.LevelInclusion extends Enum<TLcdColorMap.LevelInclusion>
The LevelInclusion determines how the levels are interpreted when retrieving values
using TLcdColorMap.retrieveColor(double)
.
Enum Constant and Description |
---|
EXCLUDES_END_POINT
Level inclusion which excludes the end point.
|
INCLUDES_END_POINT
Level inclusion which includes the end point.
|
Modifier and Type | Method and Description |
---|---|
static TLcdColorMap.LevelInclusion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TLcdColorMap.LevelInclusion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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:
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:
public static TLcdColorMap.LevelInclusion[] values()
for (TLcdColorMap.LevelInclusion c : TLcdColorMap.LevelInclusion.values()) System.out.println(c);
public static TLcdColorMap.LevelInclusion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null