contrib.ch.randelshofer.quaqua.colorchooser
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, unconfigureColorSlider
public int getRGB()
getRGB
in class RGBColorSliderModel
public int getInterpolatedRGB(int component, float value)
ColorSliderModel
getInterpolatedRGB
in class ColorSliderModel
protected int getRGB(int r, int g, int b)
getRGB
in class RGBColorSliderModel
public void setRGB(int rgb)
setRGB
in class RGBColorSliderModel
public int toRGB(int[] values)
toRGB
in class RGBColorSliderModel
public void setWebSaveOnly(boolean b)
public boolean isWebSaveOnly()
public static boolean isWebSave(int rgb)
public static int toWebSave(int rgb)