/** {@inheritDoc} */ public String toString() { return getCssText(); } }
/** {@inheritDoc} */ public String toString() { return getCssText(); } }
/** {@inheritDoc} */ public String toString() { return getCssText(); }
/** * Returns a Color object that corresponds to the input Paint's * CIE Lab color value. * * @param e the element using the color * @param c the CIE Lab color definition * @param opacity the opacity * @param ctx the bridge context to use */ public static Color convertCIELabColor(Element e, CIELabColor c, float opacity, BridgeContext ctx) { CIELabColorSpace cs = new CIELabColorSpace(c.getWhitePoint()); float[] lab = c.getColorValues(); Color specColor = cs.toColor(lab[0], lab[1], lab[2], opacity); return specColor; }
/** * A string representation of the current value. */ public String getCssText() { StringBuffer sb = new StringBuffer(getFunctionName()); sb.append('('); sb.append(values[0]); sb.append(", "); sb.append(values[1]); sb.append(", "); sb.append(values[2]); sb.append( ')' ); return sb.toString(); }
private Value createICCNamedColorValue(LexicalUnit lu, Value v) { lu = lu.getParameters(); expectIdent(lu); String profileName = lu.getStringValue(); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); expectIdent(lu); String colorName = lu.getStringValue(); ICCNamedColor icc = new ICCNamedColor(profileName, colorName); lu = lu.getNextLexicalUnit(); return icc; }
private Value createCIELabColorValue(LexicalUnit lu, Value v) { lu = lu.getParameters(); float l = getColorValue(lu); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); float a = getColorValue(lu); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); float b = getColorValue(lu); CIELabColor icc = new CIELabColor(l, a, b); lu = lu.getNextLexicalUnit(); return icc; }
/** * Returns a Color object that corresponds to the input Paint's * CIE Lab color value. * * @param e the element using the color * @param c the CIE Lab color definition * @param opacity the opacity * @param ctx the bridge context to use */ public static Color convertCIELabColor(Element e, CIELabColor c, float opacity, BridgeContext ctx) { CIELabColorSpace cs = new CIELabColorSpace(c.getWhitePoint()); float[] lab = c.getColorValues(); Color specColor = cs.toColor(lab[0], lab[1], lab[2], opacity); return specColor; }
/** {@inheritDoc} */ public String toString() { return getCssText(); } }
/** {@inheritDoc} */ public String toString() { return getCssText(); } }
/** {@inheritDoc} */ public String toString() { return getCssText(); }
/** * A string representation of the current value. */ public String getCssText() { StringBuffer sb = new StringBuffer(getFunctionName()); sb.append('('); sb.append(values[0]); sb.append(", "); sb.append(values[1]); sb.append(", "); sb.append(values[2]); sb.append( ')' ); return sb.toString(); }
private Value createICCNamedColorValue(LexicalUnit lu, Value v) { lu = lu.getParameters(); expectIdent(lu); String profileName = lu.getStringValue(); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); expectIdent(lu); String colorName = lu.getStringValue(); ICCNamedColor icc = new ICCNamedColor(profileName, colorName); lu = lu.getNextLexicalUnit(); return icc; }
private Value createCIELabColorValue(LexicalUnit lu, Value v) { lu = lu.getParameters(); float l = getColorValue(lu); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); float a = getColorValue(lu); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); float b = getColorValue(lu); CIELabColor icc = new CIELabColor(l, a, b); lu = lu.getNextLexicalUnit(); return icc; }
/** * Returns a Color object that corresponds to the input Paint's * CIE Lab color value. * * @param e the element using the color * @param c the CIE Lab color definition * @param opacity the opacity * @param ctx the bridge context to use */ public static Color convertCIELabColor(Element e, CIELabColor c, float opacity, BridgeContext ctx) { CIELabColorSpace cs = new CIELabColorSpace(c.getWhitePoint()); float[] lab = c.getColorValues(); Color specColor = cs.toColor(lab[0], lab[1], lab[2], opacity); return specColor; }
/** {@inheritDoc} */ public String toString() { return getCssText(); } }
/** {@inheritDoc} */ public String toString() { return getCssText(); } }
/** {@inheritDoc} */ public String toString() { return getCssText(); }
/** * A string representation of the current value. */ public String getCssText() { StringBuffer sb = new StringBuffer(getFunctionName()); sb.append('('); sb.append(values[0]); sb.append(", "); sb.append(values[1]); sb.append(", "); sb.append(values[2]); sb.append( ')' ); return sb.toString(); }
private Value createICCNamedColorValue(LexicalUnit lu, Value v) { lu = lu.getParameters(); expectIdent(lu); String profileName = lu.getStringValue(); lu = lu.getNextLexicalUnit(); expectComma(lu); lu = lu.getNextLexicalUnit(); expectIdent(lu); String colorName = lu.getStringValue(); ICCNamedColor icc = new ICCNamedColor(profileName, colorName); lu = lu.getNextLexicalUnit(); return icc; }