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

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


      values.add(new CSSValuePair(horizontal, vertical));
      value = CSSValueFactory.parseComma(value);
    }

    return new CSSValueList(values);
  }
View Full Code Here


      {
        return null;
      }
      if (value.getStringValue().equalsIgnoreCase("hanging"))
      {
        return new CSSValueList (new CSSValue[]{cssvalue, new CSSConstant("hanging")});
      }
      else
      {
        return null;
      }
    }

    return new CSSValueList (new CSSValue[]{cssvalue});
  }
View Full Code Here

    final CSSValue value = targetRule.getPropertyCSSValue(FontStyleKeys.FONT_FAMILY);
    if (value instanceof CSSValueList == false)
    {
      targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
            new CSSValueList(new CSSValue[]{ cssVal }));
    }
    else
    {
      CSSValueList list = (CSSValueList) value;
      targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
            CSSValueList.insertLast(list, value));
    }
  }
View Full Code Here

    final CSSValue value = targetRule.getPropertyCSSValue(FontStyleKeys.FONT_FAMILY);
    if (value instanceof CSSValueList == false)
    {
      targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
            new CSSValueList(new CSSValue[]{ cssVal }));
    }
    else
    {
      CSSValueList list = (CSSValueList) value;
      targetRule.setPropertyValue(FontStyleKeys.FONT_FAMILY,
            CSSValueList.insertFirst(list, value));
    }
  }
View Full Code Here

      final String identifier = value.getStringValue();
      value = value.getNextLexicalUnit();
      counterSpecs.add(new CSSConstant(identifier));
    }

    return new CSSValueList(counterSpecs);

  }
View Full Code Here

      else if (value.getLexicalUnitType() == LexicalUnit.SAC_OPERATOR_COMMA)
      {
        final CSSValue[] values =
                (CSSValue[]) contentList.toArray(
                        new CSSValue[contentList.size()]);
        final CSSValueList sequence = new CSSValueList(values);
        contents.add(sequence);
      }
      value = value.getNextLexicalUnit();
    }

    final CSSValue[] values =
            (CSSValue[]) contentList.toArray(new CSSValue[contentList.size()]);
    final CSSValueList sequence = new CSSValueList(values);
    contents.add(sequence);
    return new CSSValueList(contents);
  }
View Full Code Here

      else if (value.getLexicalUnitType() == LexicalUnit.SAC_OPERATOR_COMMA)
      {
        final CSSValue[] values =
                (CSSValue[]) contentList.toArray(
                        new CSSValue[contentList.size()]);
        contents.add(new CSSValueList(values));
        contentList.clear();
      }
      value = value.getNextLexicalUnit();
    }

    final CSSValue[] values =
            (CSSValue[]) contentList.toArray(new CSSValue[contentList.size()]);
    contents.add(new CSSValueList(values));
    return new CSSValueList(contents);
  }
View Full Code Here

      }
      counterSpecs.add(new CSSValuePair
              (new CSSConstant(identifier), counterValue));
    }

    return new CSSValueList(counterSpecs);
  }
View Full Code Here

      else if (value.getLexicalUnitType() == LexicalUnit.SAC_OPERATOR_COMMA)
      {
        final CSSValue[] values =
                (CSSValue[]) contentList.toArray(
                        new CSSValue[contentList.size()]);
        final CSSValueList sequence = new CSSValueList(values);
        contents.add(sequence);
      }
      value = value.getNextLexicalUnit();
    }

    final CSSValue[] values =
            (CSSValue[]) contentList.toArray(new CSSValue[contentList.size()]);
    final CSSValueList sequence = new CSSValueList(values);
    contents.add(sequence);
    return new CSSValueList(contents);
  }
View Full Code Here

    {
      return; // cant handle that one
    }

    final ArrayList tokens = new ArrayList();
    final CSSValueList list = (CSSValueList) value;
    final int size = list.getLength();
    for (int i = 0; i < size; i++)
    {
      final CSSValueList sequence = (CSSValueList) list.getItem(i);
      for (int j = 0; j < sequence.getLength(); j++)
      {
        final CSSValue content = sequence.getItem(j);
        final ContentToken token = createToken(process, element, content);
        if (token == null)
        {
          // ok, a failure. Skip to the next content spec ...
          tokens.clear();
View Full Code Here

TOP

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

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.