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

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


  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
    {
      if ("none".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant("none");
      }
      return null;
    }
    return super.createValue(name, value);
  }
View Full Code Here


  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
    {
      if ("none".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant ("none");
      }
      return null;
    }

    // todo
View Full Code Here

    if (value.getLexicalUnitType() != LexicalUnit.SAC_IDENT)
    {
      return null;
    }
    return new CSSConstant(value.getStringValue());
  }
View Full Code Here

      return null;
    }
    final String mayBeNone = value.getStringValue();
    if ("none".equalsIgnoreCase(mayBeNone))
    {
      return new CSSConstant("none");
    }

    final ArrayList counterSpecs = new ArrayList();
    while (value != null)
    {
      if (value.getLexicalUnitType() != LexicalUnit.SAC_IDENT)
      {
        return null;
      }
      final String identifier = value.getStringValue();
      value = value.getNextLexicalUnit();
      CSSValue counterValue = ZERO;
      if (value != null)
      {
        if (value.getLexicalUnitType() == LexicalUnit.SAC_INTEGER)
        {
          counterValue = CSSNumericValue.createValue
                  (CSSNumericType.NUMBER, value.getIntegerValue());
          value = value.getNextLexicalUnit();
        }
        else if (value.getLexicalUnitType() == LexicalUnit.SAC_ATTR)
        {
          counterValue = CSSValueFactory.parseAttrFunction(value);
          value = value.getNextLexicalUnit();
        }
        else if (CSSValueFactory.isFunctionValue(value))
        {
          counterValue = CSSValueFactory.parseFunction(value);
          value = value.getNextLexicalUnit();
        }
      }
      counterSpecs.add(new CSSValuePair
              (new CSSConstant(identifier), counterValue));
    }

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

public class HyphenateReadHandler extends OneOfConstantsReadHandler
{
  public HyphenateReadHandler()
  {
    super(true);
    addValue(new CSSConstant("none"));
  }
View Full Code Here

      for (int i = 0; i < list.getLength(); i++)
      {
        final CSSValue item = list.getItem(i);
        if (item instanceof CSSConstant)
        {
          final CSSConstant c = (CSSConstant) lookupValue((CSSConstant) item);
          final FontFamily family = outputMetaData.getFontFamilyForGenericName(c);
          fs.setFontFamily(family.getFamilyName());
          if (process.getOutputMetaData().isValid(fs))
          {
            return;
View Full Code Here

        }
        contentList.add(o);
      }
      else if (value.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
      {
        contentList.add(new CSSConstant(value.getStringValue()));
      }
      else if (value.getLexicalUnitType() == LexicalUnit.SAC_URI)
      {
        final CSSStringValue uriValue = CSSValueFactory.createUriValue(value);
        if (uriValue == null)
View Full Code Here

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

    if ("auto".equalsIgnoreCase(ident))
    {
      return CSSAutoValue.getInstance();
    }

    return new CSSConstant(ident);
  }
View Full Code Here

  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
    {
      if ("none".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant("none");
      }
      if ("all".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant("all");
      }
      return null;
    }
    else if (value.getLexicalUnitType() == LexicalUnit.SAC_INTEGER)
    {
View Full Code Here

TOP

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

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.