public class PreferredToolColorLookupTable
extends java.lang.Object
| Constructor and Description |
|---|
PreferredToolColorLookupTable() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isColorIndexValid(int colorIndex)
Check if a color index integer is within the supported range
|
static int |
lookup(int colorIndex)
Lookup color RGB value for a preferred tool color index integer
|
static int |
lookup(PreferredToolColorIndex colorIndex)
Lookup color RGB value for a preferred tool color index
|
public static int lookup(int colorIndex)
colorIndex - Color indexjava.lang.IndexOutOfBoundsException - is thrown if colorIndex is not valid isColorIndexValid(int)public static int lookup(PreferredToolColorIndex colorIndex)
colorIndex - Color index. See PreferredToolColorIndexpublic static boolean isColorIndexValid(int colorIndex)
colorIndex - Color index. See PreferredToolColorIndex