diff --git a/echosvg-bridge/src/main/java/io/sf/carte/echosvg/bridge/PaintServer.java b/echosvg-bridge/src/main/java/io/sf/carte/echosvg/bridge/PaintServer.java index 12080bd7d..3a79cdac2 100644 --- a/echosvg-bridge/src/main/java/io/sf/carte/echosvg/bridge/PaintServer.java +++ b/echosvg-bridge/src/main/java/io/sf/carte/echosvg/bridge/PaintServer.java @@ -520,11 +520,11 @@ public static Color convertDeviceColor(Element e, Value srgb, DeviceColor c, flo } Color cmyk = new ColorWithAlternatives(cmykCs, comps, opacity, null); RGBColorValue rgb = (RGBColorValue) color; - int r = resolveColorComponent(rgb.getR()); - int g = resolveColorComponent(rgb.getG()); - int b = resolveColorComponent(rgb.getB()); + float r = resolveColorComponent(rgb.getR()); + float g = resolveColorComponent(rgb.getG()); + float b = resolveColorComponent(rgb.getB()); float a = resolveAlphaComponent(c.getAlpha()); - Color specColor = new ColorWithAlternatives(r, g, b, Math.round(a * opacity * 255f), + Color specColor = new ColorWithAlternatives(r, g, b, a * opacity, new Color[] { cmyk }); return specColor; } else { @@ -560,11 +560,11 @@ public static Color convertColor(ColorValue c, float opacity, BridgeContext ctx) * @param opacity The opacity value (0 <= o <= 1). */ public static Color convertColor(RGBColorValue c, float opacity) { - int r = resolveColorComponent(c.getR()); - int g = resolveColorComponent(c.getG()); - int b = resolveColorComponent(c.getB()); + float r = resolveColorComponent(c.getR()); + float g = resolveColorComponent(c.getG()); + float b = resolveColorComponent(c.getB()); float a = resolveAlphaComponent(c.getAlpha()); - return new Color(r, g, b, Math.round(a * opacity * 255f)); + return new Color(r, g, b, a * opacity); } /** @@ -603,9 +603,9 @@ public static Color convertColor(ColorFunction c, float opacity, BridgeContext c case ColorValue.CS_XYZ_D65: CSSStyleValueList chs = c.getChannels(); float[] ch = new float[3]; - ch[0] = resolveColorFunctionComponent(chs.item(0)); - ch[1] = resolveColorFunctionComponent(chs.item(1)); - ch[2] = resolveColorFunctionComponent(chs.item(2)); + ch[0] = resolveColorComponent(chs.item(0)); + ch[1] = resolveColorComponent(chs.item(1)); + ch[2] = resolveColorComponent(chs.item(2)); float[] xyzd50 = d65xyzToD50(ch); float a = resolveAlphaComponent(c.getAlpha()); cs = ColorSpace.getInstance(ColorSpace.CS_CIEXYZ); @@ -628,20 +628,32 @@ public static Color convertColor(ColorFunction c, float opacity, BridgeContext c } } + ///////////////////////////////////////////////////////////////////////// + // Color utility methods + ///////////////////////////////////////////////////////////////////////// + private static Color convert3Color(ColorSpace space, ColorFunction c, float opacity) { CSSStyleValueList chs = c.getChannels(); float[] ch = new float[3]; - ch[0] = resolveColorFunctionComponent(chs.item(0)); - ch[1] = resolveColorFunctionComponent(chs.item(1)); - ch[2] = resolveColorFunctionComponent(chs.item(2)); + ch[0] = resolveColorComponent(chs.item(0)); + ch[1] = resolveColorComponent(chs.item(1)); + ch[2] = resolveColorComponent(chs.item(2)); float a = resolveAlphaComponent(c.getAlpha()); return new Color(space, ch, a * opacity); } - private static float resolveColorFunctionComponent(NumericValue item) { - float f = item.getFloatValue(); + /** + * Returns the value of one color component (0 <= result <= 1). + * + * @param v the value that declares the color component, either a percentage or + * a number in the range (0 <= v <= 1). + * @return the value in the range (0 <= v <= 1). + */ + private static float resolveColorComponent(NumericValue item) { + float f; switch (item.getCSSUnit()) { case CSSUnit.CSS_NUMBER: + f = item.getFloatValue(); if (f < 0f) { f = 0f; } else if (f > 1f) { @@ -649,6 +661,7 @@ private static float resolveColorFunctionComponent(NumericValue item) { } return f; case CSSUnit.CSS_PERCENTAGE: + f = item.getFloatValue(); if (f < 0f) { f = 0f; } else if (f > 100f) { @@ -809,26 +822,12 @@ public static int convertStrokeLinejoin(Value v) { ///////////////////////////////////////////////////////////////////////// /** - * Returns the value of one color component (0 <= result <= 255). + * Returns the value of the alpha component (0 <= result <= 1). * - * @param v the value that defines the color component + * @param v the value that declares the alpha component, either a percentage or + * a number in the range (0 <= v <= 1). + * @return the value in the range (0 <= v <= 1). */ - public static int resolveColorComponent(Value v) { - float f; - switch (v.getCSSUnit()) { - case CSSUnit.CSS_PERCENTAGE: - f = v.getFloatValue(); - f = (f > 100f) ? 100f : (f < 0f) ? 0f : f; - return Math.round(255f * f / 100f); - case CSSUnit.CSS_NUMBER: - f = v.getFloatValue(); - f = (f > 255f) ? 255f : (f < 0f) ? 0f : f; - return Math.round(f); - default: - throw new IllegalArgumentException("Color component argument is not an appropriate CSS value"); - } - } - private static float resolveAlphaComponent(Value v) { float f; switch (v.getCSSUnit()) { diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/SystemColorSupport.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/SystemColorSupport.java index 2e935611a..2254b18dd 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/SystemColorSupport.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/SystemColorSupport.java @@ -24,9 +24,6 @@ import java.util.Locale; import java.util.Map; -import org.w3c.css.om.unit.CSSUnit; - -import io.sf.carte.echosvg.css.engine.value.FloatValue; import io.sf.carte.echosvg.css.engine.value.RGBColorValue; import io.sf.carte.echosvg.css.engine.value.Value; import io.sf.carte.echosvg.util.CSSConstants; @@ -48,9 +45,7 @@ public class SystemColorSupport implements CSSConstants { public static Value getSystemColor(String ident) { ident = ident.toLowerCase(Locale.ROOT); SystemColor sc = factories.get(ident); - return new RGBColorValue(new FloatValue(CSSUnit.CSS_NUMBER, sc.getRed()), - new FloatValue(CSSUnit.CSS_NUMBER, sc.getGreen()), - new FloatValue(CSSUnit.CSS_NUMBER, sc.getBlue())); + return new RGBColorValue(sc.getComponents(null)); } /** diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractValue.java index b5d4121ea..e806cdb64 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractValue.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/AbstractValue.java @@ -148,7 +148,7 @@ public AbstractValue clone() { try { return (AbstractValue) super.clone(); } catch (CloneNotSupportedException e) { - return null; + throw new IllegalStateException(e); } } diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ColorValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ColorValue.java index 02e2addce..1d0acfc72 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ColorValue.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ColorValue.java @@ -83,7 +83,7 @@ protected ColorValue() { */ protected ColorValue(NumericValue a) throws DOMSyntaxException { super(); - setAlpha(a); + setAlphaChannel(a); } /** @@ -129,6 +129,10 @@ public void setAlpha(double alpha) { * @throws DOMSyntaxException if alpha is not a percentage. */ public void setAlpha(CSSNumericValue alpha) throws DOMSyntaxException { + setAlphaChannel(alpha); + } + + private void setAlphaChannel(CSSNumericValue alpha) throws DOMSyntaxException { NumericValue a = (NumericValue) alpha; if (a.getCSSUnit() != CSSUnit.CSS_PERCENTAGE && a.getCSSUnit() != CSSUnit.CSS_NUMBER) { throw new DOMSyntaxException("Alpha channel must be a number or percentage."); diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/FloatValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/FloatValue.java index d5d0a4ff2..572839a3b 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/FloatValue.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/FloatValue.java @@ -56,6 +56,20 @@ public static String getCssText(short unit, float value) { return s + CSSUnit.dimensionUnitString(unit); } + /** + * Create a constant with the given unit and value. + *

+ * If you want to have a modifiable copy of the returned value, clone it. + *

+ * + * @param unit the unit. + * @param value the value expressed in that unit. + * @return the immutable value. + */ + public static FloatValue createConstant(short unit, float value) { + return new ImmutableUnitValue(unit, value); + } + /** * The float value */ @@ -68,6 +82,9 @@ public static String getCssText(short unit, float value) { /** * Creates a new value. + * + * @param unit the unit. + * @param value the value expressed in that unit. */ public FloatValue(short unitType, float floatValue) { this.unitType = unitType; diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/IdentValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/IdentValue.java index b83fad064..233eac713 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/IdentValue.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/IdentValue.java @@ -37,6 +37,19 @@ public IdentValue(String s) { super(s); } + /** + * Creates a constant identifier. + *

+ * If you want to have a modifiable copy of the returned value, clone it. + *

+ * + * @param s the identifier. + * @return an immutable identifier value. + */ + public static IdentValue createConstant(String s) { + return new ImmutableIdentValue(s); + } + /** * The type of the value. */ diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableIdentValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableIdentValue.java new file mode 100644 index 000000000..059a1fc61 --- /dev/null +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableIdentValue.java @@ -0,0 +1,49 @@ +/* + + See the NOTICE file distributed with this work for additional + information regarding copyright ownership. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ +package io.sf.carte.echosvg.css.engine.value; + +import org.w3c.api.DOMTypeException; +import org.w3c.dom.DOMException; + +/** + * Immutable identifier values. + * + * @author See Git history. + * @version $Id$ + */ +class ImmutableIdentValue extends IdentValue { + + /** + * Creates a new immutable IdentValue. + */ + public ImmutableIdentValue(String s) { + super(s); + } + + @Override + public void setValue(String value) throws DOMTypeException { + throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Immutable value."); + } + + @Override + public IdentValue clone() { + return new IdentValue(value); + } + +} diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableRGBColorValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableRGBColorValue.java new file mode 100644 index 000000000..0296f098b --- /dev/null +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableRGBColorValue.java @@ -0,0 +1,105 @@ +/* + + See the NOTICE file distributed with this work for additional + information regarding copyright ownership. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ +package io.sf.carte.echosvg.css.engine.value; + +import org.w3c.api.DOMSyntaxException; +import org.w3c.css.om.typed.CSSNumericValue; +import org.w3c.dom.DOMException; + +/** + * Immutable RGB colors. + * + * @author See Git history. + * @version $Id$ + */ +class ImmutableRGBColorValue extends RGBColorValue { + + /** + * Creates a new, opaque RGBColorValue. + * + * @throws DOMSyntaxException if a supplied component is invalid. + */ + public ImmutableRGBColorValue(NumericValue r, NumericValue g, NumericValue b) + throws DOMSyntaxException { + super(r, g, b); + } + + /** + * Creates a new RGBColorValue. + * + * @throws DOMSyntaxException if a supplied component is invalid. + */ + public ImmutableRGBColorValue(NumericValue r, NumericValue g, NumericValue b, NumericValue a) + throws DOMSyntaxException { + super(r, g, b, a); + } + + @Override + void setRGB(NumericValue r, NumericValue g, NumericValue b) { + red = r; + green = g; + blue = b; + } + + @Override + public void setR(double r) { + immutable(); + } + + private void immutable() { + throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Immutable value."); + } + + @Override + public void setR(CSSNumericValue r) throws DOMSyntaxException { + immutable(); + } + + @Override + public void setG(double g) { + immutable(); + } + + @Override + public void setG(CSSNumericValue g) throws DOMSyntaxException { + immutable(); + } + + @Override + public void setB(double b) { + immutable(); + } + + @Override + public void setB(CSSNumericValue b) throws DOMSyntaxException { + immutable(); + } + + @Override + public RGBColorValue clone() { + RGBColorValue clon; + try { + clon = new RGBColorValue(getR().clone(), getG().clone(), getB().clone(), getAlpha().clone()); + } catch (DOMSyntaxException e) { + throw new IllegalStateException(e); + } + return clon; + } + +} diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableUnitValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableUnitValue.java new file mode 100644 index 000000000..dde6aadfc --- /dev/null +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ImmutableUnitValue.java @@ -0,0 +1,53 @@ +/* + + See the NOTICE file distributed with this work for additional + information regarding copyright ownership. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + */ +package io.sf.carte.echosvg.css.engine.value; + +import org.w3c.dom.DOMException; + +/** + * Immutable float values. + * + * @author See Git history. + * @version $Id$ + */ +class ImmutableUnitValue extends FloatValue { + + /** + * Creates a new value. + */ + ImmutableUnitValue(short unitType, float floatValue) { + super(unitType, floatValue); + } + + @Override + public void setValue(double value) { + throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Immutable number."); + } + + @Override + public void setValue(String cssText) throws DOMException { + setValue(0); + } + + @Override + public FloatValue clone() { + return new FloatValue(getCSSUnit(), getFloatValue()); + } + +} diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/RGBColorValue.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/RGBColorValue.java index b74456ef8..e53a9d73a 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/RGBColorValue.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/RGBColorValue.java @@ -41,17 +41,17 @@ public class RGBColorValue extends ColorValue implements CSSRGB { /** * The red component. */ - private NumericValue red; + NumericValue red; /** * The green component. */ - private NumericValue green; + NumericValue green; /** * The blue component. */ - private NumericValue blue; + NumericValue blue; /** * Whether components were specified as percentages @@ -63,25 +63,171 @@ public class RGBColorValue extends ColorValue implements CSSRGB { /** * Creates a new, opaque RGBColorValue. * + * @param r the r component as a percentage or a number in the [0, 1] range. + * @param g the g component as a percentage or a number in the [0, 1] range. + * @param b the b component as a percentage or a number in the [0, 1] range. * @throws DOMSyntaxException if a supplied component is invalid. */ public RGBColorValue(NumericValue r, NumericValue g, NumericValue b) throws DOMSyntaxException { - this(r, g, b, SVGValueConstants.NUMBER_1); + // Clone the alpha so it can be modified via Typed OM + this(r, g, b, SVGValueConstants.NUMBER_1.clone()); } /** * Creates a new RGBColorValue. * + * @param r the r component as a percentage or a number in the [0, 1] range. + * @param g the g component as a percentage or a number in the [0, 1] range. + * @param b the b component as a percentage or a number in the [0, 1] range. + * @param a the alpha component as a percentage or a number in the [0, 1] range. * @throws DOMSyntaxException if a supplied component is invalid. */ public RGBColorValue(NumericValue r, NumericValue g, NumericValue b, NumericValue a) throws DOMSyntaxException { super(a); + setRGB(r, g, b); + } + + void setRGB(NumericValue r, NumericValue g, NumericValue b) { setR(r); setG(g); setB(b); } + /** + * Creates a new RGBColorValue. + * + * @param comp the components as an array of numbers in the [0, 1] range, with alpha at the end. + * @throws DOMSyntaxException if a supplied component is invalid. + */ + public RGBColorValue(float[] comp) { + super(new FloatValue(CSSUnit.CSS_NUMBER, comp[3])); + red = new FloatValue(CSSUnit.CSS_NUMBER, comp[0]); + componentize(red); + green = new FloatValue(CSSUnit.CSS_NUMBER, comp[1]); + componentize(green); + blue = new FloatValue(CSSUnit.CSS_NUMBER, comp[2]); + componentize(blue); + } + + /** + * Creates a constant color value from legacy RGB components. + *

+ * If you want to have a modifiable copy of the returned value, clone it. + *

+ * + * @param r the r component as a percentage or a number in the [0, 255] range. + * @param g the g component as a percentage or a number in the [0, 255] range. + * @param b the b component as a percentage or a number in the [0, 255] range. + * @return an immutable color value. + * @throws DOMSyntaxException if the values aren't valid color components. + * @throws IllegalArgumentException if a component is a mathematical expression. + */ + public static RGBColorValue createConstant(NumericValue r, NumericValue g, NumericValue b) + throws DOMSyntaxException, IllegalArgumentException { + r = constantLegacyRange(r); + g = constantLegacyRange(g); + b = constantLegacyRange(b); + return new ImmutableRGBColorValue(r, g, b); + } + + /** + * Creates a constant color value from legacy RGB components. + *

+ * If you want to have a modifiable copy of the returned value, clone it. + *

+ * + * @param r the r component as a percentage or a number in the [0, 255] range. + * @param g the g component as a percentage or a number in the [0, 255] range. + * @param b the b component as a percentage or a number in the [0, 255] range. + * @param a the alpha component as an immutable percentage or a number in the + * [0, 1] range. + * @return an immutable color value. + * @throws DOMSyntaxException if the values aren't valid color components. + * @throws IllegalArgumentException if a component is a mathematical expression. + */ + public static RGBColorValue createConstant(NumericValue r, NumericValue g, NumericValue b, + NumericValue a) throws DOMSyntaxException, IllegalArgumentException { + r = constantLegacyRange(r); + g = constantLegacyRange(g); + b = constantLegacyRange(b); + return new ImmutableRGBColorValue(r, g, b, a); + } + + /** + * Creates a color value from legacy RGB components. + *

+ * If you want to have a modifiable copy of the returned value, clone it. + *

+ * + * @param r the r component as a percentage or a number in the [0, 255] range. + * @param g the g component as a percentage or a number in the [0, 255] range. + * @param b the b component as a percentage or a number in the [0, 255] range. + * @return an immutable color value. + * @throws DOMSyntaxException if the values aren't valid color components. + * @throws IllegalArgumentException if a component is a mathematical expression. + */ + public static RGBColorValue createLegacy(NumericValue r, NumericValue g, NumericValue b) + throws DOMSyntaxException, IllegalArgumentException { + r = legacyRange(r); + g = legacyRange(g); + b = legacyRange(b); + RGBColorValue rgb = new RGBColorValue(r, g, b); + rgb.pcntSpecified = r.getCSSUnit() == CSSUnit.CSS_PERCENTAGE + || g.getCSSUnit() == CSSUnit.CSS_PERCENTAGE + || b.getCSSUnit() == CSSUnit.CSS_PERCENTAGE; + return rgb; + } + + /** + * Initialize a constant legacy component of this value. + * + * @param c the component (0 ≤ c ≤ 255). + * @return the (0 ≤ c ≤ 1) constant component. + * @throws DOMSyntaxException if the value is inadequate for a component. + * @throws IllegalArgumentException if the value is a mathematical expression. + */ + private static NumericValue constantLegacyRange(NumericValue ch) + throws DOMSyntaxException, IllegalArgumentException { + if (ch.getCSSUnit() == CSSUnit.CSS_NUMBER) { + if (ch.getPrimitiveType() == Type.NUMERIC) { + ch = new ImmutableUnitValue(CSSUnit.CSS_NUMBER, ch.getFloatValue() / 255f); + } else { + throw new IllegalArgumentException("Cannot normalize value to [0,1] now: " + ch.getCssText()); + } + } else if (ch.getCSSUnit() != CSSUnit.CSS_PERCENTAGE) { + throw new DOMSyntaxException("RGB component must be a number or percentage, not a " + + CSSUnit.dimensionUnitString(ch.getCSSUnit()) + '.'); + } + if (ch.handler != null) { + ch = new ImmutableUnitValue(ch.getCSSUnit(), ch.getFloatValue()); + } + return ch; + } + + /** + * Initialize a legacy component of this value. + * + * @param c the component (0 ≤ c ≤ 255). + * @return the (0 ≤ c ≤ 1) component. + * @throws DOMSyntaxException if the value is inadequate for a component. + * @throws IllegalArgumentException if the value is a mathematical expression. + */ + private static NumericValue legacyRange(NumericValue ch) + throws DOMSyntaxException, IllegalArgumentException { + if (ch.getCSSUnit() == CSSUnit.CSS_NUMBER) { + if (ch.getPrimitiveType() == Type.NUMERIC) { + ch.setFloatValue(ch.getFloatValue() / 255f); + } else { + throw new IllegalArgumentException("Cannot normalize value to [0,1] now: " + ch.getCssText()); + } + } else if (ch.getCSSUnit() != CSSUnit.CSS_PERCENTAGE) { + throw new DOMSyntaxException("RGB component must be a number or percentage, not a " + + CSSUnit.dimensionUnitString(ch.getCSSUnit()) + '.'); + } + return ch; + } + void setSpecifiedAsPercentage(boolean spec) { pcntSpecified = spec; } @@ -105,7 +251,7 @@ public String getCssText() { DecimalFormatSymbols dfs = new DecimalFormatSymbols(Locale.ROOT); df = new DecimalFormat("#.#", dfs); df.setMinimumFractionDigits(0); - df.setMaximumFractionDigits(4); + df.setMaximumFractionDigits(3); } String sr = rgbComponentText(red, df); @@ -128,11 +274,17 @@ public String getCssText() { } private String rgbComponentText(NumericValue comp, DecimalFormat df) { - if (pcntSpecified || comp.getCSSUnit() == CSSUnit.CSS_NUMBER) { + if (pcntSpecified) { return comp.getCssText(); } - return df.format(comp.getFloatValue() * 2.55f); + float f; + if (comp.getCSSUnit() == CSSUnit.CSS_NUMBER) { + f = comp.getFloatValue() * 255f; + } else { + f = comp.getFloatValue() * 2.55f; + } + return df.format(f); } private String alphaComponentText(NumericValue alpha, DecimalFormat df) { diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ValueConstants.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ValueConstants.java index da510bb64..01051c058 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ValueConstants.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/ValueConstants.java @@ -35,67 +35,67 @@ public interface ValueConstants { /** * 0 */ - NumericValue NUMBER_0 = new FloatValue(CSSUnit.CSS_NUMBER, 0); + NumericValue NUMBER_0 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 0); /** * 100 */ - NumericValue NUMBER_100 = new FloatValue(CSSUnit.CSS_NUMBER, 100); + NumericValue NUMBER_100 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 100); /** * 128 */ - NumericValue NUMBER_128 = new FloatValue(CSSUnit.CSS_NUMBER, 128); + NumericValue NUMBER_128 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 128); /** * 192 */ - NumericValue NUMBER_192 = new FloatValue(CSSUnit.CSS_NUMBER, 192); + NumericValue NUMBER_192 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 192); /** * 200 */ - NumericValue NUMBER_200 = new FloatValue(CSSUnit.CSS_NUMBER, 200); + NumericValue NUMBER_200 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 200); /** * 255 */ - NumericValue NUMBER_255 = new FloatValue(CSSUnit.CSS_NUMBER, 255); + NumericValue NUMBER_255 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 255); /** * 300 */ - NumericValue NUMBER_300 = new FloatValue(CSSUnit.CSS_NUMBER, 300); + NumericValue NUMBER_300 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 300); /** * 400 */ - NumericValue NUMBER_400 = new FloatValue(CSSUnit.CSS_NUMBER, 400); + NumericValue NUMBER_400 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 400); /** * 500 */ - NumericValue NUMBER_500 = new FloatValue(CSSUnit.CSS_NUMBER, 500); + NumericValue NUMBER_500 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 500); /** * 600 */ - NumericValue NUMBER_600 = new FloatValue(CSSUnit.CSS_NUMBER, 600); + NumericValue NUMBER_600 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 600); /** * 700 */ - NumericValue NUMBER_700 = new FloatValue(CSSUnit.CSS_NUMBER, 700); + NumericValue NUMBER_700 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 700); /** * 800 */ - NumericValue NUMBER_800 = new FloatValue(CSSUnit.CSS_NUMBER, 800); + NumericValue NUMBER_800 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 800); /** * 900 */ - NumericValue NUMBER_900 = new FloatValue(CSSUnit.CSS_NUMBER, 900); + NumericValue NUMBER_900 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 900); /** * The 'inherit' value. @@ -105,726 +105,726 @@ public interface ValueConstants { /** * The 'all' keyword. */ - Value ALL_VALUE = new IdentValue(CSSConstants.CSS_ALL_VALUE); + Value ALL_VALUE = IdentValue.createConstant(CSSConstants.CSS_ALL_VALUE); /** * The 'auto' keyword. */ - Value AUTO_VALUE = new IdentValue(CSSConstants.CSS_AUTO_VALUE); + Value AUTO_VALUE = IdentValue.createConstant(CSSConstants.CSS_AUTO_VALUE); /** * The 'bidi-override' keyword. */ - Value BIDI_OVERRIDE_VALUE = new IdentValue(CSSConstants.CSS_BIDI_OVERRIDE_VALUE); + Value BIDI_OVERRIDE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BIDI_OVERRIDE_VALUE); /** * The 'blink' keyword. */ - Value BLINK_VALUE = new IdentValue(CSSConstants.CSS_BLINK_VALUE); + Value BLINK_VALUE = IdentValue.createConstant(CSSConstants.CSS_BLINK_VALUE); /** * The 'block' keyword. */ - Value BLOCK_VALUE = new IdentValue(CSSConstants.CSS_BLOCK_VALUE); + Value BLOCK_VALUE = IdentValue.createConstant(CSSConstants.CSS_BLOCK_VALUE); /** * The 'bold' keyword. */ - Value BOLD_VALUE = new IdentValue(CSSConstants.CSS_BOLD_VALUE); + Value BOLD_VALUE = IdentValue.createConstant(CSSConstants.CSS_BOLD_VALUE); /** * The 'bolder' keyword. */ - Value BOLDER_VALUE = new IdentValue(CSSConstants.CSS_BOLDER_VALUE); + Value BOLDER_VALUE = IdentValue.createConstant(CSSConstants.CSS_BOLDER_VALUE); /** * The 'bottom' keyword. */ - Value BOTTOM_VALUE = new IdentValue(CSSConstants.CSS_BOTTOM_VALUE); + Value BOTTOM_VALUE = IdentValue.createConstant(CSSConstants.CSS_BOTTOM_VALUE); /** * The 'collapse' keyword. */ - Value COLLAPSE_VALUE = new IdentValue(CSSConstants.CSS_COLLAPSE_VALUE); + Value COLLAPSE_VALUE = IdentValue.createConstant(CSSConstants.CSS_COLLAPSE_VALUE); /** * The 'compact' keyword. */ - Value COMPACT_VALUE = new IdentValue(CSSConstants.CSS_COMPACT_VALUE); + Value COMPACT_VALUE = IdentValue.createConstant(CSSConstants.CSS_COMPACT_VALUE); /** * The 'condensed' keyword. */ - Value CONDENSED_VALUE = new IdentValue(CSSConstants.CSS_CONDENSED_VALUE); + Value CONDENSED_VALUE = IdentValue.createConstant(CSSConstants.CSS_CONDENSED_VALUE); /** * The 'crispedges' keyword. */ - Value CRISPEDGES_VALUE = new IdentValue(CSSConstants.CSS_CRISPEDGES_VALUE); + Value CRISPEDGES_VALUE = IdentValue.createConstant(CSSConstants.CSS_CRISPEDGES_VALUE); /** * The 'crosshair' keyword. */ - Value CROSSHAIR_VALUE = new IdentValue(CSSConstants.CSS_CROSSHAIR_VALUE); + Value CROSSHAIR_VALUE = IdentValue.createConstant(CSSConstants.CSS_CROSSHAIR_VALUE); /** * The 'cursive' keyword. */ - Value CURSIVE_VALUE = new IdentValue(CSSConstants.CSS_CURSIVE_VALUE); + Value CURSIVE_VALUE = IdentValue.createConstant(CSSConstants.CSS_CURSIVE_VALUE); /** * The 'default' keyword. */ - Value DEFAULT_VALUE = new IdentValue(CSSConstants.CSS_DEFAULT_VALUE); + Value DEFAULT_VALUE = IdentValue.createConstant(CSSConstants.CSS_DEFAULT_VALUE); /** * The 'e-resize' keyword. */ - Value E_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_E_RESIZE_VALUE); + Value E_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_E_RESIZE_VALUE); /** * The 'embed' keyword. */ - Value EMBED_VALUE = new IdentValue(CSSConstants.CSS_EMBED_VALUE); + Value EMBED_VALUE = IdentValue.createConstant(CSSConstants.CSS_EMBED_VALUE); /** * The 'expanded' keyword. */ - Value EXPANDED_VALUE = new IdentValue(CSSConstants.CSS_EXPANDED_VALUE); + Value EXPANDED_VALUE = IdentValue.createConstant(CSSConstants.CSS_EXPANDED_VALUE); /** * The 'extra-condensed' keyword. */ - Value EXTRA_CONDENSED_VALUE = new IdentValue(CSSConstants.CSS_EXTRA_CONDENSED_VALUE); + Value EXTRA_CONDENSED_VALUE = IdentValue.createConstant(CSSConstants.CSS_EXTRA_CONDENSED_VALUE); /** * The 'extra-expanded' keyword. */ - Value EXTRA_EXPANDED_VALUE = new IdentValue(CSSConstants.CSS_EXTRA_EXPANDED_VALUE); + Value EXTRA_EXPANDED_VALUE = IdentValue.createConstant(CSSConstants.CSS_EXTRA_EXPANDED_VALUE); /** * The 'fantasy' keyword. */ - Value FANTASY_VALUE = new IdentValue(CSSConstants.CSS_FANTASY_VALUE); + Value FANTASY_VALUE = IdentValue.createConstant(CSSConstants.CSS_FANTASY_VALUE); /** * The 'help' keyword. */ - Value HELP_VALUE = new IdentValue(CSSConstants.CSS_HELP_VALUE); + Value HELP_VALUE = IdentValue.createConstant(CSSConstants.CSS_HELP_VALUE); /** * The 'hidden' keyword. */ - Value HIDDEN_VALUE = new IdentValue(CSSConstants.CSS_HIDDEN_VALUE); + Value HIDDEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_HIDDEN_VALUE); /** * The 'inline' keyword. */ - Value INLINE_VALUE = new IdentValue(CSSConstants.CSS_INLINE_VALUE); + Value INLINE_VALUE = IdentValue.createConstant(CSSConstants.CSS_INLINE_VALUE); /** * The 'inline-block' keyword. */ - Value INLINE_BLOCK_VALUE = new IdentValue(CSSConstants.CSS_INLINE_BLOCK_VALUE); + Value INLINE_BLOCK_VALUE = IdentValue.createConstant(CSSConstants.CSS_INLINE_BLOCK_VALUE); /** * The 'inline-table' keyword. */ - Value INLINE_TABLE_VALUE = new IdentValue(CSSConstants.CSS_INLINE_TABLE_VALUE); + Value INLINE_TABLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_INLINE_TABLE_VALUE); /** * The 'italic' keyword. */ - Value ITALIC_VALUE = new IdentValue(CSSConstants.CSS_ITALIC_VALUE); + Value ITALIC_VALUE = IdentValue.createConstant(CSSConstants.CSS_ITALIC_VALUE); /** * The 'large' keyword. */ - Value LARGE_VALUE = new IdentValue(CSSConstants.CSS_LARGE_VALUE); + Value LARGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_LARGE_VALUE); /** * The 'larger' keyword. */ - Value LARGER_VALUE = new IdentValue(CSSConstants.CSS_LARGER_VALUE); + Value LARGER_VALUE = IdentValue.createConstant(CSSConstants.CSS_LARGER_VALUE); /** * The 'lighter' keyword. */ - Value LIGHTER_VALUE = new IdentValue(CSSConstants.CSS_LIGHTER_VALUE); + Value LIGHTER_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTER_VALUE); /** * The 'line_through' keyword. */ - Value LINE_THROUGH_VALUE = new IdentValue(CSSConstants.CSS_LINE_THROUGH_VALUE); + Value LINE_THROUGH_VALUE = IdentValue.createConstant(CSSConstants.CSS_LINE_THROUGH_VALUE); /** * The 'list-item' keyword. */ - Value LIST_ITEM_VALUE = new IdentValue(CSSConstants.CSS_LIST_ITEM_VALUE); + Value LIST_ITEM_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIST_ITEM_VALUE); /** * The 'ltr' keyword. */ - Value LTR_VALUE = new IdentValue(CSSConstants.CSS_LTR_VALUE); + Value LTR_VALUE = IdentValue.createConstant(CSSConstants.CSS_LTR_VALUE); /** * The 'marker' keyword. */ - Value MARKER_VALUE = new IdentValue(CSSConstants.CSS_MARKER_VALUE); + Value MARKER_VALUE = IdentValue.createConstant(CSSConstants.CSS_MARKER_VALUE); /** * The 'medium' keyword. */ - Value MEDIUM_VALUE = new IdentValue(CSSConstants.CSS_MEDIUM_VALUE); + Value MEDIUM_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUM_VALUE); /** * The 'monospaced' keyword. */ - Value MONOSPACE_VALUE = new IdentValue(CSSConstants.CSS_MONOSPACE_VALUE); + Value MONOSPACE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MONOSPACE_VALUE); /** * The 'move' keyword. */ - Value MOVE_VALUE = new IdentValue(CSSConstants.CSS_MOVE_VALUE); + Value MOVE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MOVE_VALUE); /** * The 'n-resize' keyword. */ - Value N_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_N_RESIZE_VALUE); + Value N_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_N_RESIZE_VALUE); /** * The 'narrower' keyword. */ - Value NARROWER_VALUE = new IdentValue(CSSConstants.CSS_NARROWER_VALUE); + Value NARROWER_VALUE = IdentValue.createConstant(CSSConstants.CSS_NARROWER_VALUE); /** * The 'ne-resize' keyword. */ - Value NE_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_NE_RESIZE_VALUE); + Value NE_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_NE_RESIZE_VALUE); /** * The 'nw-resize' keyword. */ - Value NW_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_NW_RESIZE_VALUE); + Value NW_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_NW_RESIZE_VALUE); /** * The 'none' keyword. */ - Value NONE_VALUE = new IdentValue(CSSConstants.CSS_NONE_VALUE); + Value NONE_VALUE = IdentValue.createConstant(CSSConstants.CSS_NONE_VALUE); /** * The 'normal' keyword. */ - Value NORMAL_VALUE = new IdentValue(CSSConstants.CSS_NORMAL_VALUE); + Value NORMAL_VALUE = IdentValue.createConstant(CSSConstants.CSS_NORMAL_VALUE); /** * The 'oblique' keyword. */ - Value OBLIQUE_VALUE = new IdentValue(CSSConstants.CSS_OBLIQUE_VALUE); + Value OBLIQUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_OBLIQUE_VALUE); /** * The 'overline' keyword. */ - Value OVERLINE_VALUE = new IdentValue(CSSConstants.CSS_OVERLINE_VALUE); + Value OVERLINE_VALUE = IdentValue.createConstant(CSSConstants.CSS_OVERLINE_VALUE); /** * The 'pointer' keyword. */ - Value POINTER_VALUE = new IdentValue(CSSConstants.CSS_POINTER_VALUE); + Value POINTER_VALUE = IdentValue.createConstant(CSSConstants.CSS_POINTER_VALUE); /** * The 'painted' keyword. */ - Value PAINTED_VALUE = new IdentValue(CSSConstants.CSS_PAINTED_VALUE); + Value PAINTED_VALUE = IdentValue.createConstant(CSSConstants.CSS_PAINTED_VALUE); /** * The 'rtl' keyword. */ - Value RTL_VALUE = new IdentValue(CSSConstants.CSS_RTL_VALUE); + Value RTL_VALUE = IdentValue.createConstant(CSSConstants.CSS_RTL_VALUE); /** * The 'run-in' keyword. */ - Value RUN_IN_VALUE = new IdentValue(CSSConstants.CSS_RUN_IN_VALUE); + Value RUN_IN_VALUE = IdentValue.createConstant(CSSConstants.CSS_RUN_IN_VALUE); /** * The 's-resize' keyword. */ - Value S_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_S_RESIZE_VALUE); + Value S_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_S_RESIZE_VALUE); /** * The 'sans-serif' keyword. */ - Value SANS_SERIF_VALUE = new IdentValue(CSSConstants.CSS_SANS_SERIF_VALUE); + Value SANS_SERIF_VALUE = IdentValue.createConstant(CSSConstants.CSS_SANS_SERIF_VALUE); /** * The 'scroll' keyword. */ - Value SCROLL_VALUE = new IdentValue(CSSConstants.CSS_SCROLL_VALUE); + Value SCROLL_VALUE = IdentValue.createConstant(CSSConstants.CSS_SCROLL_VALUE); /** * The 'se-resize' keyword. */ - Value SE_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_SE_RESIZE_VALUE); + Value SE_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_SE_RESIZE_VALUE); /** * The 'semi-condensed' keyword. */ - Value SEMI_CONDENSED_VALUE = new IdentValue(CSSConstants.CSS_SEMI_CONDENSED_VALUE); + Value SEMI_CONDENSED_VALUE = IdentValue.createConstant(CSSConstants.CSS_SEMI_CONDENSED_VALUE); /** * The 'semi-expanded' keyword. */ - Value SEMI_EXPANDED_VALUE = new IdentValue(CSSConstants.CSS_SEMI_EXPANDED_VALUE); + Value SEMI_EXPANDED_VALUE = IdentValue.createConstant(CSSConstants.CSS_SEMI_EXPANDED_VALUE); /** * The 'serif' keyword. */ - Value SERIF_VALUE = new IdentValue(CSSConstants.CSS_SERIF_VALUE); + Value SERIF_VALUE = IdentValue.createConstant(CSSConstants.CSS_SERIF_VALUE); /** * The 'small' keyword. */ - Value SMALL_VALUE = new IdentValue(CSSConstants.CSS_SMALL_VALUE); + Value SMALL_VALUE = IdentValue.createConstant(CSSConstants.CSS_SMALL_VALUE); /** * The 'small-caps' keyword. */ - Value SMALL_CAPS_VALUE = new IdentValue(CSSConstants.CSS_SMALL_CAPS_VALUE); + Value SMALL_CAPS_VALUE = IdentValue.createConstant(CSSConstants.CSS_SMALL_CAPS_VALUE); /** * The 'smaller' keyword. */ - Value SMALLER_VALUE = new IdentValue(CSSConstants.CSS_SMALLER_VALUE); + Value SMALLER_VALUE = IdentValue.createConstant(CSSConstants.CSS_SMALLER_VALUE); /** * The 'stroke' keyword. */ - Value STROKE_VALUE = new IdentValue(CSSConstants.CSS_STROKE_VALUE); + Value STROKE_VALUE = IdentValue.createConstant(CSSConstants.CSS_STROKE_VALUE); /** * The 'sw-resize' keyword. */ - Value SW_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_SW_RESIZE_VALUE); + Value SW_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_SW_RESIZE_VALUE); /** * The 'table' keyword. */ - Value TABLE_VALUE = new IdentValue(CSSConstants.CSS_TABLE_VALUE); + Value TABLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_VALUE); /** * The 'table-caption' keyword. */ - Value TABLE_CAPTION_VALUE = new IdentValue(CSSConstants.CSS_TABLE_CAPTION_VALUE); + Value TABLE_CAPTION_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_CAPTION_VALUE); /** * The 'table-cell' keyword. */ - Value TABLE_CELL_VALUE = new IdentValue(CSSConstants.CSS_TABLE_CELL_VALUE); + Value TABLE_CELL_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_CELL_VALUE); /** * The 'table-column' keyword. */ - Value TABLE_COLUMN_VALUE = new IdentValue(CSSConstants.CSS_TABLE_COLUMN_VALUE); + Value TABLE_COLUMN_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_COLUMN_VALUE); /** * The 'table-column-group' keyword. */ - Value TABLE_COLUMN_GROUP_VALUE = new IdentValue(CSSConstants.CSS_TABLE_COLUMN_GROUP_VALUE); + Value TABLE_COLUMN_GROUP_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_COLUMN_GROUP_VALUE); /** * The 'table-footer-group' keyword. */ - Value TABLE_FOOTER_GROUP_VALUE = new IdentValue(CSSConstants.CSS_TABLE_FOOTER_GROUP_VALUE); + Value TABLE_FOOTER_GROUP_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_FOOTER_GROUP_VALUE); /** * The 'table-header-group' keyword. */ - Value TABLE_HEADER_GROUP_VALUE = new IdentValue(CSSConstants.CSS_TABLE_HEADER_GROUP_VALUE); + Value TABLE_HEADER_GROUP_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_HEADER_GROUP_VALUE); /** * The 'table-row' keyword. */ - Value TABLE_ROW_VALUE = new IdentValue(CSSConstants.CSS_TABLE_ROW_VALUE); + Value TABLE_ROW_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_ROW_VALUE); /** * The 'table-row-group' keyword. */ - Value TABLE_ROW_GROUP_VALUE = new IdentValue(CSSConstants.CSS_TABLE_ROW_GROUP_VALUE); + Value TABLE_ROW_GROUP_VALUE = IdentValue.createConstant(CSSConstants.CSS_TABLE_ROW_GROUP_VALUE); /** * The 'text' keyword. */ - Value TEXT_VALUE = new IdentValue(CSSConstants.CSS_TEXT_VALUE); + Value TEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_TEXT_VALUE); /** * The 'ultra-condensed' keyword. */ - Value ULTRA_CONDENSED_VALUE = new IdentValue(CSSConstants.CSS_ULTRA_CONDENSED_VALUE); + Value ULTRA_CONDENSED_VALUE = IdentValue.createConstant(CSSConstants.CSS_ULTRA_CONDENSED_VALUE); /** * The 'ultra-expanded' keyword. */ - Value ULTRA_EXPANDED_VALUE = new IdentValue(CSSConstants.CSS_ULTRA_EXPANDED_VALUE); + Value ULTRA_EXPANDED_VALUE = IdentValue.createConstant(CSSConstants.CSS_ULTRA_EXPANDED_VALUE); /** * The 'top' keyword. */ - Value TOP_VALUE = new IdentValue(CSSConstants.CSS_TOP_VALUE); + Value TOP_VALUE = IdentValue.createConstant(CSSConstants.CSS_TOP_VALUE); /** * The 'underline' keyword. */ - Value UNDERLINE_VALUE = new IdentValue(CSSConstants.CSS_UNDERLINE_VALUE); + Value UNDERLINE_VALUE = IdentValue.createConstant(CSSConstants.CSS_UNDERLINE_VALUE); /** * The 'visible' keyword. */ - Value VISIBLE_VALUE = new IdentValue(CSSConstants.CSS_VISIBLE_VALUE); + Value VISIBLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_VISIBLE_VALUE); /** * The 'w-resize' keyword. */ - Value W_RESIZE_VALUE = new IdentValue(CSSConstants.CSS_W_RESIZE_VALUE); + Value W_RESIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_W_RESIZE_VALUE); /** * The 'wait' keyword. */ - Value WAIT_VALUE = new IdentValue(CSSConstants.CSS_WAIT_VALUE); + Value WAIT_VALUE = IdentValue.createConstant(CSSConstants.CSS_WAIT_VALUE); /** * The 'wider' keyword. */ - Value WIDER_VALUE = new IdentValue(CSSConstants.CSS_WIDER_VALUE); + Value WIDER_VALUE = IdentValue.createConstant(CSSConstants.CSS_WIDER_VALUE); /** * The 'x-large' keyword. */ - Value X_LARGE_VALUE = new IdentValue(CSSConstants.CSS_X_LARGE_VALUE); + Value X_LARGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_X_LARGE_VALUE); /** * The 'x-small' keyword. */ - Value X_SMALL_VALUE = new IdentValue(CSSConstants.CSS_X_SMALL_VALUE); + Value X_SMALL_VALUE = IdentValue.createConstant(CSSConstants.CSS_X_SMALL_VALUE); /** * The 'xx-large' keyword. */ - Value XX_LARGE_VALUE = new IdentValue(CSSConstants.CSS_XX_LARGE_VALUE); + Value XX_LARGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_XX_LARGE_VALUE); /** * The 'xx-small' keyword. */ - Value XX_SMALL_VALUE = new IdentValue(CSSConstants.CSS_XX_SMALL_VALUE); + Value XX_SMALL_VALUE = IdentValue.createConstant(CSSConstants.CSS_XX_SMALL_VALUE); /** * The 'aqua' color name. */ - Value AQUA_VALUE = new IdentValue(CSSConstants.CSS_AQUA_VALUE); + Value AQUA_VALUE = IdentValue.createConstant(CSSConstants.CSS_AQUA_VALUE); /** * The 'black' color name. */ - Value BLACK_VALUE = new IdentValue(CSSConstants.CSS_BLACK_VALUE); + Value BLACK_VALUE = IdentValue.createConstant(CSSConstants.CSS_BLACK_VALUE); /** * The 'blue' color name. */ - Value BLUE_VALUE = new IdentValue(CSSConstants.CSS_BLUE_VALUE); + Value BLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BLUE_VALUE); /** * The 'fuchsia' color name. */ - Value FUCHSIA_VALUE = new IdentValue(CSSConstants.CSS_FUCHSIA_VALUE); + Value FUCHSIA_VALUE = IdentValue.createConstant(CSSConstants.CSS_FUCHSIA_VALUE); /** * The 'gray' color name. */ - Value GRAY_VALUE = new IdentValue(CSSConstants.CSS_GRAY_VALUE); + Value GRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_GRAY_VALUE); /** * The 'green' color name. */ - Value GREEN_VALUE = new IdentValue(CSSConstants.CSS_GREEN_VALUE); + Value GREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_GREEN_VALUE); /** * The 'lime' color name. */ - Value LIME_VALUE = new IdentValue(CSSConstants.CSS_LIME_VALUE); + Value LIME_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIME_VALUE); /** * The 'maroon' color name. */ - Value MAROON_VALUE = new IdentValue(CSSConstants.CSS_MAROON_VALUE); + Value MAROON_VALUE = IdentValue.createConstant(CSSConstants.CSS_MAROON_VALUE); /** * The 'navy' color name. */ - Value NAVY_VALUE = new IdentValue(CSSConstants.CSS_NAVY_VALUE); + Value NAVY_VALUE = IdentValue.createConstant(CSSConstants.CSS_NAVY_VALUE); /** * The 'olive' color name. */ - Value OLIVE_VALUE = new IdentValue(CSSConstants.CSS_OLIVE_VALUE); + Value OLIVE_VALUE = IdentValue.createConstant(CSSConstants.CSS_OLIVE_VALUE); /** * The 'purple' color name. */ - Value PURPLE_VALUE = new IdentValue(CSSConstants.CSS_PURPLE_VALUE); + Value PURPLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_PURPLE_VALUE); /** * The 'red' color name. */ - Value RED_VALUE = new IdentValue(CSSConstants.CSS_RED_VALUE); + Value RED_VALUE = IdentValue.createConstant(CSSConstants.CSS_RED_VALUE); /** * The 'silver' color name. */ - Value SILVER_VALUE = new IdentValue(CSSConstants.CSS_SILVER_VALUE); + Value SILVER_VALUE = IdentValue.createConstant(CSSConstants.CSS_SILVER_VALUE); /** * The 'teal' color name. */ - Value TEAL_VALUE = new IdentValue(CSSConstants.CSS_TEAL_VALUE); + Value TEAL_VALUE = IdentValue.createConstant(CSSConstants.CSS_TEAL_VALUE); /** * The 'transparent' color name. */ - Value TRANSPARENT_VALUE = new IdentValue(CSSConstants.CSS_TRANSPARENT_VALUE); + Value TRANSPARENT_VALUE = IdentValue.createConstant(CSSConstants.CSS_TRANSPARENT_VALUE); /** * The 'white' color name. */ - Value WHITE_VALUE = new IdentValue(CSSConstants.CSS_WHITE_VALUE); + Value WHITE_VALUE = IdentValue.createConstant(CSSConstants.CSS_WHITE_VALUE); /** * The 'yellow' color name. */ - Value YELLOW_VALUE = new IdentValue(CSSConstants.CSS_YELLOW_VALUE); + Value YELLOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_YELLOW_VALUE); /** * The 'ACTIVEBORDER' color name. */ - Value ACTIVEBORDER_VALUE = new IdentValue(CSSConstants.CSS_ACTIVEBORDER_VALUE); + Value ACTIVEBORDER_VALUE = IdentValue.createConstant(CSSConstants.CSS_ACTIVEBORDER_VALUE); /** * The 'ACTIVECAPTION' color name. */ - Value ACTIVECAPTION_VALUE = new IdentValue(CSSConstants.CSS_ACTIVECAPTION_VALUE); + Value ACTIVECAPTION_VALUE = IdentValue.createConstant(CSSConstants.CSS_ACTIVECAPTION_VALUE); /** * The 'APPWORKSPACE' color name. */ - Value APPWORKSPACE_VALUE = new IdentValue(CSSConstants.CSS_APPWORKSPACE_VALUE); + Value APPWORKSPACE_VALUE = IdentValue.createConstant(CSSConstants.CSS_APPWORKSPACE_VALUE); /** * The 'BACKGROUND' color name. */ - Value BACKGROUND_VALUE = new IdentValue(CSSConstants.CSS_BACKGROUND_VALUE); + Value BACKGROUND_VALUE = IdentValue.createConstant(CSSConstants.CSS_BACKGROUND_VALUE); /** * The 'BUTTONFACE' color name. */ - Value BUTTONFACE_VALUE = new IdentValue(CSSConstants.CSS_BUTTONFACE_VALUE); + Value BUTTONFACE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BUTTONFACE_VALUE); /** * The 'BUTTONHIGHLIGHT' color name. */ - Value BUTTONHIGHLIGHT_VALUE = new IdentValue(CSSConstants.CSS_BUTTONHIGHLIGHT_VALUE); + Value BUTTONHIGHLIGHT_VALUE = IdentValue.createConstant(CSSConstants.CSS_BUTTONHIGHLIGHT_VALUE); /** * The 'BUTTONSHADOW' color name. */ - Value BUTTONSHADOW_VALUE = new IdentValue(CSSConstants.CSS_BUTTONSHADOW_VALUE); + Value BUTTONSHADOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_BUTTONSHADOW_VALUE); /** * The 'BUTTONTEXT' color name. */ - Value BUTTONTEXT_VALUE = new IdentValue(CSSConstants.CSS_BUTTONTEXT_VALUE); + Value BUTTONTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_BUTTONTEXT_VALUE); /** * The 'CAPTIONTEXT' color name. */ - Value CAPTIONTEXT_VALUE = new IdentValue(CSSConstants.CSS_CAPTIONTEXT_VALUE); + Value CAPTIONTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_CAPTIONTEXT_VALUE); /** * The 'GRAYTEXT' color name. */ - Value GRAYTEXT_VALUE = new IdentValue(CSSConstants.CSS_GRAYTEXT_VALUE); + Value GRAYTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_GRAYTEXT_VALUE); /** * The 'HIGHLIGHT' color name. */ - Value HIGHLIGHT_VALUE = new IdentValue(CSSConstants.CSS_HIGHLIGHT_VALUE); + Value HIGHLIGHT_VALUE = IdentValue.createConstant(CSSConstants.CSS_HIGHLIGHT_VALUE); /** * The 'HIGHLIGHTTEXT' color name. */ - Value HIGHLIGHTTEXT_VALUE = new IdentValue(CSSConstants.CSS_HIGHLIGHTTEXT_VALUE); + Value HIGHLIGHTTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_HIGHLIGHTTEXT_VALUE); /** * The 'INACTIVEBORDER' color name. */ - Value INACTIVEBORDER_VALUE = new IdentValue(CSSConstants.CSS_INACTIVEBORDER_VALUE); + Value INACTIVEBORDER_VALUE = IdentValue.createConstant(CSSConstants.CSS_INACTIVEBORDER_VALUE); /** * The 'INACTIVECAPTION' color name. */ - Value INACTIVECAPTION_VALUE = new IdentValue(CSSConstants.CSS_INACTIVECAPTION_VALUE); + Value INACTIVECAPTION_VALUE = IdentValue.createConstant(CSSConstants.CSS_INACTIVECAPTION_VALUE); /** * The 'INACTIVECAPTIONTEXT' color name. */ - Value INACTIVECAPTIONTEXT_VALUE = new IdentValue(CSSConstants.CSS_INACTIVECAPTIONTEXT_VALUE); + Value INACTIVECAPTIONTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_INACTIVECAPTIONTEXT_VALUE); /** * The 'INFOBACKGROUND' color name. */ - Value INFOBACKGROUND_VALUE = new IdentValue(CSSConstants.CSS_INFOBACKGROUND_VALUE); + Value INFOBACKGROUND_VALUE = IdentValue.createConstant(CSSConstants.CSS_INFOBACKGROUND_VALUE); /** * The 'INFOTEXT' color name. */ - Value INFOTEXT_VALUE = new IdentValue(CSSConstants.CSS_INFOTEXT_VALUE); + Value INFOTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_INFOTEXT_VALUE); /** * The 'MENU' color name. */ - Value MENU_VALUE = new IdentValue(CSSConstants.CSS_MENU_VALUE); + Value MENU_VALUE = IdentValue.createConstant(CSSConstants.CSS_MENU_VALUE); /** * The 'MENUTEXT' color name. */ - Value MENUTEXT_VALUE = new IdentValue(CSSConstants.CSS_MENUTEXT_VALUE); + Value MENUTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_MENUTEXT_VALUE); /** * The 'SCROLLBAR' color name. */ - Value SCROLLBAR_VALUE = new IdentValue(CSSConstants.CSS_SCROLLBAR_VALUE); + Value SCROLLBAR_VALUE = IdentValue.createConstant(CSSConstants.CSS_SCROLLBAR_VALUE); /** * The 'THREEDDARKSHADOW' color name. */ - Value THREEDDARKSHADOW_VALUE = new IdentValue(CSSConstants.CSS_THREEDDARKSHADOW_VALUE); + Value THREEDDARKSHADOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_THREEDDARKSHADOW_VALUE); /** * The 'THREEDFACE' color name. */ - Value THREEDFACE_VALUE = new IdentValue(CSSConstants.CSS_THREEDFACE_VALUE); + Value THREEDFACE_VALUE = IdentValue.createConstant(CSSConstants.CSS_THREEDFACE_VALUE); /** * The 'THREEDHIGHLIGHT' color name. */ - Value THREEDHIGHLIGHT_VALUE = new IdentValue(CSSConstants.CSS_THREEDHIGHLIGHT_VALUE); + Value THREEDHIGHLIGHT_VALUE = IdentValue.createConstant(CSSConstants.CSS_THREEDHIGHLIGHT_VALUE); /** * The 'THREEDLIGHTSHADOW' color name. */ - Value THREEDLIGHTSHADOW_VALUE = new IdentValue(CSSConstants.CSS_THREEDLIGHTSHADOW_VALUE); + Value THREEDLIGHTSHADOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_THREEDLIGHTSHADOW_VALUE); /** * The 'THREEDSHADOW' color name. */ - Value THREEDSHADOW_VALUE = new IdentValue(CSSConstants.CSS_THREEDSHADOW_VALUE); + Value THREEDSHADOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_THREEDSHADOW_VALUE); /** * The 'WINDOW' color name. */ - Value WINDOW_VALUE = new IdentValue(CSSConstants.CSS_WINDOW_VALUE); + Value WINDOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_WINDOW_VALUE); /** * The 'WINDOWFRAME' color name. */ - Value WINDOWFRAME_VALUE = new IdentValue(CSSConstants.CSS_WINDOWFRAME_VALUE); + Value WINDOWFRAME_VALUE = IdentValue.createConstant(CSSConstants.CSS_WINDOWFRAME_VALUE); /** * The 'WINDOWTEXT' color name. */ - Value WINDOWTEXT_VALUE = new IdentValue(CSSConstants.CSS_WINDOWTEXT_VALUE); + Value WINDOWTEXT_VALUE = IdentValue.createConstant(CSSConstants.CSS_WINDOWTEXT_VALUE); /** * The 'black' RGB color. */ - Value BLACK_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_0, NUMBER_0); + Value BLACK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_0, NUMBER_0); /** * The 'silver' RGB color. */ - Value SILVER_RGB_VALUE = new RGBColorValue(NUMBER_192, NUMBER_192, NUMBER_192); + Value SILVER_RGB_VALUE = RGBColorValue.createConstant(NUMBER_192, NUMBER_192, NUMBER_192); /** * The 'gray' RGB color. */ - Value GRAY_RGB_VALUE = new RGBColorValue(NUMBER_128, NUMBER_128, NUMBER_128); + Value GRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_128, NUMBER_128, NUMBER_128); /** * The 'white' RGB color. */ - Value WHITE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_255, NUMBER_255); + Value WHITE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_255, NUMBER_255); /** * The 'maroon' RGB color. */ - Value MAROON_RGB_VALUE = new RGBColorValue(NUMBER_128, NUMBER_0, NUMBER_0); + Value MAROON_RGB_VALUE = RGBColorValue.createConstant(NUMBER_128, NUMBER_0, NUMBER_0); /** * The 'red' RGB color. */ - Value RED_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_0, NUMBER_0); + Value RED_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_0, NUMBER_0); /** * The 'purple' RGB color. */ - Value PURPLE_RGB_VALUE = new RGBColorValue(NUMBER_128, NUMBER_0, NUMBER_128); + Value PURPLE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_128, NUMBER_0, NUMBER_128); /** * The 'fuchsia' RGB color. */ - Value FUCHSIA_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_0, NUMBER_255); + Value FUCHSIA_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_0, NUMBER_255); /** * The 'green' RGB color. */ - Value GREEN_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_128, NUMBER_0); + Value GREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_128, NUMBER_0); /** * The 'lime' RGB color. */ - Value LIME_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_255, NUMBER_0); + Value LIME_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_255, NUMBER_0); /** * The 'olive' RGB color. */ - Value OLIVE_RGB_VALUE = new RGBColorValue(NUMBER_128, NUMBER_128, NUMBER_0); + Value OLIVE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_128, NUMBER_128, NUMBER_0); /** * The 'yellow' RGB color. */ - Value YELLOW_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_255, NUMBER_0); + Value YELLOW_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_255, NUMBER_0); /** * The 'navy' RGB color. */ - Value NAVY_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_0, NUMBER_128); + Value NAVY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_0, NUMBER_128); /** * The 'blue' RGB color. */ - Value BLUE_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_0, NUMBER_255); + Value BLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_0, NUMBER_255); /** * The 'teal' RGB color. */ - Value TEAL_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_128, NUMBER_128); + Value TEAL_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_128, NUMBER_128); /** * The 'aqua' RGB color. */ - Value AQUA_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_255, NUMBER_255); + Value AQUA_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_255, NUMBER_255); /** * The 'transparent' RGB color. */ - Value TRANSPARENT_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_0, NUMBER_0, NUMBER_0); + Value TRANSPARENT_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_0, NUMBER_0, NUMBER_0); } diff --git a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/svg/SVGValueConstants.java b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/svg/SVGValueConstants.java index 84d6c3870..2a03f9d2a 100644 --- a/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/svg/SVGValueConstants.java +++ b/echosvg-css/src/main/java/io/sf/carte/echosvg/css/engine/value/svg/SVGValueConstants.java @@ -42,2211 +42,2211 @@ public interface SVGValueConstants extends ValueConstants { /** * 0 degree */ - NumericValue ZERO_DEGREE = new FloatValue(CSSUnit.CSS_DEG, 0); + NumericValue ZERO_DEGREE = FloatValue.createConstant(CSSUnit.CSS_DEG, 0); /** * 1 */ - NumericValue NUMBER_1 = new FloatValue(CSSUnit.CSS_NUMBER, 1); + NumericValue NUMBER_1 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 1); /** * 4 */ - NumericValue NUMBER_4 = new FloatValue(CSSUnit.CSS_NUMBER, 4); + NumericValue NUMBER_4 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 4); /** * 11 */ - NumericValue NUMBER_11 = new FloatValue(CSSUnit.CSS_NUMBER, 11); + NumericValue NUMBER_11 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 11); /** * 19 */ - NumericValue NUMBER_19 = new FloatValue(CSSUnit.CSS_NUMBER, 19); + NumericValue NUMBER_19 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 19); /** * 20 */ - NumericValue NUMBER_20 = new FloatValue(CSSUnit.CSS_NUMBER, 20); + NumericValue NUMBER_20 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 20); /** * 21 */ - NumericValue NUMBER_21 = new FloatValue(CSSUnit.CSS_NUMBER, 21); + NumericValue NUMBER_21 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 21); /** * 25 */ - NumericValue NUMBER_25 = new FloatValue(CSSUnit.CSS_NUMBER, 25); + NumericValue NUMBER_25 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 25); /** * 30 */ - NumericValue NUMBER_30 = new FloatValue(CSSUnit.CSS_NUMBER, 30); + NumericValue NUMBER_30 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 30); /** * 32 */ - NumericValue NUMBER_32 = new FloatValue(CSSUnit.CSS_NUMBER, 32); + NumericValue NUMBER_32 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 32); /** * 34 */ - NumericValue NUMBER_34 = new FloatValue(CSSUnit.CSS_NUMBER, 34); + NumericValue NUMBER_34 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 34); /** * 35 */ - NumericValue NUMBER_35 = new FloatValue(CSSUnit.CSS_NUMBER, 35); + NumericValue NUMBER_35 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 35); /** * 42 */ - NumericValue NUMBER_42 = new FloatValue(CSSUnit.CSS_NUMBER, 42); + NumericValue NUMBER_42 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 42); /** * 43 */ - NumericValue NUMBER_43 = new FloatValue(CSSUnit.CSS_NUMBER, 43); + NumericValue NUMBER_43 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 43); /** * 45 */ - NumericValue NUMBER_45 = new FloatValue(CSSUnit.CSS_NUMBER, 45); + NumericValue NUMBER_45 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 45); /** * 46 */ - NumericValue NUMBER_46 = new FloatValue(CSSUnit.CSS_NUMBER, 46); + NumericValue NUMBER_46 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 46); /** * 47 */ - NumericValue NUMBER_47 = new FloatValue(CSSUnit.CSS_NUMBER, 47); + NumericValue NUMBER_47 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 47); /** * 50 */ - NumericValue NUMBER_50 = new FloatValue(CSSUnit.CSS_NUMBER, 50); + NumericValue NUMBER_50 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 50); /** * 60 */ - NumericValue NUMBER_60 = new FloatValue(CSSUnit.CSS_NUMBER, 60); + NumericValue NUMBER_60 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 60); /** * 61 */ - NumericValue NUMBER_61 = new FloatValue(CSSUnit.CSS_NUMBER, 61); + NumericValue NUMBER_61 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 61); /** * 63 */ - NumericValue NUMBER_63 = new FloatValue(CSSUnit.CSS_NUMBER, 63); + NumericValue NUMBER_63 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 63); /** * 64 */ - NumericValue NUMBER_64 = new FloatValue(CSSUnit.CSS_NUMBER, 64); + NumericValue NUMBER_64 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 64); /** * 65 */ - NumericValue NUMBER_65 = new FloatValue(CSSUnit.CSS_NUMBER, 65); + NumericValue NUMBER_65 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 65); /** * 69 */ - NumericValue NUMBER_69 = new FloatValue(CSSUnit.CSS_NUMBER, 69); + NumericValue NUMBER_69 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 69); /** * 70 */ - NumericValue NUMBER_70 = new FloatValue(CSSUnit.CSS_NUMBER, 70); + NumericValue NUMBER_70 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 70); /** * 71 */ - NumericValue NUMBER_71 = new FloatValue(CSSUnit.CSS_NUMBER, 71); + NumericValue NUMBER_71 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 71); /** * 72 */ - NumericValue NUMBER_72 = new FloatValue(CSSUnit.CSS_NUMBER, 72); + NumericValue NUMBER_72 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 72); /** * 75 */ - NumericValue NUMBER_75 = new FloatValue(CSSUnit.CSS_NUMBER, 75); + NumericValue NUMBER_75 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 75); /** * 79 */ - NumericValue NUMBER_79 = new FloatValue(CSSUnit.CSS_NUMBER, 79); + NumericValue NUMBER_79 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 79); /** * 80 */ - NumericValue NUMBER_80 = new FloatValue(CSSUnit.CSS_NUMBER, 80); + NumericValue NUMBER_80 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 80); /** * 82 */ - NumericValue NUMBER_82 = new FloatValue(CSSUnit.CSS_NUMBER, 82); + NumericValue NUMBER_82 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 82); /** * 85 */ - NumericValue NUMBER_85 = new FloatValue(CSSUnit.CSS_NUMBER, 85); + NumericValue NUMBER_85 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 85); /** * 87 */ - NumericValue NUMBER_87 = new FloatValue(CSSUnit.CSS_NUMBER, 87); + NumericValue NUMBER_87 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 87); /** * 90 */ - NumericValue NUMBER_90 = new FloatValue(CSSUnit.CSS_NUMBER, 90); + NumericValue NUMBER_90 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 90); /** * 91 */ - NumericValue NUMBER_91 = new FloatValue(CSSUnit.CSS_NUMBER, 91); + NumericValue NUMBER_91 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 91); /** * 92 */ - NumericValue NUMBER_92 = new FloatValue(CSSUnit.CSS_NUMBER, 92); + NumericValue NUMBER_92 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 92); /** * 95 */ - NumericValue NUMBER_95 = new FloatValue(CSSUnit.CSS_NUMBER, 95); + NumericValue NUMBER_95 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 95); /** * 96 */ - NumericValue NUMBER_96 = new FloatValue(CSSUnit.CSS_NUMBER, 96); + NumericValue NUMBER_96 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 96); /** * 99 */ - NumericValue NUMBER_99 = new FloatValue(CSSUnit.CSS_NUMBER, 99); + NumericValue NUMBER_99 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 99); /** * 102 */ - NumericValue NUMBER_102 = new FloatValue(CSSUnit.CSS_NUMBER, 102); + NumericValue NUMBER_102 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 102); /** * 104 */ - NumericValue NUMBER_104 = new FloatValue(CSSUnit.CSS_NUMBER, 104); + NumericValue NUMBER_104 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 104); /** * 105 */ - NumericValue NUMBER_105 = new FloatValue(CSSUnit.CSS_NUMBER, 105); + NumericValue NUMBER_105 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 105); /** * 106 */ - NumericValue NUMBER_106 = new FloatValue(CSSUnit.CSS_NUMBER, 106); + NumericValue NUMBER_106 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 106); /** * 107 */ - NumericValue NUMBER_107 = new FloatValue(CSSUnit.CSS_NUMBER, 107); + NumericValue NUMBER_107 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 107); /** * 112 */ - NumericValue NUMBER_112 = new FloatValue(CSSUnit.CSS_NUMBER, 112); + NumericValue NUMBER_112 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 112); /** * 113 */ - NumericValue NUMBER_113 = new FloatValue(CSSUnit.CSS_NUMBER, 113); + NumericValue NUMBER_113 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 113); /** * 114 */ - NumericValue NUMBER_114 = new FloatValue(CSSUnit.CSS_NUMBER, 114); + NumericValue NUMBER_114 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 114); /** * 119 */ - NumericValue NUMBER_119 = new FloatValue(CSSUnit.CSS_NUMBER, 119); + NumericValue NUMBER_119 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 119); /** * 122 */ - NumericValue NUMBER_122 = new FloatValue(CSSUnit.CSS_NUMBER, 122); + NumericValue NUMBER_122 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 122); /** * 123 */ - NumericValue NUMBER_123 = new FloatValue(CSSUnit.CSS_NUMBER, 123); + NumericValue NUMBER_123 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 123); /** * 124 */ - NumericValue NUMBER_124 = new FloatValue(CSSUnit.CSS_NUMBER, 124); + NumericValue NUMBER_124 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 124); /** * 127 */ - NumericValue NUMBER_127 = new FloatValue(CSSUnit.CSS_NUMBER, 127); + NumericValue NUMBER_127 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 127); /** * 130 */ - NumericValue NUMBER_130 = new FloatValue(CSSUnit.CSS_NUMBER, 130); + NumericValue NUMBER_130 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 130); /** * 133 */ - NumericValue NUMBER_133 = new FloatValue(CSSUnit.CSS_NUMBER, 133); + NumericValue NUMBER_133 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 133); /** * 134 */ - NumericValue NUMBER_134 = new FloatValue(CSSUnit.CSS_NUMBER, 134); + NumericValue NUMBER_134 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 134); /** * 135 */ - NumericValue NUMBER_135 = new FloatValue(CSSUnit.CSS_NUMBER, 135); + NumericValue NUMBER_135 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 135); /** * 136 */ - NumericValue NUMBER_136 = new FloatValue(CSSUnit.CSS_NUMBER, 136); + NumericValue NUMBER_136 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 136); /** * 138 */ - NumericValue NUMBER_138 = new FloatValue(CSSUnit.CSS_NUMBER, 138); + NumericValue NUMBER_138 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 138); /** * 139 */ - NumericValue NUMBER_139 = new FloatValue(CSSUnit.CSS_NUMBER, 139); + NumericValue NUMBER_139 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 139); /** * 140 */ - NumericValue NUMBER_140 = new FloatValue(CSSUnit.CSS_NUMBER, 140); + NumericValue NUMBER_140 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 140); /** * 142 */ - NumericValue NUMBER_142 = new FloatValue(CSSUnit.CSS_NUMBER, 142); + NumericValue NUMBER_142 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 142); /** * 143 */ - NumericValue NUMBER_143 = new FloatValue(CSSUnit.CSS_NUMBER, 143); + NumericValue NUMBER_143 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 143); /** * 144 */ - NumericValue NUMBER_144 = new FloatValue(CSSUnit.CSS_NUMBER, 144); + NumericValue NUMBER_144 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 144); /** * 147 */ - NumericValue NUMBER_147 = new FloatValue(CSSUnit.CSS_NUMBER, 147); + NumericValue NUMBER_147 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 147); /** * 148 */ - NumericValue NUMBER_148 = new FloatValue(CSSUnit.CSS_NUMBER, 148); + NumericValue NUMBER_148 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 148); /** * 149 */ - NumericValue NUMBER_149 = new FloatValue(CSSUnit.CSS_NUMBER, 149); + NumericValue NUMBER_149 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 149); /** * 150 */ - NumericValue NUMBER_150 = new FloatValue(CSSUnit.CSS_NUMBER, 150); + NumericValue NUMBER_150 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 150); /** * 152 */ - NumericValue NUMBER_152 = new FloatValue(CSSUnit.CSS_NUMBER, 152); + NumericValue NUMBER_152 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 152); /** * 153 */ - NumericValue NUMBER_153 = new FloatValue(CSSUnit.CSS_NUMBER, 153); + NumericValue NUMBER_153 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 153); /** * 154 */ - NumericValue NUMBER_154 = new FloatValue(CSSUnit.CSS_NUMBER, 154); + NumericValue NUMBER_154 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 154); /** * 158 */ - NumericValue NUMBER_158 = new FloatValue(CSSUnit.CSS_NUMBER, 158); + NumericValue NUMBER_158 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 158); /** * 160 */ - NumericValue NUMBER_160 = new FloatValue(CSSUnit.CSS_NUMBER, 160); + NumericValue NUMBER_160 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 160); /** * 164 */ - NumericValue NUMBER_164 = new FloatValue(CSSUnit.CSS_NUMBER, 164); + NumericValue NUMBER_164 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 164); /** * 165 */ - NumericValue NUMBER_165 = new FloatValue(CSSUnit.CSS_NUMBER, 165); + NumericValue NUMBER_165 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 165); /** * 169 */ - NumericValue NUMBER_169 = new FloatValue(CSSUnit.CSS_NUMBER, 169); + NumericValue NUMBER_169 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 169); /** * 170 */ - NumericValue NUMBER_170 = new FloatValue(CSSUnit.CSS_NUMBER, 170); + NumericValue NUMBER_170 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 170); /** * 173 */ - NumericValue NUMBER_173 = new FloatValue(CSSUnit.CSS_NUMBER, 173); + NumericValue NUMBER_173 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 173); /** * 175 */ - NumericValue NUMBER_175 = new FloatValue(CSSUnit.CSS_NUMBER, 175); + NumericValue NUMBER_175 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 175); /** * 176 */ - NumericValue NUMBER_176 = new FloatValue(CSSUnit.CSS_NUMBER, 176); + NumericValue NUMBER_176 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 176); /** * 178 */ - NumericValue NUMBER_178 = new FloatValue(CSSUnit.CSS_NUMBER, 178); + NumericValue NUMBER_178 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 178); /** * 179 */ - NumericValue NUMBER_179 = new FloatValue(CSSUnit.CSS_NUMBER, 179); + NumericValue NUMBER_179 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 179); /** * 180 */ - NumericValue NUMBER_180 = new FloatValue(CSSUnit.CSS_NUMBER, 180); + NumericValue NUMBER_180 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 180); /** * 181 */ - NumericValue NUMBER_181 = new FloatValue(CSSUnit.CSS_NUMBER, 181); + NumericValue NUMBER_181 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 181); /** * 182 */ - NumericValue NUMBER_182 = new FloatValue(CSSUnit.CSS_NUMBER, 182); + NumericValue NUMBER_182 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 182); /** * 183 */ - NumericValue NUMBER_183 = new FloatValue(CSSUnit.CSS_NUMBER, 183); + NumericValue NUMBER_183 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 183); /** * 184 */ - NumericValue NUMBER_184 = new FloatValue(CSSUnit.CSS_NUMBER, 184); + NumericValue NUMBER_184 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 184); /** * 185 */ - NumericValue NUMBER_185 = new FloatValue(CSSUnit.CSS_NUMBER, 185); + NumericValue NUMBER_185 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 185); /** * 186 */ - NumericValue NUMBER_186 = new FloatValue(CSSUnit.CSS_NUMBER, 186); + NumericValue NUMBER_186 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 186); /** * 188 */ - NumericValue NUMBER_188 = new FloatValue(CSSUnit.CSS_NUMBER, 188); + NumericValue NUMBER_188 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 188); /** * 189 */ - NumericValue NUMBER_189 = new FloatValue(CSSUnit.CSS_NUMBER, 189); + NumericValue NUMBER_189 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 189); /** * 191 */ - NumericValue NUMBER_191 = new FloatValue(CSSUnit.CSS_NUMBER, 191); + NumericValue NUMBER_191 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 191); /** * 193 */ - NumericValue NUMBER_193 = new FloatValue(CSSUnit.CSS_NUMBER, 193); + NumericValue NUMBER_193 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 193); /** * 196 */ - NumericValue NUMBER_196 = new FloatValue(CSSUnit.CSS_NUMBER, 196); + NumericValue NUMBER_196 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 196); /** * 199 */ - NumericValue NUMBER_199 = new FloatValue(CSSUnit.CSS_NUMBER, 199); + NumericValue NUMBER_199 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 199); /** * 203 */ - NumericValue NUMBER_203 = new FloatValue(CSSUnit.CSS_NUMBER, 203); + NumericValue NUMBER_203 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 203); /** * 204 */ - NumericValue NUMBER_204 = new FloatValue(CSSUnit.CSS_NUMBER, 204); + NumericValue NUMBER_204 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 204); /** * 205 */ - NumericValue NUMBER_205 = new FloatValue(CSSUnit.CSS_NUMBER, 205); + NumericValue NUMBER_205 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 205); /** * 206 */ - NumericValue NUMBER_206 = new FloatValue(CSSUnit.CSS_NUMBER, 206); + NumericValue NUMBER_206 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 206); /** * 208 */ - NumericValue NUMBER_208 = new FloatValue(CSSUnit.CSS_NUMBER, 208); + NumericValue NUMBER_208 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 208); /** * 209 */ - NumericValue NUMBER_209 = new FloatValue(CSSUnit.CSS_NUMBER, 209); + NumericValue NUMBER_209 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 209); /** * 210 */ - NumericValue NUMBER_210 = new FloatValue(CSSUnit.CSS_NUMBER, 210); + NumericValue NUMBER_210 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 210); /** * 211 */ - NumericValue NUMBER_211 = new FloatValue(CSSUnit.CSS_NUMBER, 211); + NumericValue NUMBER_211 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 211); /** * 212 */ - NumericValue NUMBER_212 = new FloatValue(CSSUnit.CSS_NUMBER, 212); + NumericValue NUMBER_212 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 212); /** * 213 */ - NumericValue NUMBER_213 = new FloatValue(CSSUnit.CSS_NUMBER, 213); + NumericValue NUMBER_213 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 213); /** * 214 */ - NumericValue NUMBER_214 = new FloatValue(CSSUnit.CSS_NUMBER, 214); + NumericValue NUMBER_214 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 214); /** * 215 */ - NumericValue NUMBER_215 = new FloatValue(CSSUnit.CSS_NUMBER, 215); + NumericValue NUMBER_215 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 215); /** * 216 */ - NumericValue NUMBER_216 = new FloatValue(CSSUnit.CSS_NUMBER, 216); + NumericValue NUMBER_216 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 216); /** * 218 */ - NumericValue NUMBER_218 = new FloatValue(CSSUnit.CSS_NUMBER, 218); + NumericValue NUMBER_218 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 218); /** * 219 */ - NumericValue NUMBER_219 = new FloatValue(CSSUnit.CSS_NUMBER, 219); + NumericValue NUMBER_219 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 219); /** * 220 */ - NumericValue NUMBER_220 = new FloatValue(CSSUnit.CSS_NUMBER, 220); + NumericValue NUMBER_220 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 220); /** * 221 */ - NumericValue NUMBER_221 = new FloatValue(CSSUnit.CSS_NUMBER, 221); + NumericValue NUMBER_221 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 221); /** * 222 */ - NumericValue NUMBER_222 = new FloatValue(CSSUnit.CSS_NUMBER, 222); + NumericValue NUMBER_222 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 222); /** * 224 */ - NumericValue NUMBER_224 = new FloatValue(CSSUnit.CSS_NUMBER, 224); + NumericValue NUMBER_224 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 224); /** * 225 */ - NumericValue NUMBER_225 = new FloatValue(CSSUnit.CSS_NUMBER, 225); + NumericValue NUMBER_225 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 225); /** * 226 */ - NumericValue NUMBER_226 = new FloatValue(CSSUnit.CSS_NUMBER, 226); + NumericValue NUMBER_226 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 226); /** * 228 */ - NumericValue NUMBER_228 = new FloatValue(CSSUnit.CSS_NUMBER, 228); + NumericValue NUMBER_228 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 228); /** * 230 */ - NumericValue NUMBER_230 = new FloatValue(CSSUnit.CSS_NUMBER, 230); + NumericValue NUMBER_230 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 230); /** * 232 */ - NumericValue NUMBER_232 = new FloatValue(CSSUnit.CSS_NUMBER, 232); + NumericValue NUMBER_232 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 232); /** * 233 */ - NumericValue NUMBER_233 = new FloatValue(CSSUnit.CSS_NUMBER, 233); + NumericValue NUMBER_233 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 233); /** * 235 */ - NumericValue NUMBER_235 = new FloatValue(CSSUnit.CSS_NUMBER, 235); + NumericValue NUMBER_235 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 235); /** * 237 */ - NumericValue NUMBER_237 = new FloatValue(CSSUnit.CSS_NUMBER, 237); + NumericValue NUMBER_237 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 237); /** * 238 */ - NumericValue NUMBER_238 = new FloatValue(CSSUnit.CSS_NUMBER, 238); + NumericValue NUMBER_238 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 238); /** * 239 */ - NumericValue NUMBER_239 = new FloatValue(CSSUnit.CSS_NUMBER, 239); + NumericValue NUMBER_239 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 239); /** * 240 */ - NumericValue NUMBER_240 = new FloatValue(CSSUnit.CSS_NUMBER, 240); + NumericValue NUMBER_240 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 240); /** * 244 */ - NumericValue NUMBER_244 = new FloatValue(CSSUnit.CSS_NUMBER, 244); + NumericValue NUMBER_244 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 244); /** * 245 */ - NumericValue NUMBER_245 = new FloatValue(CSSUnit.CSS_NUMBER, 245); + NumericValue NUMBER_245 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 245); /** * 248 */ - NumericValue NUMBER_248 = new FloatValue(CSSUnit.CSS_NUMBER, 248); + NumericValue NUMBER_248 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 248); /** * 250 */ - NumericValue NUMBER_250 = new FloatValue(CSSUnit.CSS_NUMBER, 250); + NumericValue NUMBER_250 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 250); /** * 251 */ - NumericValue NUMBER_251 = new FloatValue(CSSUnit.CSS_NUMBER, 251); + NumericValue NUMBER_251 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 251); /** * 252 */ - NumericValue NUMBER_252 = new FloatValue(CSSUnit.CSS_NUMBER, 252); + NumericValue NUMBER_252 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 252); /** * 253 */ - NumericValue NUMBER_253 = new FloatValue(CSSUnit.CSS_NUMBER, 253); + NumericValue NUMBER_253 = FloatValue.createConstant(CSSUnit.CSS_NUMBER, 253); /** * The 'accumulate' keyword. */ - Value ACCUMULATE_VALUE = new IdentValue(CSSConstants.CSS_ACCUMULATE_VALUE); + Value ACCUMULATE_VALUE = IdentValue.createConstant(CSSConstants.CSS_ACCUMULATE_VALUE); /** * The 'after-edge' keyword. */ - Value AFTER_EDGE_VALUE = new IdentValue(CSSConstants.CSS_AFTER_EDGE_VALUE); + Value AFTER_EDGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_AFTER_EDGE_VALUE); /** * The 'alphabetic' keyword. */ - Value ALPHABETIC_VALUE = new IdentValue(CSSConstants.CSS_ALPHABETIC_VALUE); + Value ALPHABETIC_VALUE = IdentValue.createConstant(CSSConstants.CSS_ALPHABETIC_VALUE); /** * The 'baseline' keyword. */ - Value BASELINE_VALUE = new IdentValue(CSSConstants.CSS_BASELINE_VALUE); + Value BASELINE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BASELINE_VALUE); /** * The 'before-edge' keyword. */ - Value BEFORE_EDGE_VALUE = new IdentValue(CSSConstants.CSS_BEFORE_EDGE_VALUE); + Value BEFORE_EDGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BEFORE_EDGE_VALUE); /** * The 'bevel' keyword. */ - Value BEVEL_VALUE = new IdentValue(CSSConstants.CSS_BEVEL_VALUE); + Value BEVEL_VALUE = IdentValue.createConstant(CSSConstants.CSS_BEVEL_VALUE); /** * The 'butt' keyword. */ - Value BUTT_VALUE = new IdentValue(CSSConstants.CSS_BUTT_VALUE); + Value BUTT_VALUE = IdentValue.createConstant(CSSConstants.CSS_BUTT_VALUE); /** * The 'central' keyword. */ - Value CENTRAL_VALUE = new IdentValue(CSSConstants.CSS_CENTRAL_VALUE); + Value CENTRAL_VALUE = IdentValue.createConstant(CSSConstants.CSS_CENTRAL_VALUE); /** * The 'currentcolor' keyword. */ - Value CURRENTCOLOR_VALUE = new IdentValue(CSSConstants.CSS_CURRENTCOLOR_VALUE); + Value CURRENTCOLOR_VALUE = IdentValue.createConstant(CSSConstants.CSS_CURRENTCOLOR_VALUE); /** * The 'end' keyword. */ - Value END_VALUE = new IdentValue(CSSConstants.CSS_END_VALUE); + Value END_VALUE = IdentValue.createConstant(CSSConstants.CSS_END_VALUE); /** * The 'evenodd' keyword. */ - Value EVENODD_VALUE = new IdentValue(CSSConstants.CSS_EVENODD_VALUE); + Value EVENODD_VALUE = IdentValue.createConstant(CSSConstants.CSS_EVENODD_VALUE); /** * The 'fill' keyword. */ - Value FILL_VALUE = new IdentValue(CSSConstants.CSS_FILL_VALUE); + Value FILL_VALUE = IdentValue.createConstant(CSSConstants.CSS_FILL_VALUE); /** * The 'fillstroke' keyword. */ - Value FILLSTROKE_VALUE = new IdentValue(CSSConstants.CSS_FILLSTROKE_VALUE); + Value FILLSTROKE_VALUE = IdentValue.createConstant(CSSConstants.CSS_FILLSTROKE_VALUE); /** * The 'geometricprecision' keyword. */ - Value GEOMETRICPRECISION_VALUE = new IdentValue(CSSConstants.CSS_GEOMETRICPRECISION_VALUE); + Value GEOMETRICPRECISION_VALUE = IdentValue.createConstant(CSSConstants.CSS_GEOMETRICPRECISION_VALUE); /** * The 'hanging' keyword. */ - Value HANGING_VALUE = new IdentValue(CSSConstants.CSS_HANGING_VALUE); + Value HANGING_VALUE = IdentValue.createConstant(CSSConstants.CSS_HANGING_VALUE); /** * The 'ideographic' keyword. */ - Value IDEOGRAPHIC_VALUE = new IdentValue(CSSConstants.CSS_IDEOGRAPHIC_VALUE); + Value IDEOGRAPHIC_VALUE = IdentValue.createConstant(CSSConstants.CSS_IDEOGRAPHIC_VALUE); /** * The 'linearRGB' keyword. */ - Value LINEARRGB_VALUE = new IdentValue(CSSConstants.CSS_LINEARRGB_VALUE); + Value LINEARRGB_VALUE = IdentValue.createConstant(CSSConstants.CSS_LINEARRGB_VALUE); /** * The 'lr' keyword. */ - Value LR_VALUE = new IdentValue(CSSConstants.CSS_LR_VALUE); + Value LR_VALUE = IdentValue.createConstant(CSSConstants.CSS_LR_VALUE); /** * The 'lr-tb' keyword. */ - Value LR_TB_VALUE = new IdentValue(CSSConstants.CSS_LR_TB_VALUE); + Value LR_TB_VALUE = IdentValue.createConstant(CSSConstants.CSS_LR_TB_VALUE); /** * The 'mathematical' keyword. */ - Value MATHEMATICAL_VALUE = new IdentValue(CSSConstants.CSS_MATHEMATICAL_VALUE); + Value MATHEMATICAL_VALUE = IdentValue.createConstant(CSSConstants.CSS_MATHEMATICAL_VALUE); /** * The 'middle' keyword. */ - Value MIDDLE_VALUE = new IdentValue(CSSConstants.CSS_MIDDLE_VALUE); + Value MIDDLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MIDDLE_VALUE); /** * The 'new' keyword. */ - Value NEW_VALUE = new IdentValue(CSSConstants.CSS_NEW_VALUE); + Value NEW_VALUE = IdentValue.createConstant(CSSConstants.CSS_NEW_VALUE); /** * The 'miter' keyword. */ - Value MITER_VALUE = new IdentValue(CSSConstants.CSS_MITER_VALUE); + Value MITER_VALUE = IdentValue.createConstant(CSSConstants.CSS_MITER_VALUE); /** * The 'no-change' keyword. */ - Value NO_CHANGE_VALUE = new IdentValue(CSSConstants.CSS_NO_CHANGE_VALUE); + Value NO_CHANGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_NO_CHANGE_VALUE); /** * The 'nonzero' keyword. */ - Value NONZERO_VALUE = new IdentValue(CSSConstants.CSS_NONZERO_VALUE); + Value NONZERO_VALUE = IdentValue.createConstant(CSSConstants.CSS_NONZERO_VALUE); /** * The 'optimizeLegibility' keyword. */ - Value OPTIMIZELEGIBILITY_VALUE = new IdentValue(CSSConstants.CSS_OPTIMIZELEGIBILITY_VALUE); + Value OPTIMIZELEGIBILITY_VALUE = IdentValue.createConstant(CSSConstants.CSS_OPTIMIZELEGIBILITY_VALUE); /** * The 'optimizeQuality' keyword. */ - Value OPTIMIZEQUALITY_VALUE = new IdentValue(CSSConstants.CSS_OPTIMIZEQUALITY_VALUE); + Value OPTIMIZEQUALITY_VALUE = IdentValue.createConstant(CSSConstants.CSS_OPTIMIZEQUALITY_VALUE); /** * The 'optimizeSpeed' keyword. */ - Value OPTIMIZESPEED_VALUE = new IdentValue(CSSConstants.CSS_OPTIMIZESPEED_VALUE); + Value OPTIMIZESPEED_VALUE = IdentValue.createConstant(CSSConstants.CSS_OPTIMIZESPEED_VALUE); /** * The 'reset-size' keyword. */ - Value RESET_SIZE_VALUE = new IdentValue(CSSConstants.CSS_RESET_SIZE_VALUE); + Value RESET_SIZE_VALUE = IdentValue.createConstant(CSSConstants.CSS_RESET_SIZE_VALUE); /** * The 'rl' keyword. */ - Value RL_VALUE = new IdentValue(CSSConstants.CSS_RL_VALUE); + Value RL_VALUE = IdentValue.createConstant(CSSConstants.CSS_RL_VALUE); /** * The 'rl-tb' keyword. */ - Value RL_TB_VALUE = new IdentValue(CSSConstants.CSS_RL_TB_VALUE); + Value RL_TB_VALUE = IdentValue.createConstant(CSSConstants.CSS_RL_TB_VALUE); /** * The 'round' keyword. */ - Value ROUND_VALUE = new IdentValue(CSSConstants.CSS_ROUND_VALUE); + Value ROUND_VALUE = IdentValue.createConstant(CSSConstants.CSS_ROUND_VALUE); /** * The 'square' keyword. */ - Value SQUARE_VALUE = new IdentValue(CSSConstants.CSS_SQUARE_VALUE); + Value SQUARE_VALUE = IdentValue.createConstant(CSSConstants.CSS_SQUARE_VALUE); /** * The 'sRGB' keyword. */ - Value SRGB_VALUE = new IdentValue(CSSConstants.CSS_SRGB_VALUE); + Value SRGB_VALUE = IdentValue.createConstant(CSSConstants.CSS_SRGB_VALUE); /** * The 'start' keyword. */ - Value START_VALUE = new IdentValue(CSSConstants.CSS_START_VALUE); + Value START_VALUE = IdentValue.createConstant(CSSConstants.CSS_START_VALUE); /** * The 'sub' keyword. */ - Value SUB_VALUE = new IdentValue(CSSConstants.CSS_SUB_VALUE); + Value SUB_VALUE = IdentValue.createConstant(CSSConstants.CSS_SUB_VALUE); /** * The 'super' keyword. */ - Value SUPER_VALUE = new IdentValue(CSSConstants.CSS_SUPER_VALUE); + Value SUPER_VALUE = IdentValue.createConstant(CSSConstants.CSS_SUPER_VALUE); /** * The 'tb' keyword. */ - Value TB_VALUE = new IdentValue(CSSConstants.CSS_TB_VALUE); + Value TB_VALUE = IdentValue.createConstant(CSSConstants.CSS_TB_VALUE); /** * The 'tb-rl' keyword. */ - Value TB_RL_VALUE = new IdentValue(CSSConstants.CSS_TB_RL_VALUE); + Value TB_RL_VALUE = IdentValue.createConstant(CSSConstants.CSS_TB_RL_VALUE); /** * The 'text-after-edge' keyword. */ - Value TEXT_AFTER_EDGE_VALUE = new IdentValue(CSSConstants.CSS_TEXT_AFTER_EDGE_VALUE); + Value TEXT_AFTER_EDGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_TEXT_AFTER_EDGE_VALUE); /** * The 'text-before-edge' keyword. */ - Value TEXT_BEFORE_EDGE_VALUE = new IdentValue(CSSConstants.CSS_TEXT_BEFORE_EDGE_VALUE); + Value TEXT_BEFORE_EDGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_TEXT_BEFORE_EDGE_VALUE); /** * The 'text-bottom' keyword. */ - Value TEXT_BOTTOM_VALUE = new IdentValue(CSSConstants.CSS_TEXT_BOTTOM_VALUE); + Value TEXT_BOTTOM_VALUE = IdentValue.createConstant(CSSConstants.CSS_TEXT_BOTTOM_VALUE); /** * The 'text-top' keyword. */ - Value TEXT_TOP_VALUE = new IdentValue(CSSConstants.CSS_TEXT_TOP_VALUE); + Value TEXT_TOP_VALUE = IdentValue.createConstant(CSSConstants.CSS_TEXT_TOP_VALUE); /** * The 'use-script' keyword. */ - Value USE_SCRIPT_VALUE = new IdentValue(CSSConstants.CSS_USE_SCRIPT_VALUE); + Value USE_SCRIPT_VALUE = IdentValue.createConstant(CSSConstants.CSS_USE_SCRIPT_VALUE); /** * The 'visiblefill' keyword. */ - Value VISIBLEFILL_VALUE = new IdentValue(CSSConstants.CSS_VISIBLEFILL_VALUE); + Value VISIBLEFILL_VALUE = IdentValue.createConstant(CSSConstants.CSS_VISIBLEFILL_VALUE); /** * The 'visiblefillstroke' keyword. */ - Value VISIBLEFILLSTROKE_VALUE = new IdentValue(CSSConstants.CSS_VISIBLEFILLSTROKE_VALUE); + Value VISIBLEFILLSTROKE_VALUE = IdentValue.createConstant(CSSConstants.CSS_VISIBLEFILLSTROKE_VALUE); /** * The 'visiblepainted' keyword. */ - Value VISIBLEPAINTED_VALUE = new IdentValue(CSSConstants.CSS_VISIBLEPAINTED_VALUE); + Value VISIBLEPAINTED_VALUE = IdentValue.createConstant(CSSConstants.CSS_VISIBLEPAINTED_VALUE); /** * The 'visiblestroke' keyword. */ - Value VISIBLESTROKE_VALUE = new IdentValue(CSSConstants.CSS_VISIBLESTROKE_VALUE); + Value VISIBLESTROKE_VALUE = IdentValue.createConstant(CSSConstants.CSS_VISIBLESTROKE_VALUE); /** * The 'aliceblue' color name. */ - Value ALICEBLUE_VALUE = new IdentValue(CSSConstants.CSS_ALICEBLUE_VALUE); + Value ALICEBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_ALICEBLUE_VALUE); /** * The 'antiquewhite' color name. */ - Value ANTIQUEWHITE_VALUE = new IdentValue(CSSConstants.CSS_ANTIQUEWHITE_VALUE); + Value ANTIQUEWHITE_VALUE = IdentValue.createConstant(CSSConstants.CSS_ANTIQUEWHITE_VALUE); /** * The 'aquamarine' color name. */ - Value AQUAMARINE_VALUE = new IdentValue(CSSConstants.CSS_AQUAMARINE_VALUE); + Value AQUAMARINE_VALUE = IdentValue.createConstant(CSSConstants.CSS_AQUAMARINE_VALUE); /** * The 'azure' color name. */ - Value AZURE_VALUE = new IdentValue(CSSConstants.CSS_AZURE_VALUE); + Value AZURE_VALUE = IdentValue.createConstant(CSSConstants.CSS_AZURE_VALUE); /** * The 'beige' color name. */ - Value BEIGE_VALUE = new IdentValue(CSSConstants.CSS_BEIGE_VALUE); + Value BEIGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BEIGE_VALUE); /** * The 'bisque' color name. */ - Value BISQUE_VALUE = new IdentValue(CSSConstants.CSS_BISQUE_VALUE); + Value BISQUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_BISQUE_VALUE); /** * The 'blanchedalmond' color name. */ - Value BLANCHEDALMOND_VALUE = new IdentValue(CSSConstants.CSS_BLANCHEDALMOND_VALUE); + Value BLANCHEDALMOND_VALUE = IdentValue.createConstant(CSSConstants.CSS_BLANCHEDALMOND_VALUE); /** * The 'blueviolet' color name. */ - Value BLUEVIOLET_VALUE = new IdentValue(CSSConstants.CSS_BLUEVIOLET_VALUE); + Value BLUEVIOLET_VALUE = IdentValue.createConstant(CSSConstants.CSS_BLUEVIOLET_VALUE); /** * The 'brown' color name. */ - Value BROWN_VALUE = new IdentValue(CSSConstants.CSS_BROWN_VALUE); + Value BROWN_VALUE = IdentValue.createConstant(CSSConstants.CSS_BROWN_VALUE); /** * The 'burlywood' color name. */ - Value BURLYWOOD_VALUE = new IdentValue(CSSConstants.CSS_BURLYWOOD_VALUE); + Value BURLYWOOD_VALUE = IdentValue.createConstant(CSSConstants.CSS_BURLYWOOD_VALUE); /** * The 'cadetblue' color name. */ - Value CADETBLUE_VALUE = new IdentValue(CSSConstants.CSS_CADETBLUE_VALUE); + Value CADETBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_CADETBLUE_VALUE); /** * The 'chartreuse' color name. */ - Value CHARTREUSE_VALUE = new IdentValue(CSSConstants.CSS_CHARTREUSE_VALUE); + Value CHARTREUSE_VALUE = IdentValue.createConstant(CSSConstants.CSS_CHARTREUSE_VALUE); /** * The 'chocolate' color name. */ - Value CHOCOLATE_VALUE = new IdentValue(CSSConstants.CSS_CHOCOLATE_VALUE); + Value CHOCOLATE_VALUE = IdentValue.createConstant(CSSConstants.CSS_CHOCOLATE_VALUE); /** * The 'coral' color name. */ - Value CORAL_VALUE = new IdentValue(CSSConstants.CSS_CORAL_VALUE); + Value CORAL_VALUE = IdentValue.createConstant(CSSConstants.CSS_CORAL_VALUE); /** * The 'cornflowerblue' color name. */ - Value CORNFLOWERBLUE_VALUE = new IdentValue(CSSConstants.CSS_CORNFLOWERBLUE_VALUE); + Value CORNFLOWERBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_CORNFLOWERBLUE_VALUE); /** * The 'cornsilk' color name. */ - Value CORNSILK_VALUE = new IdentValue(CSSConstants.CSS_CORNSILK_VALUE); + Value CORNSILK_VALUE = IdentValue.createConstant(CSSConstants.CSS_CORNSILK_VALUE); /** * The 'crimson' color name. */ - Value CRIMSON_VALUE = new IdentValue(CSSConstants.CSS_CRIMSON_VALUE); + Value CRIMSON_VALUE = IdentValue.createConstant(CSSConstants.CSS_CRIMSON_VALUE); /** * The 'cyan' color name. */ - Value CYAN_VALUE = new IdentValue(CSSConstants.CSS_CYAN_VALUE); + Value CYAN_VALUE = IdentValue.createConstant(CSSConstants.CSS_CYAN_VALUE); /** * The 'darkblue' color name. */ - Value DARKBLUE_VALUE = new IdentValue(CSSConstants.CSS_DARKBLUE_VALUE); + Value DARKBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKBLUE_VALUE); /** * The 'darkcyan' color name. */ - Value DARKCYAN_VALUE = new IdentValue(CSSConstants.CSS_DARKCYAN_VALUE); + Value DARKCYAN_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKCYAN_VALUE); /** * The 'darkgoldenrod' color name. */ - Value DARKGOLDENROD_VALUE = new IdentValue(CSSConstants.CSS_DARKGOLDENROD_VALUE); + Value DARKGOLDENROD_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKGOLDENROD_VALUE); /** * The 'darkgray' color name. */ - Value DARKGRAY_VALUE = new IdentValue(CSSConstants.CSS_DARKGRAY_VALUE); + Value DARKGRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKGRAY_VALUE); /** * The 'darkgreen' color name. */ - Value DARKGREEN_VALUE = new IdentValue(CSSConstants.CSS_DARKGREEN_VALUE); + Value DARKGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKGREEN_VALUE); /** * The 'darkgrey' color name. */ - Value DARKGREY_VALUE = new IdentValue(CSSConstants.CSS_DARKGREY_VALUE); + Value DARKGREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKGREY_VALUE); /** * The 'darkkhaki' color name. */ - Value DARKKHAKI_VALUE = new IdentValue(CSSConstants.CSS_DARKKHAKI_VALUE); + Value DARKKHAKI_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKKHAKI_VALUE); /** * The 'darkmagenta' color name. */ - Value DARKMAGENTA_VALUE = new IdentValue(CSSConstants.CSS_DARKMAGENTA_VALUE); + Value DARKMAGENTA_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKMAGENTA_VALUE); /** * The 'darkolivegreen' color name. */ - Value DARKOLIVEGREEN_VALUE = new IdentValue(CSSConstants.CSS_DARKOLIVEGREEN_VALUE); + Value DARKOLIVEGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKOLIVEGREEN_VALUE); /** * The 'darkorange' color name. */ - Value DARKORANGE_VALUE = new IdentValue(CSSConstants.CSS_DARKORANGE_VALUE); + Value DARKORANGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKORANGE_VALUE); /** * The 'darkorchid' color name. */ - Value DARKORCHID_VALUE = new IdentValue(CSSConstants.CSS_DARKORCHID_VALUE); + Value DARKORCHID_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKORCHID_VALUE); /** * The 'darkred' color name. */ - Value DARKRED_VALUE = new IdentValue(CSSConstants.CSS_DARKRED_VALUE); + Value DARKRED_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKRED_VALUE); /** * The 'darksalmon' color name. */ - Value DARKSALMON_VALUE = new IdentValue(CSSConstants.CSS_DARKSALMON_VALUE); + Value DARKSALMON_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKSALMON_VALUE); /** * The 'darkseagreen' color name. */ - Value DARKSEAGREEN_VALUE = new IdentValue(CSSConstants.CSS_DARKSEAGREEN_VALUE); + Value DARKSEAGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKSEAGREEN_VALUE); /** * The 'darkslateblue' color name. */ - Value DARKSLATEBLUE_VALUE = new IdentValue(CSSConstants.CSS_DARKSLATEBLUE_VALUE); + Value DARKSLATEBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKSLATEBLUE_VALUE); /** * The 'darkslategray' color name. */ - Value DARKSLATEGRAY_VALUE = new IdentValue(CSSConstants.CSS_DARKSLATEGRAY_VALUE); + Value DARKSLATEGRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKSLATEGRAY_VALUE); /** * The 'darkslategrey' color name. */ - Value DARKSLATEGREY_VALUE = new IdentValue(CSSConstants.CSS_DARKSLATEGREY_VALUE); + Value DARKSLATEGREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKSLATEGREY_VALUE); /** * The 'darkturquoise' color name. */ - Value DARKTURQUOISE_VALUE = new IdentValue(CSSConstants.CSS_DARKTURQUOISE_VALUE); + Value DARKTURQUOISE_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKTURQUOISE_VALUE); /** * The 'darkviolet' color name. */ - Value DARKVIOLET_VALUE = new IdentValue(CSSConstants.CSS_DARKVIOLET_VALUE); + Value DARKVIOLET_VALUE = IdentValue.createConstant(CSSConstants.CSS_DARKVIOLET_VALUE); /** * The 'deeppink' color name. */ - Value DEEPPINK_VALUE = new IdentValue(CSSConstants.CSS_DEEPPINK_VALUE); + Value DEEPPINK_VALUE = IdentValue.createConstant(CSSConstants.CSS_DEEPPINK_VALUE); /** * The 'deepskyblue' color name. */ - Value DEEPSKYBLUE_VALUE = new IdentValue(CSSConstants.CSS_DEEPSKYBLUE_VALUE); + Value DEEPSKYBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_DEEPSKYBLUE_VALUE); /** * The 'dimgray' color name. */ - Value DIMGRAY_VALUE = new IdentValue(CSSConstants.CSS_DIMGRAY_VALUE); + Value DIMGRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_DIMGRAY_VALUE); /** * The 'dimgrey' color name. */ - Value DIMGREY_VALUE = new IdentValue(CSSConstants.CSS_DIMGREY_VALUE); + Value DIMGREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_DIMGREY_VALUE); /** * The 'dodgerblue' color name. */ - Value DODGERBLUE_VALUE = new IdentValue(CSSConstants.CSS_DODGERBLUE_VALUE); + Value DODGERBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_DODGERBLUE_VALUE); /** * The 'firebrick' color name. */ - Value FIREBRICK_VALUE = new IdentValue(CSSConstants.CSS_FIREBRICK_VALUE); + Value FIREBRICK_VALUE = IdentValue.createConstant(CSSConstants.CSS_FIREBRICK_VALUE); /** * The 'floralwhite' color name. */ - Value FLORALWHITE_VALUE = new IdentValue(CSSConstants.CSS_FLORALWHITE_VALUE); + Value FLORALWHITE_VALUE = IdentValue.createConstant(CSSConstants.CSS_FLORALWHITE_VALUE); /** * The 'forestgreen' color name. */ - Value FORESTGREEN_VALUE = new IdentValue(CSSConstants.CSS_FORESTGREEN_VALUE); + Value FORESTGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_FORESTGREEN_VALUE); /** * The 'gainsboro' color name. */ - Value GAINSBORO_VALUE = new IdentValue(CSSConstants.CSS_GAINSBORO_VALUE); + Value GAINSBORO_VALUE = IdentValue.createConstant(CSSConstants.CSS_GAINSBORO_VALUE); /** * The 'ghostwhite' color name. */ - Value GHOSTWHITE_VALUE = new IdentValue(CSSConstants.CSS_GHOSTWHITE_VALUE); + Value GHOSTWHITE_VALUE = IdentValue.createConstant(CSSConstants.CSS_GHOSTWHITE_VALUE); /** * The 'gold' color name. */ - Value GOLD_VALUE = new IdentValue(CSSConstants.CSS_GOLD_VALUE); + Value GOLD_VALUE = IdentValue.createConstant(CSSConstants.CSS_GOLD_VALUE); /** * The 'goldenrod' color name. */ - Value GOLDENROD_VALUE = new IdentValue(CSSConstants.CSS_GOLDENROD_VALUE); + Value GOLDENROD_VALUE = IdentValue.createConstant(CSSConstants.CSS_GOLDENROD_VALUE); /** * The 'greenyellow' color name. */ - Value GREENYELLOW_VALUE = new IdentValue(CSSConstants.CSS_GREENYELLOW_VALUE); + Value GREENYELLOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_GREENYELLOW_VALUE); /** * The 'grey' color name. */ - Value GREY_VALUE = new IdentValue(CSSConstants.CSS_GREY_VALUE); + Value GREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_GREY_VALUE); /** * The 'honeydew' color name. */ - Value HONEYDEW_VALUE = new IdentValue(CSSConstants.CSS_HONEYDEW_VALUE); + Value HONEYDEW_VALUE = IdentValue.createConstant(CSSConstants.CSS_HONEYDEW_VALUE); /** * The 'hotpink' color name. */ - Value HOTPINK_VALUE = new IdentValue(CSSConstants.CSS_HOTPINK_VALUE); + Value HOTPINK_VALUE = IdentValue.createConstant(CSSConstants.CSS_HOTPINK_VALUE); /** * The 'indianred' color name. */ - Value INDIANRED_VALUE = new IdentValue(CSSConstants.CSS_INDIANRED_VALUE); + Value INDIANRED_VALUE = IdentValue.createConstant(CSSConstants.CSS_INDIANRED_VALUE); /** * The 'indigo' color name. */ - Value INDIGO_VALUE = new IdentValue(CSSConstants.CSS_INDIGO_VALUE); + Value INDIGO_VALUE = IdentValue.createConstant(CSSConstants.CSS_INDIGO_VALUE); /** * The 'ivory' color name. */ - Value IVORY_VALUE = new IdentValue(CSSConstants.CSS_IVORY_VALUE); + Value IVORY_VALUE = IdentValue.createConstant(CSSConstants.CSS_IVORY_VALUE); /** * The 'khaki' color name. */ - Value KHAKI_VALUE = new IdentValue(CSSConstants.CSS_KHAKI_VALUE); + Value KHAKI_VALUE = IdentValue.createConstant(CSSConstants.CSS_KHAKI_VALUE); /** * The 'lavender' color name. */ - Value LAVENDER_VALUE = new IdentValue(CSSConstants.CSS_LAVENDER_VALUE); + Value LAVENDER_VALUE = IdentValue.createConstant(CSSConstants.CSS_LAVENDER_VALUE); /** * The 'lavenderblush' color name. */ - Value LAVENDERBLUSH_VALUE = new IdentValue(CSSConstants.CSS_LAVENDERBLUSH_VALUE); + Value LAVENDERBLUSH_VALUE = IdentValue.createConstant(CSSConstants.CSS_LAVENDERBLUSH_VALUE); /** * The 'lawngreen' color name. */ - Value LAWNGREEN_VALUE = new IdentValue(CSSConstants.CSS_LAWNGREEN_VALUE); + Value LAWNGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_LAWNGREEN_VALUE); /** * The 'lemonchiffon' color name. */ - Value LEMONCHIFFON_VALUE = new IdentValue(CSSConstants.CSS_LEMONCHIFFON_VALUE); + Value LEMONCHIFFON_VALUE = IdentValue.createConstant(CSSConstants.CSS_LEMONCHIFFON_VALUE); /** * The 'lightblue' color name. */ - Value LIGHTBLUE_VALUE = new IdentValue(CSSConstants.CSS_LIGHTBLUE_VALUE); + Value LIGHTBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTBLUE_VALUE); /** * The 'lightcoral' color name. */ - Value LIGHTCORAL_VALUE = new IdentValue(CSSConstants.CSS_LIGHTCORAL_VALUE); + Value LIGHTCORAL_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTCORAL_VALUE); /** * The 'lightcyan' color name. */ - Value LIGHTCYAN_VALUE = new IdentValue(CSSConstants.CSS_LIGHTCYAN_VALUE); + Value LIGHTCYAN_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTCYAN_VALUE); /** * The 'lightgoldenrodyellow' color name. */ - Value LIGHTGOLDENRODYELLOW_VALUE = new IdentValue(CSSConstants.CSS_LIGHTGOLDENRODYELLOW_VALUE); + Value LIGHTGOLDENRODYELLOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTGOLDENRODYELLOW_VALUE); /** * The 'lightgray' color name. */ - Value LIGHTGRAY_VALUE = new IdentValue(CSSConstants.CSS_LIGHTGRAY_VALUE); + Value LIGHTGRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTGRAY_VALUE); /** * The 'lightgreen' color name. */ - Value LIGHTGREEN_VALUE = new IdentValue(CSSConstants.CSS_LIGHTGREEN_VALUE); + Value LIGHTGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTGREEN_VALUE); /** * The 'lightgrey' color name. */ - Value LIGHTGREY_VALUE = new IdentValue(CSSConstants.CSS_LIGHTGREY_VALUE); + Value LIGHTGREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTGREY_VALUE); /** * The 'lightpink' color name. */ - Value LIGHTPINK_VALUE = new IdentValue(CSSConstants.CSS_LIGHTPINK_VALUE); + Value LIGHTPINK_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTPINK_VALUE); /** * The 'lightsalmon' color name. */ - Value LIGHTSALMON_VALUE = new IdentValue(CSSConstants.CSS_LIGHTSALMON_VALUE); + Value LIGHTSALMON_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTSALMON_VALUE); /** * The 'lightseagreen' color name. */ - Value LIGHTSEAGREEN_VALUE = new IdentValue(CSSConstants.CSS_LIGHTSEAGREEN_VALUE); + Value LIGHTSEAGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTSEAGREEN_VALUE); /** * The 'lightskyblue' color name. */ - Value LIGHTSKYBLUE_VALUE = new IdentValue(CSSConstants.CSS_LIGHTSKYBLUE_VALUE); + Value LIGHTSKYBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTSKYBLUE_VALUE); /** * The 'lightslategray' color name. */ - Value LIGHTSLATEGRAY_VALUE = new IdentValue(CSSConstants.CSS_LIGHTSLATEGRAY_VALUE); + Value LIGHTSLATEGRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTSLATEGRAY_VALUE); /** * The 'lightslategrey' color name. */ - Value LIGHTSLATEGREY_VALUE = new IdentValue(CSSConstants.CSS_LIGHTSLATEGREY_VALUE); + Value LIGHTSLATEGREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTSLATEGREY_VALUE); /** * The 'lightsteelblue' color name. */ - Value LIGHTSTEELBLUE_VALUE = new IdentValue(CSSConstants.CSS_LIGHTSTEELBLUE_VALUE); + Value LIGHTSTEELBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTSTEELBLUE_VALUE); /** * The 'lightyellow' color name. */ - Value LIGHTYELLOW_VALUE = new IdentValue(CSSConstants.CSS_LIGHTYELLOW_VALUE); + Value LIGHTYELLOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIGHTYELLOW_VALUE); /** * The 'limegreen' color name. */ - Value LIMEGREEN_VALUE = new IdentValue(CSSConstants.CSS_LIMEGREEN_VALUE); + Value LIMEGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_LIMEGREEN_VALUE); /** * The 'linen' color name. */ - Value LINEN_VALUE = new IdentValue(CSSConstants.CSS_LINEN_VALUE); + Value LINEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_LINEN_VALUE); /** * The 'magenta' color name. */ - Value MAGENTA_VALUE = new IdentValue(CSSConstants.CSS_MAGENTA_VALUE); + Value MAGENTA_VALUE = IdentValue.createConstant(CSSConstants.CSS_MAGENTA_VALUE); /** * The 'mediumaquamarine' color name. */ - Value MEDIUMAQUAMARINE_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMAQUAMARINE_VALUE); + Value MEDIUMAQUAMARINE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMAQUAMARINE_VALUE); /** * The 'mediumblue' color name. */ - Value MEDIUMBLUE_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMBLUE_VALUE); + Value MEDIUMBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMBLUE_VALUE); /** * The 'mediumorchid' color name. */ - Value MEDIUMORCHID_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMORCHID_VALUE); + Value MEDIUMORCHID_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMORCHID_VALUE); /** * The 'mediumpurple' color name. */ - Value MEDIUMPURPLE_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMPURPLE_VALUE); + Value MEDIUMPURPLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMPURPLE_VALUE); /** * The 'mediumseagreen' color name. */ - Value MEDIUMSEAGREEN_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMSEAGREEN_VALUE); + Value MEDIUMSEAGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMSEAGREEN_VALUE); /** * The 'mediumslateblue' color name. */ - Value MEDIUMSLATEBLUE_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMSLATEBLUE_VALUE); + Value MEDIUMSLATEBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMSLATEBLUE_VALUE); /** * The 'mediumspringgreen' color name. */ - Value MEDIUMSPRINGGREEN_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMSPRINGGREEN_VALUE); + Value MEDIUMSPRINGGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMSPRINGGREEN_VALUE); /** * The 'mediumturquoise' color name. */ - Value MEDIUMTURQUOISE_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMTURQUOISE_VALUE); + Value MEDIUMTURQUOISE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMTURQUOISE_VALUE); /** * The 'mediumvioletred' color name. */ - Value MEDIUMVIOLETRED_VALUE = new IdentValue(CSSConstants.CSS_MEDIUMVIOLETRED_VALUE); + Value MEDIUMVIOLETRED_VALUE = IdentValue.createConstant(CSSConstants.CSS_MEDIUMVIOLETRED_VALUE); /** * The 'midnightblue' color name. */ - Value MIDNIGHTBLUE_VALUE = new IdentValue(CSSConstants.CSS_MIDNIGHTBLUE_VALUE); + Value MIDNIGHTBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MIDNIGHTBLUE_VALUE); /** * The 'mintcream' color name. */ - Value MINTCREAM_VALUE = new IdentValue(CSSConstants.CSS_MINTCREAM_VALUE); + Value MINTCREAM_VALUE = IdentValue.createConstant(CSSConstants.CSS_MINTCREAM_VALUE); /** * The 'mistyrose' color name. */ - Value MISTYROSE_VALUE = new IdentValue(CSSConstants.CSS_MISTYROSE_VALUE); + Value MISTYROSE_VALUE = IdentValue.createConstant(CSSConstants.CSS_MISTYROSE_VALUE); /** * The 'moccasin' color name. */ - Value MOCCASIN_VALUE = new IdentValue(CSSConstants.CSS_MOCCASIN_VALUE); + Value MOCCASIN_VALUE = IdentValue.createConstant(CSSConstants.CSS_MOCCASIN_VALUE); /** * The 'navajowhite' color name. */ - Value NAVAJOWHITE_VALUE = new IdentValue(CSSConstants.CSS_NAVAJOWHITE_VALUE); + Value NAVAJOWHITE_VALUE = IdentValue.createConstant(CSSConstants.CSS_NAVAJOWHITE_VALUE); /** * The 'oldlace' color name. */ - Value OLDLACE_VALUE = new IdentValue(CSSConstants.CSS_OLDLACE_VALUE); + Value OLDLACE_VALUE = IdentValue.createConstant(CSSConstants.CSS_OLDLACE_VALUE); /** * The 'olivedrab' color name. */ - Value OLIVEDRAB_VALUE = new IdentValue(CSSConstants.CSS_OLIVEDRAB_VALUE); + Value OLIVEDRAB_VALUE = IdentValue.createConstant(CSSConstants.CSS_OLIVEDRAB_VALUE); /** * The 'orange' color name. */ - Value ORANGE_VALUE = new IdentValue(CSSConstants.CSS_ORANGE_VALUE); + Value ORANGE_VALUE = IdentValue.createConstant(CSSConstants.CSS_ORANGE_VALUE); /** * The 'orangered' color name. */ - Value ORANGERED_VALUE = new IdentValue(CSSConstants.CSS_ORANGERED_VALUE); + Value ORANGERED_VALUE = IdentValue.createConstant(CSSConstants.CSS_ORANGERED_VALUE); /** * The 'orchid' color name. */ - Value ORCHID_VALUE = new IdentValue(CSSConstants.CSS_ORCHID_VALUE); + Value ORCHID_VALUE = IdentValue.createConstant(CSSConstants.CSS_ORCHID_VALUE); /** * The 'palegoldenrod' color name. */ - Value PALEGOLDENROD_VALUE = new IdentValue(CSSConstants.CSS_PALEGOLDENROD_VALUE); + Value PALEGOLDENROD_VALUE = IdentValue.createConstant(CSSConstants.CSS_PALEGOLDENROD_VALUE); /** * The 'palegreen' color name. */ - Value PALEGREEN_VALUE = new IdentValue(CSSConstants.CSS_PALEGREEN_VALUE); + Value PALEGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_PALEGREEN_VALUE); /** * The 'paleturquoise' color name. */ - Value PALETURQUOISE_VALUE = new IdentValue(CSSConstants.CSS_PALETURQUOISE_VALUE); + Value PALETURQUOISE_VALUE = IdentValue.createConstant(CSSConstants.CSS_PALETURQUOISE_VALUE); /** * The 'palevioletred' color name. */ - Value PALEVIOLETRED_VALUE = new IdentValue(CSSConstants.CSS_PALEVIOLETRED_VALUE); + Value PALEVIOLETRED_VALUE = IdentValue.createConstant(CSSConstants.CSS_PALEVIOLETRED_VALUE); /** * The 'papayawhip' color name. */ - Value PAPAYAWHIP_VALUE = new IdentValue(CSSConstants.CSS_PAPAYAWHIP_VALUE); + Value PAPAYAWHIP_VALUE = IdentValue.createConstant(CSSConstants.CSS_PAPAYAWHIP_VALUE); /** * The 'peachpuff' color name. */ - Value PEACHPUFF_VALUE = new IdentValue(CSSConstants.CSS_PEACHPUFF_VALUE); + Value PEACHPUFF_VALUE = IdentValue.createConstant(CSSConstants.CSS_PEACHPUFF_VALUE); /** * The 'peru' color name. */ - Value PERU_VALUE = new IdentValue(CSSConstants.CSS_PERU_VALUE); + Value PERU_VALUE = IdentValue.createConstant(CSSConstants.CSS_PERU_VALUE); /** * The 'pink' color name. */ - Value PINK_VALUE = new IdentValue(CSSConstants.CSS_PINK_VALUE); + Value PINK_VALUE = IdentValue.createConstant(CSSConstants.CSS_PINK_VALUE); /** * The 'plum' color name. */ - Value PLUM_VALUE = new IdentValue(CSSConstants.CSS_PLUM_VALUE); + Value PLUM_VALUE = IdentValue.createConstant(CSSConstants.CSS_PLUM_VALUE); /** * The 'powderblue' color name. */ - Value POWDERBLUE_VALUE = new IdentValue(CSSConstants.CSS_POWDERBLUE_VALUE); + Value POWDERBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_POWDERBLUE_VALUE); /** * The 'purple' color name. */ - Value PURPLE_VALUE = new IdentValue(CSSConstants.CSS_PURPLE_VALUE); + Value PURPLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_PURPLE_VALUE); /** * The 'rosybrown' color name. */ - Value ROSYBROWN_VALUE = new IdentValue(CSSConstants.CSS_ROSYBROWN_VALUE); + Value ROSYBROWN_VALUE = IdentValue.createConstant(CSSConstants.CSS_ROSYBROWN_VALUE); /** * The 'royalblue' color name. */ - Value ROYALBLUE_VALUE = new IdentValue(CSSConstants.CSS_ROYALBLUE_VALUE); + Value ROYALBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_ROYALBLUE_VALUE); /** * The 'saddlebrown' color name. */ - Value SADDLEBROWN_VALUE = new IdentValue(CSSConstants.CSS_SADDLEBROWN_VALUE); + Value SADDLEBROWN_VALUE = IdentValue.createConstant(CSSConstants.CSS_SADDLEBROWN_VALUE); /** * The 'salmon' color name. */ - Value SALMON_VALUE = new IdentValue(CSSConstants.CSS_SALMON_VALUE); + Value SALMON_VALUE = IdentValue.createConstant(CSSConstants.CSS_SALMON_VALUE); /** * The 'sandybrown' color name. */ - Value SANDYBROWN_VALUE = new IdentValue(CSSConstants.CSS_SANDYBROWN_VALUE); + Value SANDYBROWN_VALUE = IdentValue.createConstant(CSSConstants.CSS_SANDYBROWN_VALUE); /** * The 'seagreen' color name. */ - Value SEAGREEN_VALUE = new IdentValue(CSSConstants.CSS_SEAGREEN_VALUE); + Value SEAGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_SEAGREEN_VALUE); /** * The 'seashell' color name. */ - Value SEASHELL_VALUE = new IdentValue(CSSConstants.CSS_SEASHELL_VALUE); + Value SEASHELL_VALUE = IdentValue.createConstant(CSSConstants.CSS_SEASHELL_VALUE); /** * The 'sienna' color name. */ - Value SIENNA_VALUE = new IdentValue(CSSConstants.CSS_SIENNA_VALUE); + Value SIENNA_VALUE = IdentValue.createConstant(CSSConstants.CSS_SIENNA_VALUE); /** * The 'skyblue' color name. */ - Value SKYBLUE_VALUE = new IdentValue(CSSConstants.CSS_SKYBLUE_VALUE); + Value SKYBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_SKYBLUE_VALUE); /** * The 'slateblue' color name. */ - Value SLATEBLUE_VALUE = new IdentValue(CSSConstants.CSS_SLATEBLUE_VALUE); + Value SLATEBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_SLATEBLUE_VALUE); /** * The 'slategray' color name. */ - Value SLATEGRAY_VALUE = new IdentValue(CSSConstants.CSS_SLATEGRAY_VALUE); + Value SLATEGRAY_VALUE = IdentValue.createConstant(CSSConstants.CSS_SLATEGRAY_VALUE); /** * The 'slategrey' color name. */ - Value SLATEGREY_VALUE = new IdentValue(CSSConstants.CSS_SLATEGREY_VALUE); + Value SLATEGREY_VALUE = IdentValue.createConstant(CSSConstants.CSS_SLATEGREY_VALUE); /** * The 'snow' color name. */ - Value SNOW_VALUE = new IdentValue(CSSConstants.CSS_SNOW_VALUE); + Value SNOW_VALUE = IdentValue.createConstant(CSSConstants.CSS_SNOW_VALUE); /** * The 'springgreen' color name. */ - Value SPRINGGREEN_VALUE = new IdentValue(CSSConstants.CSS_SPRINGGREEN_VALUE); + Value SPRINGGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_SPRINGGREEN_VALUE); /** * The 'steelblue' color name. */ - Value STEELBLUE_VALUE = new IdentValue(CSSConstants.CSS_STEELBLUE_VALUE); + Value STEELBLUE_VALUE = IdentValue.createConstant(CSSConstants.CSS_STEELBLUE_VALUE); /** * The 'tan' color name. */ - Value TAN_VALUE = new IdentValue(CSSConstants.CSS_TAN_VALUE); + Value TAN_VALUE = IdentValue.createConstant(CSSConstants.CSS_TAN_VALUE); /** * The 'thistle' color name. */ - Value THISTLE_VALUE = new IdentValue(CSSConstants.CSS_THISTLE_VALUE); + Value THISTLE_VALUE = IdentValue.createConstant(CSSConstants.CSS_THISTLE_VALUE); /** * The 'tomato' color name. */ - Value TOMATO_VALUE = new IdentValue(CSSConstants.CSS_TOMATO_VALUE); + Value TOMATO_VALUE = IdentValue.createConstant(CSSConstants.CSS_TOMATO_VALUE); /** * The 'turquoise' color name. */ - Value TURQUOISE_VALUE = new IdentValue(CSSConstants.CSS_TURQUOISE_VALUE); + Value TURQUOISE_VALUE = IdentValue.createConstant(CSSConstants.CSS_TURQUOISE_VALUE); /** * The 'violet' color name. */ - Value VIOLET_VALUE = new IdentValue(CSSConstants.CSS_VIOLET_VALUE); + Value VIOLET_VALUE = IdentValue.createConstant(CSSConstants.CSS_VIOLET_VALUE); /** * The 'wheat' color name. */ - Value WHEAT_VALUE = new IdentValue(CSSConstants.CSS_WHEAT_VALUE); + Value WHEAT_VALUE = IdentValue.createConstant(CSSConstants.CSS_WHEAT_VALUE); /** * The 'whitesmoke' color name. */ - Value WHITESMOKE_VALUE = new IdentValue(CSSConstants.CSS_WHITESMOKE_VALUE); + Value WHITESMOKE_VALUE = IdentValue.createConstant(CSSConstants.CSS_WHITESMOKE_VALUE); /** * The 'yellowgreen' color name. */ - Value YELLOWGREEN_VALUE = new IdentValue(CSSConstants.CSS_YELLOWGREEN_VALUE); + Value YELLOWGREEN_VALUE = IdentValue.createConstant(CSSConstants.CSS_YELLOWGREEN_VALUE); /** * The 'aliceblue' RGB color. */ - Value ALICEBLUE_RGB_VALUE = new RGBColorValue(NUMBER_240, NUMBER_248, NUMBER_255); + Value ALICEBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_240, NUMBER_248, NUMBER_255); /** * The 'antiquewhite' RGB color. */ - Value ANTIQUEWHITE_RGB_VALUE = new RGBColorValue(NUMBER_250, NUMBER_235, NUMBER_215); + Value ANTIQUEWHITE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_250, NUMBER_235, NUMBER_215); /** * The 'aquamarine' RGB color. */ - Value AQUAMARINE_RGB_VALUE = new RGBColorValue(NUMBER_127, NUMBER_255, NUMBER_212); + Value AQUAMARINE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_127, NUMBER_255, NUMBER_212); /** * The 'azure' RGB color. */ - Value AZURE_RGB_VALUE = new RGBColorValue(NUMBER_240, NUMBER_255, NUMBER_255); + Value AZURE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_240, NUMBER_255, NUMBER_255); /** * The 'beige' RGB color. */ - Value BEIGE_RGB_VALUE = new RGBColorValue(NUMBER_245, NUMBER_245, NUMBER_220); + Value BEIGE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_245, NUMBER_245, NUMBER_220); /** * The 'bisque' RGB color. */ - Value BISQUE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_228, NUMBER_196); + Value BISQUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_228, NUMBER_196); /** * The 'blanchedalmond' RGB color. */ - Value BLANCHEDALMOND_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_235, NUMBER_205); + Value BLANCHEDALMOND_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_235, NUMBER_205); /** * The 'blueviolet' RGB color. */ - Value BLUEVIOLET_RGB_VALUE = new RGBColorValue(NUMBER_138, NUMBER_43, NUMBER_226); + Value BLUEVIOLET_RGB_VALUE = RGBColorValue.createConstant(NUMBER_138, NUMBER_43, NUMBER_226); /** * The 'brown' RGB color. */ - Value BROWN_RGB_VALUE = new RGBColorValue(NUMBER_165, NUMBER_42, NUMBER_42); + Value BROWN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_165, NUMBER_42, NUMBER_42); /** * The 'burlywood' RGB color. */ - Value BURLYWOOD_RGB_VALUE = new RGBColorValue(NUMBER_222, NUMBER_184, NUMBER_135); + Value BURLYWOOD_RGB_VALUE = RGBColorValue.createConstant(NUMBER_222, NUMBER_184, NUMBER_135); /** * The 'cadetblue' RGB color. */ - Value CADETBLUE_RGB_VALUE = new RGBColorValue(NUMBER_95, NUMBER_158, NUMBER_160); + Value CADETBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_95, NUMBER_158, NUMBER_160); /** * The 'chartreuse' RGB color. */ - Value CHARTREUSE_RGB_VALUE = new RGBColorValue(NUMBER_127, NUMBER_255, NUMBER_0); + Value CHARTREUSE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_127, NUMBER_255, NUMBER_0); /** * The 'chocolate' RGB color. */ - Value CHOCOLATE_RGB_VALUE = new RGBColorValue(NUMBER_210, NUMBER_105, NUMBER_30); + Value CHOCOLATE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_210, NUMBER_105, NUMBER_30); /** * The 'coral' RGB color. */ - Value CORAL_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_127, NUMBER_80); + Value CORAL_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_127, NUMBER_80); /** * The 'cornflowerblue' RGB color. */ - Value CORNFLOWERBLUE_RGB_VALUE = new RGBColorValue(NUMBER_100, NUMBER_149, NUMBER_237); + Value CORNFLOWERBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_100, NUMBER_149, NUMBER_237); /** * The 'cornsilk' RGB color. */ - Value CORNSILK_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_248, NUMBER_220); + Value CORNSILK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_248, NUMBER_220); /** * The 'crimson' RGB color. */ - Value CRIMSON_RGB_VALUE = new RGBColorValue(NUMBER_220, NUMBER_20, NUMBER_60); + Value CRIMSON_RGB_VALUE = RGBColorValue.createConstant(NUMBER_220, NUMBER_20, NUMBER_60); /** * The 'cyan' RGB color. */ - Value CYAN_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_255, NUMBER_255); + Value CYAN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_255, NUMBER_255); /** * The 'darkblue' RGB color. */ - Value DARKBLUE_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_0, NUMBER_139); + Value DARKBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_0, NUMBER_139); /** * The 'darkcyan' RGB color. */ - Value DARKCYAN_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_139, NUMBER_139); + Value DARKCYAN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_139, NUMBER_139); /** * The 'darkgoldenrod' RGB color. */ - Value DARKGOLDENROD_RGB_VALUE = new RGBColorValue(NUMBER_184, NUMBER_134, NUMBER_11); + Value DARKGOLDENROD_RGB_VALUE = RGBColorValue.createConstant(NUMBER_184, NUMBER_134, NUMBER_11); /** * The 'darkgray' RGB color. */ - Value DARKGRAY_RGB_VALUE = new RGBColorValue(NUMBER_169, NUMBER_169, NUMBER_169); + Value DARKGRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_169, NUMBER_169, NUMBER_169); /** * The 'darkgreen' RGB color. */ - Value DARKGREEN_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_100, NUMBER_0); + Value DARKGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_100, NUMBER_0); /** * The 'darkgrey' RGB color. */ - Value DARKGREY_RGB_VALUE = new RGBColorValue(NUMBER_169, NUMBER_169, NUMBER_169); + Value DARKGREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_169, NUMBER_169, NUMBER_169); /** * The 'darkkhaki' RGB color. */ - Value DARKKHAKI_RGB_VALUE = new RGBColorValue(NUMBER_189, NUMBER_183, NUMBER_107); + Value DARKKHAKI_RGB_VALUE = RGBColorValue.createConstant(NUMBER_189, NUMBER_183, NUMBER_107); /** * The 'darkmagenta' RGB color. */ - Value DARKMAGENTA_RGB_VALUE = new RGBColorValue(NUMBER_139, NUMBER_0, NUMBER_139); + Value DARKMAGENTA_RGB_VALUE = RGBColorValue.createConstant(NUMBER_139, NUMBER_0, NUMBER_139); /** * The 'darkolivegreen' RGB color. */ - Value DARKOLIVEGREEN_RGB_VALUE = new RGBColorValue(NUMBER_85, NUMBER_107, NUMBER_47); + Value DARKOLIVEGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_85, NUMBER_107, NUMBER_47); /** * The 'darkorange' RGB color. */ - Value DARKORANGE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_140, NUMBER_0); + Value DARKORANGE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_140, NUMBER_0); /** * The 'darkorchid' RGB color. */ - Value DARKORCHID_RGB_VALUE = new RGBColorValue(NUMBER_153, NUMBER_50, NUMBER_204); + Value DARKORCHID_RGB_VALUE = RGBColorValue.createConstant(NUMBER_153, NUMBER_50, NUMBER_204); /** * The 'darkred' RGB color. */ - Value DARKRED_RGB_VALUE = new RGBColorValue(NUMBER_139, NUMBER_0, NUMBER_0); + Value DARKRED_RGB_VALUE = RGBColorValue.createConstant(NUMBER_139, NUMBER_0, NUMBER_0); /** * The 'darksalmon' RGB color. */ - Value DARKSALMON_RGB_VALUE = new RGBColorValue(NUMBER_233, NUMBER_150, NUMBER_122); + Value DARKSALMON_RGB_VALUE = RGBColorValue.createConstant(NUMBER_233, NUMBER_150, NUMBER_122); /** * The 'darkseagreen' RGB color. */ - Value DARKSEAGREEN_RGB_VALUE = new RGBColorValue(NUMBER_143, NUMBER_188, NUMBER_143); + Value DARKSEAGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_143, NUMBER_188, NUMBER_143); /** * The 'darkslateblue' RGB color. */ - Value DARKSLATEBLUE_RGB_VALUE = new RGBColorValue(NUMBER_72, NUMBER_61, NUMBER_139); + Value DARKSLATEBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_72, NUMBER_61, NUMBER_139); /** * The 'darkslategray' RGB color. */ - Value DARKSLATEGRAY_RGB_VALUE = new RGBColorValue(NUMBER_47, NUMBER_79, NUMBER_79); + Value DARKSLATEGRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_47, NUMBER_79, NUMBER_79); /** * The 'darkslategrey' RGB color. */ - Value DARKSLATEGREY_RGB_VALUE = new RGBColorValue(NUMBER_47, NUMBER_79, NUMBER_79); + Value DARKSLATEGREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_47, NUMBER_79, NUMBER_79); /** * The 'darkturquoise' RGB color. */ - Value DARKTURQUOISE_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_206, NUMBER_209); + Value DARKTURQUOISE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_206, NUMBER_209); /** * The 'darkviolet' RGB color. */ - Value DARKVIOLET_RGB_VALUE = new RGBColorValue(NUMBER_148, NUMBER_0, NUMBER_211); + Value DARKVIOLET_RGB_VALUE = RGBColorValue.createConstant(NUMBER_148, NUMBER_0, NUMBER_211); /** * The 'deeppink' RGB color. */ - Value DEEPPINK_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_20, NUMBER_147); + Value DEEPPINK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_20, NUMBER_147); /** * The 'deepskyblue' RGB color. */ - Value DEEPSKYBLUE_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_191, NUMBER_255); + Value DEEPSKYBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_191, NUMBER_255); /** * The 'dimgray' RGB color. */ - Value DIMGRAY_RGB_VALUE = new RGBColorValue(NUMBER_105, NUMBER_105, NUMBER_105); + Value DIMGRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_105, NUMBER_105, NUMBER_105); /** * The 'dimgrey' RGB color. */ - Value DIMGREY_RGB_VALUE = new RGBColorValue(NUMBER_105, NUMBER_105, NUMBER_105); + Value DIMGREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_105, NUMBER_105, NUMBER_105); /** * The 'dodgerblue' RGB color. */ - Value DODGERBLUE_RGB_VALUE = new RGBColorValue(NUMBER_30, NUMBER_144, NUMBER_255); + Value DODGERBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_30, NUMBER_144, NUMBER_255); /** * The 'firebrick' RGB color. */ - Value FIREBRICK_RGB_VALUE = new RGBColorValue(NUMBER_178, NUMBER_34, NUMBER_34); + Value FIREBRICK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_178, NUMBER_34, NUMBER_34); /** * The 'floralwhite' RGB color. */ - Value FLORALWHITE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_250, NUMBER_240); + Value FLORALWHITE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_250, NUMBER_240); /** * The 'forestgreen' RGB color. */ - Value FORESTGREEN_RGB_VALUE = new RGBColorValue(NUMBER_34, NUMBER_139, NUMBER_34); + Value FORESTGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_34, NUMBER_139, NUMBER_34); /** * The 'gainsboro' RGB color. */ - Value GAINSBORO_RGB_VALUE = new RGBColorValue(NUMBER_220, NUMBER_200, NUMBER_200); + Value GAINSBORO_RGB_VALUE = RGBColorValue.createConstant(NUMBER_220, NUMBER_200, NUMBER_200); /** * The 'ghostwhite' RGB color. */ - Value GHOSTWHITE_RGB_VALUE = new RGBColorValue(NUMBER_248, NUMBER_248, NUMBER_255); + Value GHOSTWHITE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_248, NUMBER_248, NUMBER_255); /** * The 'gold' RGB color. */ - Value GOLD_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_215, NUMBER_0); + Value GOLD_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_215, NUMBER_0); /** * The 'goldenrod' RGB color. */ - Value GOLDENROD_RGB_VALUE = new RGBColorValue(NUMBER_218, NUMBER_165, NUMBER_32); + Value GOLDENROD_RGB_VALUE = RGBColorValue.createConstant(NUMBER_218, NUMBER_165, NUMBER_32); /** * The 'grey' RGB color. */ - Value GREY_RGB_VALUE = new RGBColorValue(NUMBER_128, NUMBER_128, NUMBER_128); + Value GREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_128, NUMBER_128, NUMBER_128); /** * The 'greenyellow' RGB color. */ - Value GREENYELLOW_RGB_VALUE = new RGBColorValue(NUMBER_173, NUMBER_255, NUMBER_47); + Value GREENYELLOW_RGB_VALUE = RGBColorValue.createConstant(NUMBER_173, NUMBER_255, NUMBER_47); /** * The 'honeydew' RGB color. */ - Value HONEYDEW_RGB_VALUE = new RGBColorValue(NUMBER_240, NUMBER_255, NUMBER_240); + Value HONEYDEW_RGB_VALUE = RGBColorValue.createConstant(NUMBER_240, NUMBER_255, NUMBER_240); /** * The 'hotpink' RGB color. */ - Value HOTPINK_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_105, NUMBER_180); + Value HOTPINK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_105, NUMBER_180); /** * The 'indianred' RGB color. */ - Value INDIANRED_RGB_VALUE = new RGBColorValue(NUMBER_205, NUMBER_92, NUMBER_92); + Value INDIANRED_RGB_VALUE = RGBColorValue.createConstant(NUMBER_205, NUMBER_92, NUMBER_92); /** * The 'indigo' RGB color. */ - Value INDIGO_RGB_VALUE = new RGBColorValue(NUMBER_75, NUMBER_0, NUMBER_130); + Value INDIGO_RGB_VALUE = RGBColorValue.createConstant(NUMBER_75, NUMBER_0, NUMBER_130); /** * The 'ivory' RGB color. */ - Value IVORY_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_255, NUMBER_240); + Value IVORY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_255, NUMBER_240); /** * The 'khaki' RGB color. */ - Value KHAKI_RGB_VALUE = new RGBColorValue(NUMBER_240, NUMBER_230, NUMBER_140); + Value KHAKI_RGB_VALUE = RGBColorValue.createConstant(NUMBER_240, NUMBER_230, NUMBER_140); /** * The 'lavender' RGB color. */ - Value LAVENDER_RGB_VALUE = new RGBColorValue(NUMBER_230, NUMBER_230, NUMBER_250); + Value LAVENDER_RGB_VALUE = RGBColorValue.createConstant(NUMBER_230, NUMBER_230, NUMBER_250); /** * The 'lavenderblush' RGB color. */ - Value LAVENDERBLUSH_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_240, NUMBER_255); + Value LAVENDERBLUSH_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_240, NUMBER_255); /** * The 'lawngreen' RGB color. */ - Value LAWNGREEN_RGB_VALUE = new RGBColorValue(NUMBER_124, NUMBER_252, NUMBER_0); + Value LAWNGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_124, NUMBER_252, NUMBER_0); /** * The 'lemonchiffon' RGB color. */ - Value LEMONCHIFFON_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_250, NUMBER_205); + Value LEMONCHIFFON_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_250, NUMBER_205); /** * The 'lightblue' RGB color. */ - Value LIGHTBLUE_RGB_VALUE = new RGBColorValue(NUMBER_173, NUMBER_216, NUMBER_230); + Value LIGHTBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_173, NUMBER_216, NUMBER_230); /** * The 'lightcoral' RGB color. */ - Value LIGHTCORAL_RGB_VALUE = new RGBColorValue(NUMBER_240, NUMBER_128, NUMBER_128); + Value LIGHTCORAL_RGB_VALUE = RGBColorValue.createConstant(NUMBER_240, NUMBER_128, NUMBER_128); /** * The 'lightcyan' RGB color. */ - Value LIGHTCYAN_RGB_VALUE = new RGBColorValue(NUMBER_224, NUMBER_255, NUMBER_255); + Value LIGHTCYAN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_224, NUMBER_255, NUMBER_255); /** * The 'lightgoldenrodyellow' RGB color. */ - Value LIGHTGOLDENRODYELLOW_RGB_VALUE = new RGBColorValue(NUMBER_250, NUMBER_250, NUMBER_210); + Value LIGHTGOLDENRODYELLOW_RGB_VALUE = RGBColorValue.createConstant(NUMBER_250, NUMBER_250, NUMBER_210); /** * The 'lightgray' RGB color. */ - Value LIGHTGRAY_RGB_VALUE = new RGBColorValue(NUMBER_211, NUMBER_211, NUMBER_211); + Value LIGHTGRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_211, NUMBER_211, NUMBER_211); /** * The 'lightgreen' RGB color. */ - Value LIGHTGREEN_RGB_VALUE = new RGBColorValue(NUMBER_144, NUMBER_238, NUMBER_144); + Value LIGHTGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_144, NUMBER_238, NUMBER_144); /** * The 'lightgrey' RGB color. */ - Value LIGHTGREY_RGB_VALUE = new RGBColorValue(NUMBER_211, NUMBER_211, NUMBER_211); + Value LIGHTGREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_211, NUMBER_211, NUMBER_211); /** * The 'lightpink' RGB color. */ - Value LIGHTPINK_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_182, NUMBER_193); + Value LIGHTPINK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_182, NUMBER_193); /** * The 'lightsalmon' RGB color. */ - Value LIGHTSALMON_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_160, NUMBER_122); + Value LIGHTSALMON_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_160, NUMBER_122); /** * The 'lightseagreen' RGB color. */ - Value LIGHTSEAGREEN_RGB_VALUE = new RGBColorValue(NUMBER_32, NUMBER_178, NUMBER_170); + Value LIGHTSEAGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_32, NUMBER_178, NUMBER_170); /** * The 'lightskyblue' RGB color. */ - Value LIGHTSKYBLUE_RGB_VALUE = new RGBColorValue(NUMBER_135, NUMBER_206, NUMBER_250); + Value LIGHTSKYBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_135, NUMBER_206, NUMBER_250); /** * The 'lightslategray' RGB color. */ - Value LIGHTSLATEGRAY_RGB_VALUE = new RGBColorValue(NUMBER_119, NUMBER_136, NUMBER_153); + Value LIGHTSLATEGRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_119, NUMBER_136, NUMBER_153); /** * The 'lightslategrey' RGB color. */ - Value LIGHTSLATEGREY_RGB_VALUE = new RGBColorValue(NUMBER_119, NUMBER_136, NUMBER_153); + Value LIGHTSLATEGREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_119, NUMBER_136, NUMBER_153); /** * The 'lightsteelblue' RGB color. */ - Value LIGHTSTEELBLUE_RGB_VALUE = new RGBColorValue(NUMBER_176, NUMBER_196, NUMBER_222); + Value LIGHTSTEELBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_176, NUMBER_196, NUMBER_222); /** * The 'lightyellow' RGB color. */ - Value LIGHTYELLOW_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_255, NUMBER_224); + Value LIGHTYELLOW_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_255, NUMBER_224); /** * The 'limegreen' RGB color. */ - Value LIMEGREEN_RGB_VALUE = new RGBColorValue(NUMBER_50, NUMBER_205, NUMBER_50); + Value LIMEGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_50, NUMBER_205, NUMBER_50); /** * The 'linen' RGB color. */ - Value LINEN_RGB_VALUE = new RGBColorValue(NUMBER_250, NUMBER_240, NUMBER_230); + Value LINEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_250, NUMBER_240, NUMBER_230); /** * The 'magenta' RGB color. */ - Value MAGENTA_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_0, NUMBER_255); + Value MAGENTA_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_0, NUMBER_255); /** * The 'mediumaquamarine' RGB color. */ - Value MEDIUMAQUAMARINE_RGB_VALUE = new RGBColorValue(NUMBER_102, NUMBER_205, NUMBER_170); + Value MEDIUMAQUAMARINE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_102, NUMBER_205, NUMBER_170); /** * The 'mediumblue' RGB color. */ - Value MEDIUMBLUE_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_0, NUMBER_205); + Value MEDIUMBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_0, NUMBER_205); /** * The 'mediumorchid' RGB color. */ - Value MEDIUMORCHID_RGB_VALUE = new RGBColorValue(NUMBER_186, NUMBER_85, NUMBER_211); + Value MEDIUMORCHID_RGB_VALUE = RGBColorValue.createConstant(NUMBER_186, NUMBER_85, NUMBER_211); /** * The 'mediumpurple' RGB color. */ - Value MEDIUMPURPLE_RGB_VALUE = new RGBColorValue(NUMBER_147, NUMBER_112, NUMBER_219); + Value MEDIUMPURPLE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_147, NUMBER_112, NUMBER_219); /** * The 'mediumseagreen' RGB color. */ - Value MEDIUMSEAGREEN_RGB_VALUE = new RGBColorValue(NUMBER_60, NUMBER_179, NUMBER_113); + Value MEDIUMSEAGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_60, NUMBER_179, NUMBER_113); /** * The 'mediumslateblue' RGB color. */ - Value MEDIUMSLATEBLUE_RGB_VALUE = new RGBColorValue(NUMBER_123, NUMBER_104, NUMBER_238); + Value MEDIUMSLATEBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_123, NUMBER_104, NUMBER_238); /** * The 'mediumspringgreen' RGB color. */ - Value MEDIUMSPRINGGREEN_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_250, NUMBER_154); + Value MEDIUMSPRINGGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_250, NUMBER_154); /** * The 'mediumturquoise' RGB color. */ - Value MEDIUMTURQUOISE_RGB_VALUE = new RGBColorValue(NUMBER_72, NUMBER_209, NUMBER_204); + Value MEDIUMTURQUOISE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_72, NUMBER_209, NUMBER_204); /** * The 'mediumvioletred' RGB color. */ - Value MEDIUMVIOLETRED_RGB_VALUE = new RGBColorValue(NUMBER_199, NUMBER_21, NUMBER_133); + Value MEDIUMVIOLETRED_RGB_VALUE = RGBColorValue.createConstant(NUMBER_199, NUMBER_21, NUMBER_133); /** * The 'midnightblue' RGB color. */ - Value MIDNIGHTBLUE_RGB_VALUE = new RGBColorValue(NUMBER_25, NUMBER_25, NUMBER_112); + Value MIDNIGHTBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_25, NUMBER_25, NUMBER_112); /** * The 'mintcream' RGB color. */ - Value MINTCREAM_RGB_VALUE = new RGBColorValue(NUMBER_245, NUMBER_255, NUMBER_250); + Value MINTCREAM_RGB_VALUE = RGBColorValue.createConstant(NUMBER_245, NUMBER_255, NUMBER_250); /** * The 'mistyrose' RGB color. */ - Value MISTYROSE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_228, NUMBER_225); + Value MISTYROSE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_228, NUMBER_225); /** * The 'moccasin' RGB color. */ - Value MOCCASIN_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_228, NUMBER_181); + Value MOCCASIN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_228, NUMBER_181); /** * The 'navajowhite' RGB color. */ - Value NAVAJOWHITE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_222, NUMBER_173); + Value NAVAJOWHITE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_222, NUMBER_173); /** * The 'oldlace' RGB color. */ - Value OLDLACE_RGB_VALUE = new RGBColorValue(NUMBER_253, NUMBER_245, NUMBER_230); + Value OLDLACE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_253, NUMBER_245, NUMBER_230); /** * The 'olivedrab' RGB color. */ - Value OLIVEDRAB_RGB_VALUE = new RGBColorValue(NUMBER_107, NUMBER_142, NUMBER_35); + Value OLIVEDRAB_RGB_VALUE = RGBColorValue.createConstant(NUMBER_107, NUMBER_142, NUMBER_35); /** * The 'orange' RGB color. */ - Value ORANGE_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_165, NUMBER_0); + Value ORANGE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_165, NUMBER_0); /** * The 'orangered' RGB color. */ - Value ORANGERED_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_69, NUMBER_0); + Value ORANGERED_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_69, NUMBER_0); /** * The 'orchid' RGB color. */ - Value ORCHID_RGB_VALUE = new RGBColorValue(NUMBER_218, NUMBER_112, NUMBER_214); + Value ORCHID_RGB_VALUE = RGBColorValue.createConstant(NUMBER_218, NUMBER_112, NUMBER_214); /** * The 'palegoldenrod' RGB color. */ - Value PALEGOLDENROD_RGB_VALUE = new RGBColorValue(NUMBER_238, NUMBER_232, NUMBER_170); + Value PALEGOLDENROD_RGB_VALUE = RGBColorValue.createConstant(NUMBER_238, NUMBER_232, NUMBER_170); /** * The 'palegreen' RGB color. */ - Value PALEGREEN_RGB_VALUE = new RGBColorValue(NUMBER_152, NUMBER_251, NUMBER_152); + Value PALEGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_152, NUMBER_251, NUMBER_152); /** * The 'paleturquoise' RGB color. */ - Value PALETURQUOISE_RGB_VALUE = new RGBColorValue(NUMBER_175, NUMBER_238, NUMBER_238); + Value PALETURQUOISE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_175, NUMBER_238, NUMBER_238); /** * The 'palevioletred' RGB color. */ - Value PALEVIOLETRED_RGB_VALUE = new RGBColorValue(NUMBER_219, NUMBER_112, NUMBER_147); + Value PALEVIOLETRED_RGB_VALUE = RGBColorValue.createConstant(NUMBER_219, NUMBER_112, NUMBER_147); /** * The 'papayawhip' RGB color. */ - Value PAPAYAWHIP_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_239, NUMBER_213); + Value PAPAYAWHIP_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_239, NUMBER_213); /** * The 'peachpuff' RGB color. */ - Value PEACHPUFF_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_218, NUMBER_185); + Value PEACHPUFF_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_218, NUMBER_185); /** * The 'peru' RGB color. */ - Value PERU_RGB_VALUE = new RGBColorValue(NUMBER_205, NUMBER_133, NUMBER_63); + Value PERU_RGB_VALUE = RGBColorValue.createConstant(NUMBER_205, NUMBER_133, NUMBER_63); /** * The 'pink' RGB color. */ - Value PINK_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_192, NUMBER_203); + Value PINK_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_192, NUMBER_203); /** * The 'plum' RGB color. */ - Value PLUM_RGB_VALUE = new RGBColorValue(NUMBER_221, NUMBER_160, NUMBER_221); + Value PLUM_RGB_VALUE = RGBColorValue.createConstant(NUMBER_221, NUMBER_160, NUMBER_221); /** * The 'powderblue' RGB color. */ - Value POWDERBLUE_RGB_VALUE = new RGBColorValue(NUMBER_176, NUMBER_224, NUMBER_230); + Value POWDERBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_176, NUMBER_224, NUMBER_230); /** * The 'rosybrown' RGB color. */ - Value ROSYBROWN_RGB_VALUE = new RGBColorValue(NUMBER_188, NUMBER_143, NUMBER_143); + Value ROSYBROWN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_188, NUMBER_143, NUMBER_143); /** * The 'royalblue' RGB color. */ - Value ROYALBLUE_RGB_VALUE = new RGBColorValue(NUMBER_65, NUMBER_105, NUMBER_225); + Value ROYALBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_65, NUMBER_105, NUMBER_225); /** * The 'saddlebrown' RGB color. */ - Value SADDLEBROWN_RGB_VALUE = new RGBColorValue(NUMBER_139, NUMBER_69, NUMBER_19); + Value SADDLEBROWN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_139, NUMBER_69, NUMBER_19); /** * The 'salmon' RGB color. */ - Value SALMON_RGB_VALUE = new RGBColorValue(NUMBER_250, NUMBER_69, NUMBER_114); + Value SALMON_RGB_VALUE = RGBColorValue.createConstant(NUMBER_250, NUMBER_69, NUMBER_114); /** * The 'sandybrown' RGB color. */ - Value SANDYBROWN_RGB_VALUE = new RGBColorValue(NUMBER_244, NUMBER_164, NUMBER_96); + Value SANDYBROWN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_244, NUMBER_164, NUMBER_96); /** * The 'seagreen' RGB color. */ - Value SEAGREEN_RGB_VALUE = new RGBColorValue(NUMBER_46, NUMBER_139, NUMBER_87); + Value SEAGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_46, NUMBER_139, NUMBER_87); /** * The 'seashell' RGB color. */ - Value SEASHELL_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_245, NUMBER_238); + Value SEASHELL_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_245, NUMBER_238); /** * The 'sienna' RGB color. */ - Value SIENNA_RGB_VALUE = new RGBColorValue(NUMBER_160, NUMBER_82, NUMBER_45); + Value SIENNA_RGB_VALUE = RGBColorValue.createConstant(NUMBER_160, NUMBER_82, NUMBER_45); /** * The 'skyblue' RGB color. */ - Value SKYBLUE_RGB_VALUE = new RGBColorValue(NUMBER_135, NUMBER_206, NUMBER_235); + Value SKYBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_135, NUMBER_206, NUMBER_235); /** * The 'slateblue' RGB color. */ - Value SLATEBLUE_RGB_VALUE = new RGBColorValue(NUMBER_106, NUMBER_90, NUMBER_205); + Value SLATEBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_106, NUMBER_90, NUMBER_205); /** * The 'slategray' RGB color. */ - Value SLATEGRAY_RGB_VALUE = new RGBColorValue(NUMBER_112, NUMBER_128, NUMBER_144); + Value SLATEGRAY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_112, NUMBER_128, NUMBER_144); /** * The 'slategrey' RGB color. */ - Value SLATEGREY_RGB_VALUE = new RGBColorValue(NUMBER_112, NUMBER_128, NUMBER_144); + Value SLATEGREY_RGB_VALUE = RGBColorValue.createConstant(NUMBER_112, NUMBER_128, NUMBER_144); /** * The 'snow' RGB color. */ - Value SNOW_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_250, NUMBER_250); + Value SNOW_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_250, NUMBER_250); /** * The 'springgreen' RGB color. */ - Value SPRINGGREEN_RGB_VALUE = new RGBColorValue(NUMBER_0, NUMBER_255, NUMBER_127); + Value SPRINGGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_0, NUMBER_255, NUMBER_127); /** * The 'steelblue' RGB color. */ - Value STEELBLUE_RGB_VALUE = new RGBColorValue(NUMBER_70, NUMBER_130, NUMBER_180); + Value STEELBLUE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_70, NUMBER_130, NUMBER_180); /** * The 'tan' RGB color. */ - Value TAN_RGB_VALUE = new RGBColorValue(NUMBER_210, NUMBER_180, NUMBER_140); + Value TAN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_210, NUMBER_180, NUMBER_140); /** * The 'thistle' RGB color. */ - Value THISTLE_RGB_VALUE = new RGBColorValue(NUMBER_216, NUMBER_91, NUMBER_216); + Value THISTLE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_216, NUMBER_91, NUMBER_216); /** * The 'tomato' RGB color. */ - Value TOMATO_RGB_VALUE = new RGBColorValue(NUMBER_255, NUMBER_99, NUMBER_71); + Value TOMATO_RGB_VALUE = RGBColorValue.createConstant(NUMBER_255, NUMBER_99, NUMBER_71); /** * The 'turquoise' RGB color. */ - Value TURQUOISE_RGB_VALUE = new RGBColorValue(NUMBER_64, NUMBER_224, NUMBER_208); + Value TURQUOISE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_64, NUMBER_224, NUMBER_208); /** * The 'violet' RGB color. */ - Value VIOLET_RGB_VALUE = new RGBColorValue(NUMBER_238, NUMBER_130, NUMBER_238); + Value VIOLET_RGB_VALUE = RGBColorValue.createConstant(NUMBER_238, NUMBER_130, NUMBER_238); /** * The 'wheat' RGB color. */ - Value WHEAT_RGB_VALUE = new RGBColorValue(NUMBER_245, NUMBER_222, NUMBER_179); + Value WHEAT_RGB_VALUE = RGBColorValue.createConstant(NUMBER_245, NUMBER_222, NUMBER_179); /** * The 'whitesmoke' RGB color. */ - Value WHITESMOKE_RGB_VALUE = new RGBColorValue(NUMBER_245, NUMBER_245, NUMBER_245); + Value WHITESMOKE_RGB_VALUE = RGBColorValue.createConstant(NUMBER_245, NUMBER_245, NUMBER_245); /** * The 'yellowgreen' RGB color. */ - Value YELLOWGREEN_RGB_VALUE = new RGBColorValue(NUMBER_154, NUMBER_205, NUMBER_50); + Value YELLOWGREEN_RGB_VALUE = RGBColorValue.createConstant(NUMBER_154, NUMBER_205, NUMBER_50); } diff --git a/echosvg-css/src/test/java/io/sf/carte/echosvg/css/engine/value/PropertyManagerTest.java b/echosvg-css/src/test/java/io/sf/carte/echosvg/css/engine/value/PropertyManagerTest.java index 44936ff55..46d6ce9e0 100644 --- a/echosvg-css/src/test/java/io/sf/carte/echosvg/css/engine/value/PropertyManagerTest.java +++ b/echosvg-css/src/test/java/io/sf/carte/echosvg/css/engine/value/PropertyManagerTest.java @@ -324,7 +324,8 @@ void testPropertyManager(String managerClassName, Boolean isInherited, String de // test default value if any if (!defaultValue.equals("__USER_AGENT__")) { String s = manager.getDefaultValue().getCssText(); - assertTrue(defaultValue.equalsIgnoreCase(s)); + assertTrue(defaultValue.equalsIgnoreCase(s), + "Expected '" + defaultValue + "', found '" + s + '\''); } // test if the property is inherited or not diff --git a/samples/tests/spec/scripting/domSVGColor.svg b/samples/tests/spec/scripting/domSVGColor.svg index 126e4ebd7..077ce8f69 100644 --- a/samples/tests/spec/scripting/domSVGColor.svg +++ b/samples/tests/spec/scripting/domSVGColor.svg @@ -79,7 +79,7 @@ showFill("r4", ".a"); fill = showFill("r5", ".b"); - r = fill.getR(); r.setValue("128"); + r = fill.getR(); r.setValue(".50196"); fill.setAlpha(0.95); showFill("r5", ".a"); @@ -96,7 +96,7 @@ showFill("r8", ".a"); fill = showFill("r9", ".b"); - b = fill.getB(); b.setValue("50"); + b = fill.getB(); b.setValue(".1961"); showFill("r9", ".a"); fill = showFill("r10", ".b");