public final class ColorBuilder extends AbstractResourceBuilder<ColorItem,ColorParams,Color>
| Modifier and Type | Field and Description |
|---|---|
private static String |
HEXA_PREFIX
The
HEXA_PREFIX field is used before any hexadecimal value. |
| Constructor and Description |
|---|
ColorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
private Color |
buildGrayColor(GrayColor gColor)
Build a Gray color.
|
private Color |
buildHSBColor(HSBColor hsbColor)
Build an HSB color.
|
protected Color |
buildResource(ColorItem ci,
ColorParams cp)
Build the resource requested.
|
private Color |
buildRGB01Color(RGB01Color rColor)
Build a RGB color (0.0-1.0).
|
private Color |
buildRGB255Color(RGB255Color rColor)
Build a RGB color (0-255).
|
private Color |
buildWebColor(WebColor wColor)
Build a Web (hexa).
|
get, getParam, getParamKey, set, storeParamsprivate static final String HEXA_PREFIX
HEXA_PREFIX field is used before any hexadecimal value.protected Color buildResource(ColorItem ci, ColorParams cp)
buildResource in class AbstractResourceBuilder<ColorItem,ColorParams,Color>ci - the parameter item used to identify the resource elementcp - the primitive parameters used to build the resourceprivate Color buildWebColor(WebColor wColor)
wColor - the web color enumprivate Color buildRGB01Color(RGB01Color rColor)
rColor - the rgb color enumprivate Color buildRGB255Color(RGB255Color rColor)
rColor - the rgb color enumprivate Color buildHSBColor(HSBColor hsbColor)
hsbColor - the hsb color enumCopyright © 2011–2014 JRebirth OSS. All rights reserved.