Package org.jfree.layouting.input.style.values

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


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

    CSSColorValue htmlColors = parseColorFromClass(name, HtmlColors.class);
    if (htmlColors != null)
    {
      return htmlColors;
    }
    CSSColorValue svgColors = parseColorFromClass(name, SVGColors.class);
    if (svgColors != null)
    {
      return svgColors;
    }
    CSSColorValue systemColors = parseColorFromClass(name,
            CSSSystemColors.class);
    if (systemColors != null)
    {
      return systemColors;
    }
View Full Code Here

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

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

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

  {
    final ConverterAttributeSet attr = new ConverterAttributeSet();

    if(colorConstant == StyleConstants.Foreground)
    {
      final CSSColorValue cssColorValue = new CSSColorValue((Color) value);
      attr.addAttribute(ColorStyleKeys.COLOR.getName(), cssColorValue);
    }
    else if(colorConstant == StyleConstants.Background)
    {
      final CSSColorValue cssColorValue = new CSSColorValue((Color) value);
      attr.addAttribute(BorderStyleKeys.BACKGROUND_COLOR.getName(), cssColorValue);
    }
    else
    {
      Log.debug(new Log.SimpleMessage("Unkown type of color attribute", colorConstant));
View Full Code Here

TOP

Related Classes of org.jfree.layouting.input.style.values.CSSColorValue

Copyright © 2018 www.massapicom. 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.