public abstract class ColorPicker extends java.lang.Object implements ColorProvider
Constructor and Description |
---|
ColorPicker() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor(float weight,
int value)
This method returns the nearest color from a set and ignores the value parameter
|
abstract java.awt.Color[] |
getColorPoints()
The extending class must implement this method and provide an array of
colors
|
public abstract java.awt.Color[] getColorPoints()
public java.awt.Color getColor(float weight, int value)
getColor
in interface ColorProvider
weight
- between 0 and 1value
- ignored