/** * Implements {@link Value#getGreen()}. */ public Value getGreen() throws DOMException { return computedValue.getGreen(); }
/** * Implements {@link Value#getGreen()}. */ public Value getGreen() throws DOMException { return computedValue.getGreen(); }
/** * Implements {@link Value#getGreen()}. */ public Value getGreen() throws DOMException { return computedValue.getGreen(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getGreen(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getGreen(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getGreen(); }
/** * The returns the actual value of this component. */ protected Value getValue() { return valueProvider.getValue().getGreen(); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.css.RGBColor#getGreen()}. */ public CSSPrimitiveValue getGreen() { valueProvider.getValue().getGreen(); if (greenComponent == null) { greenComponent = new GreenComponent(); } return greenComponent; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.css.RGBColor#getGreen()}. */ public CSSPrimitiveValue getGreen() { valueProvider.getValue().getGreen(); if (greenComponent == null) { greenComponent = new GreenComponent(); } return greenComponent; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.css.RGBColor#getGreen()}. */ public CSSPrimitiveValue getGreen() { valueProvider.getValue().getGreen(); if (greenComponent == null) { greenComponent = new GreenComponent(); } return greenComponent; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.css.RGBColor#getGreen()}. */ public CSSPrimitiveValue getGreen() { valueProvider.getValue().getGreen(); if (greenComponent == null) { greenComponent = new GreenComponent(); } return greenComponent; }
/** * 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)); }
/** * 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 blue value text has changed. */ public void blueTextChanged(String text) throws DOMException { final Value val = getValue(); text = "rgb(" + val.getRed().getCssText() + ", " + val.getGreen().getCssText() + ", " + text + ')'; 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 blue float value has changed. */ public void blueFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + val.getRed().getCssText() + ", " + val.getGreen().getCssText() + ", " + FloatValue.getCssText(unit, value) + ')'; 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 blue float value has changed. */ public void blueFloatValueChanged(short unit, float value) throws DOMException { final Value val = getValue(); String text = "rgb(" + val.getRed().getCssText() + ", " + val.getGreen().getCssText() + ", " + FloatValue.getCssText(unit, value) + ')'; textChanged(text); }