public class HTMLColorSliderModel extends RGBColorSliderModel
components, values| Constructor and Description |
|---|
HTMLColorSliderModel()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInterpolatedRGB(int component,
float value)
Returns an interpolated RGB value by using the values of the color
components of this ColorSliderModel except for the component specified
as an argument.
|
int |
getRGB() |
protected int |
getRGB(int r,
int g,
int b) |
static boolean |
isWebSave(int rgb) |
boolean |
isWebSaveOnly() |
void |
setRGB(int rgb) |
void |
setWebSaveOnly(boolean b) |
int |
toRGB(int[] values) |
static int |
toWebSave(int rgb) |
addChangeListener, addColorSlider, configureColorSlider, fireColorChanged, fireStateChanged, getBoundedRangeModel, getColor, getComponentCount, getValue, removeChangeListener, removeColorSlider, setColor, setValue, unconfigureColorSliderpublic int getRGB()
getRGB in class RGBColorSliderModelpublic int getInterpolatedRGB(int component,
float value)
ColorSliderModelgetInterpolatedRGB in class ColorSliderModelprotected int getRGB(int r,
int g,
int b)
getRGB in class RGBColorSliderModelpublic void setRGB(int rgb)
setRGB in class RGBColorSliderModelpublic int toRGB(int[] values)
toRGB in class RGBColorSliderModelpublic void setWebSaveOnly(boolean b)
public boolean isWebSaveOnly()
public static boolean isWebSave(int rgb)
public static int toWebSave(int rgb)