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

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


    final CSSValue value = layoutContext.getValue(PageStyleKeys.SIZE);

    String name = null;
    if (value instanceof CSSStringValue)
    {
      final CSSStringValue sval = (CSSStringValue) value;
      name = sval.getValue();
    }
    else if (value instanceof CSSConstant)
    {
      name = value.toString();
    }
View Full Code Here


        // the 'footnote' counter in its 'content' property then the computed
        // value of 'move-to' is 'footnotes'.
        if (isCounterUsed(currentNode.getParent(), "footnote"))
        {
          layoutContext.setValue(ContentStyleKeys.MOVE_TO,
              new CSSStringValue(CSSStringType.STRING, "footnotes"));
          return;
        }

        // For '::alternate' pseudo-elements, if the superior parent uses
        // the 'endnote' counter in its 'content' property then the computed
        // value of 'move-to' is 'endnotes'.
        if (isCounterUsed(currentNode.getParent(), "endnote"))
        {
          layoutContext.setValue(ContentStyleKeys.MOVE_TO,
              new CSSStringValue(CSSStringType.STRING, "endnotes"));
          return;
        }

        // For '::alternate' pseudo-elements, if the superior parent uses
        // the 'section-note' counter in its 'content' property then the
        // computed value of 'move-to' is 'section-notes'.
        if (isCounterUsed(currentNode.getParent(), "section-note"))
        {
          layoutContext.setValue(ContentStyleKeys.MOVE_TO,
              new CSSStringValue(CSSStringType.STRING, "section-notes"));
          return;
        }
      }
      layoutContext.setValue(ContentStyleKeys.MOVE_TO, MoveToValues.HERE);
    }
View Full Code Here

    {
      final CSSValue item = list.getItem(i);

      if (CSSValueResolverUtility.isURI(item))
      {
        final CSSStringValue svalue = (CSSStringValue) item;
        try
        {
          final ResourceKey sourceURL = process.getResourceManager().deriveKey
                  (baseURL, svalue.getValue());
          // todo: We have to rethink the image feeding ..
//          backgroundSpecification.setBackgroundImage
//                  (i, new URLLayoutImageData(sourceURL, svalue.getValue()));
        }
        catch (ResourceKeyCreationException e)
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

            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

            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

            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

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.