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

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


            final CSSDeclarationRule targetRule)
    {
        final CSSValue value = targetRule.getPropertyCSSValue(FontStyleKeys.FONT_FAMILY);
        if (!(value instanceof CSSValueList))
        {
            final CSSStringValue cssVal = new CSSStringValue(CSSStringType.STRING, attrValue);
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    new CSSValueList(new CSSValue[]{cssVal}));
        }
        else
        {
View Full Code Here


            final CSSDeclarationRule targetRule)
    {
        final CSSValue value = targetRule.getPropertyCSSValue(FontStyleKeys.FONT_FAMILY);
        if (!(value instanceof CSSValueList))
        {
            final CSSStringValue cssVal = new CSSStringValue(CSSStringType.STRING, attrValue);
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    new CSSValueList(new CSSValue[]{cssVal}));
        }
        else
        {
View Full Code Here

  public void updateStyle (final String uri, final String attrName, final String attrValue,
                           final CSSDeclarationRule targetRule)
  {
    targetRule.setPropertyValue(FontStyleKeys.FONT_NAME,
            new CSSStringValue(CSSStringType.STRING, attrValue));
  }
View Full Code Here

    public void updateStyle(final String uri, final String attrName, final String attrValue,
            final CSSDeclarationRule targetRule)
    {
        targetRule.setPropertyValue(FontStyleKeys.FONT_NAME,
                new CSSStringValue(CSSStringType.STRING, attrValue));
    }
View Full Code Here

            final CSSDeclarationRule targetRule)
    {
        final CSSValue value = targetRule.getPropertyCSSValue(FontStyleKeys.FONT_FAMILY);
        if (!(value instanceof CSSValueList))
        {
            final CSSStringValue cssVal = new CSSStringValue(CSSStringType.STRING, attrValue);
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    new CSSValueList(new CSSValue[]
                    {
                        cssVal
                    }));
View Full Code Here

            final CSSDeclarationRule targetRule)
    {
        final CSSValue value = targetRule.getPropertyCSSValue(FontStyleKeys.FONT_FAMILY);
        if (!(value instanceof CSSValueList))
        {
            final CSSStringValue cssVal = new CSSStringValue(CSSStringType.STRING, attrValue);
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    new CSSValueList(new CSSValue[]
                    {
                        cssVal
                    }));
View Full Code Here

      {
        target = null;
      }
      else if (value instanceof CSSStringValue)
      {
        final CSSStringValue sval = (CSSStringValue) value;
        target = sval.getValue();
      }
      else
      {
        target = value.getCSSText();
      }
View Full Code Here


    final double number;
    if (rawValue instanceof CSSStringValue)
    {
      final CSSStringValue strVal = (CSSStringValue) rawValue;
      try
      {
        final CSSNumericValue nval = FunctionUtilities.parseNumberValue(strVal.getValue());
        number = nval.getValue();
      }
      catch(FunctionEvaluationException fee)
      {
        return new StaticTextToken (strVal.getValue());
      }
    }
    else if (rawValue instanceof CSSNumericValue)
    {
      final CSSNumericValue nval = (CSSNumericValue) rawValue;
View Full Code Here

    if (value instanceof CSSStringValue == false)
    {
      throw new FunctionEvaluationException
              ("Not even remotely an URI: " + value);
    }
    final CSSStringValue strval = (CSSStringValue) value;
    final CSSResourceValue cssResourceValue =
            FunctionUtilities.loadResource(layoutProcess, strval.getValue());
    final Resource resource = cssResourceValue.getValue();
    return new ResourceContentToken(resource);
  }
View Full Code Here

    if (formatValue instanceof CSSStringValue == false)
    {
      return localizationContext.getDateFormat(locale);
    }

    final CSSStringValue sval = (CSSStringValue) formatValue;
    final DateFormat format = localizationContext.getDateFormat
            (sval.getValue(), locale);
    if (format != null)
    {
      return format;
    }
    return localizationContext.getDateFormat(locale);
View Full Code Here

TOP

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

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.