Examples of CSSColorValue


Examples of org.jfree.layouting.input.style.values.CSSColorValue

    public void updateStyle(final String uri,
            final String attrName,
            final String attrValue,
            final CSSDeclarationRule targetRule)
    {
        final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
        if (cv != null)
        {
            targetRule.setPropertyValue(BorderStyleKeys.BACKGROUND_COLOR, cv);
        }
    }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

  public void updateStyle (final String uri,
                           final String attrName,
                           final String attrValue,
                           final CSSDeclarationRule targetRule)
  {
    final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
    if (cv != null)
    {
      targetRule.setPropertyValue(TextStyleKeys.TEXT_UNDERLINE_COLOR, cv);
    }
  }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    }

    public void updateStyle(final String uri, final String attrName, final String attrValue,
            final CSSDeclarationRule targetRule)
    {
        final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
        if (cv != null)
        {
            targetRule.setPropertyValue(ColorStyleKeys.COLOR, cv);
        }
    }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    public void updateStyle(final String uri,
            final String attrName,
            final String attrValue,
            final CSSDeclarationRule targetRule)
    {
        final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
        if (cv != null)
        {
            targetRule.setPropertyValue(BorderStyleKeys.BACKGROUND_COLOR, cv);
        }
    }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    public void updateStyle(final String uri,
            final String attrName,
            final String attrValue,
            final CSSDeclarationRule targetRule)
    {
        final CSSColorValue cv = (CSSColorValue) ColorUtil.parseColor(attrValue);
        if (cv != null)
        {
            targetRule.setPropertyValue(TextStyleKeys.TEXT_UNDERLINE_COLOR, cv);
        }
    }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    return RenderLength.EMPTY;
  }

  public CSSColorValue getColor()
  {
    return new CSSColorValue(0,0,0,255);
  }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    {
      // This should not happen ..
      return color.getCSSText();
    }

    final CSSColorValue colorValue = (CSSColorValue) color;
    if (colorValue.getAlpha() == 0)
    {
      return null;
    }

    try
    {
      final Field[] fields = HtmlColors.class.getFields();
      for (int i = 0; i < fields.length; i++)
      {
        final Field f = fields[i];
        if (Modifier.isPublic(f.getModifiers())
            && Modifier.isFinal(f.getModifiers())
            && Modifier.isStatic(f.getModifiers()))
        {
          final String name = f.getName();
          final Object oColor = f.get(null);
          if (oColor instanceof Color)
          {
            if (color.equals(oColor))
            {
              return name.toLowerCase();
            }
          }
        }
      }
    }
    catch (Exception e)
    {
      //
    }

    return colorValue.getCSSText();
  }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    if (fontSpecification.isItalic() || fontSpecification.isOblique())
    {
      style |= Font.ITALIC;
    }

    final CSSColorValue cssColor = (CSSColorValue)
            layoutContext.getValue(ColorStyleKeys.COLOR);

    g2.setColor(cssColor);
    g2.setFont(new Font(fontSpecification.getFontFamily(), style, (int) fontSpecification.getFontSize()));
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

                colorSpec.charAt(2) + colorSpec.charAt(2) +
                colorSpec.charAt(3) + colorSpec.charAt(3);

      }
      final Integer decoded = Integer.decode(colorSpec);
      return new CSSColorValue(decoded.intValue(), false);
    }
    catch(Exception e)
    {
      return null;
    }
View Full Code Here

Examples of org.jfree.layouting.input.style.values.CSSColorValue

    if (CSSSystemColors.CURRENT_COLOR.getCSSText().equalsIgnoreCase(name))
    {
      return CSSSystemColors.CURRENT_COLOR;
    }

    final CSSColorValue htmlColors = parseColorFromClass(name, HtmlColors.class);
    if (htmlColors != null)
    {
      return htmlColors;
    }
    final CSSColorValue svgColors = parseColorFromClass(name, SVGColors.class);
    if (svgColors != null)
    {
      return svgColors;
    }
    final CSSColorValue systemColors = parseColorFromClass(name,
            CSSSystemColors.class);
    if (systemColors != null)
    {
      return systemColors;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.