Examples of CSSValueList


Examples of com.adobe.dp.css.CSSValueList

    this.styles = styles;
  }

  private String[] parseFamily(Object family) {
    if (family instanceof CSSValueList) {
      CSSValueList list = (CSSValueList) family;
      int len = list.getSeparator() == ',' ? list.length() : 1;
      String[] result = new String[len];
      for (int i = 0; i < len; i++) {
        CSSValue v = list.getSeparator() == ',' ? list.item(i) : list;
        result[i] = v.toString();
      }
      return result;
    } else if ((family instanceof CSSQuotedString) || (family instanceof CSSName)) {
      String[] result = { family.toString() };
View Full Code Here

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

        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
        {
            final CSSValueList list = (CSSValueList) value;
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    CSSValueList.insertLast(list, value));
        }
    }
View Full Code Here

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

        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
        {
            final CSSValueList list = (CSSValueList) value;
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    CSSValueList.insertFirst(list, value));
        }
    }
View Full Code Here

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

        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
        {
            final CSSValueList list = (CSSValueList) value;
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    CSSValueList.insertLast(list, value));
        }
    }
View Full Code Here

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

        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
        {
            final CSSValueList list = (CSSValueList) value;
            targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
                    CSSValueList.insertFirst(list, value));
        }
    }
View Full Code Here

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

    {
      return false;
    }
    if (value instanceof CSSValueList)
    {
      final CSSValueList list = (CSSValueList) value;
      if (list.getLength() == 0)
      {
        return false;
      }
      for (int i = 0; i < list.getLength(); i++)
      {
        final CSSValue val = list.getItem(i);
        if (val instanceof ContentsToken)
        {
          return true;
        }
      }
View Full Code Here

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

      return attrFunction.evaluate
              (getLayoutProcess(), element, (CSSFunctionValue) value);
    }
    else if (value instanceof CSSValueList)
    {
      final CSSValueList list = (CSSValueList) value;
      final ArrayList retValus = new ArrayList();
      final int length = list.getLength();
      for (int i = 0; i < length; i++)
      {
        final CSSValue item = list.getItem(i);
        retValus.add(resolveValue(item, element));
      }
      return new CSSValueList(retValus);
    }
    else if (value instanceof CSSValuePair)
    {
      final CSSValuePair pair = (CSSValuePair) value;
      return new CSSValuePair
View Full Code Here

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

      return true;
    }

    if (value instanceof CSSValueList)
    {
      final CSSValueList list = (CSSValueList) value;
      final int length = list.getLength();
      for (int i = 0; i < length; i++)
      {
        final CSSValue item = list.getItem(i);
        if (containsAttrFunction(item))
        {
          return true;
        }
      }
View Full Code Here

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

    if (value instanceof CSSValueList == false)
    {
      return; // do nothing.
    }

    final CSSValueList valueList = (CSSValueList) value;
    for (int i = 0; i < valueList.getLength(); i++)
    {
      final CSSValue item = valueList.getItem(i);
      if (item instanceof CSSValuePair == false)
      {
        continue;
      }
      final CSSValuePair counter = (CSSValuePair) item;
View Full Code Here

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

  private CSSValueList createList (final CSSValue first,
                                   final CSSValue second,
                                   final CSSValue third)
  {
    return new CSSValueList(new CSSValue[]{first, second, third});
  }
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.