/** * Implements {@link Value#getBlue()}. */ public Value getBlue() throws DOMException { return computedValue.getBlue(); }
/** * Implements {@link Value#getBlue()}. */ public Value getBlue() throws DOMException { return computedValue.getBlue(); }
/** * Implements {@link Value#getBlue()}. */ public Value getBlue() throws DOMException { return computedValue.getBlue(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getBlue(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getBlue(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getBlue(); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.css.RGBColor#getBlue()}. */ public CSSPrimitiveValue getBlue() { valueProvider.getValue().getBlue(); if (blueComponent == null) { blueComponent = new BlueComponent(); } return blueComponent; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.css.RGBColor#getBlue()}. */ public CSSPrimitiveValue getBlue() { valueProvider.getValue().getBlue(); if (blueComponent == null) { blueComponent = new BlueComponent(); } return blueComponent; }
/** * Converts the given Value and opacity to a Color object. * @param c The CSS color to convert. * @param opacity The opacity value (0 <= o <= 1). */ public static Color convertColor(Value c, float opacity) { int r = resolveColorComponent(c.getRed()); int g = resolveColorComponent(c.getGreen()); int b = resolveColorComponent(c.getBlue()); return new Color(r, g, b, Math.round(opacity * 255f)); }
/** * Converts the given Value and opacity to a Color object. * @param c The CSS color to convert. * @param opacity The opacity value (0 <= o <= 1). */ public static Color convertColor(Value c, float opacity) { int r = resolveColorComponent(c.getRed()); int g = resolveColorComponent(c.getGreen()); int b = resolveColorComponent(c.getBlue()); return new Color(r, g, b, Math.round(opacity * 255f)); }
/** * Converts the given Value and opacity to a Color object. * @param c The CSS color to convert. * @param opacity The opacity value (0 <= o <= 1). */ public static Color convertColor(Value c, float opacity) { int r = resolveColorComponent(c.getRed()); int g = resolveColorComponent(c.getGreen()); int b = resolveColorComponent(c.getBlue()); return new Color(r, g, b, Math.round(opacity * 255f)); }
/** * Converts the given Value and opacity to a Color object. * @param c The CSS color to convert. * @param o The opacity value (0 <= o <= 1). */ private static Color convertColor(Value c /*, float opacity*/) { int r = resolveColorComponent(c.getRed()); int g = resolveColorComponent(c.getGreen()); int b = resolveColorComponent(c.getBlue()); return new Color(r, g, b, 255 /*Math.round(opacity * 255f)*/); }
/** * Called when the green value text has changed. */ public void greenTextChanged(String text) throws DOMException { final Value val = getValue(); text = "rgb(" + val.getRed().getCssText() + ", " + text + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the red value text has changed. */ public void redTextChanged(String text) throws DOMException { final Value val = getValue(); text = "rgb(" + text + ", " + val.getGreen().getCssText() + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the red value text has changed. */ public void redTextChanged(String text) throws DOMException { final Value val = getValue(); text = "rgb(" + text + ", " + val.getGreen().getCssText() + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the red float value has changed. */ public void redFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + FloatValue.getCssText(unit, value) + ", " + val.getGreen().getCssText() + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the green float value has changed. */ public void greenFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + val.getRed().getCssText() + ", " + FloatValue.getCssText(unit, value) + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the red float value has changed. */ public void redFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + FloatValue.getCssText(unit, value) + ", " + val.getGreen().getCssText() + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the red float value has changed. */ public void redFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + FloatValue.getCssText(unit, value) + ", " + val.getGreen().getCssText() + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }
/** * Called when the green float value has changed. */ public void greenFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + val.getRed().getCssText() + ", " + FloatValue.getCssText(unit, value) + ", " + val.getBlue().getCssText() + ')'; textChanged(text); }