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

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


  protected boolean resolveItem(final LayoutProcess process,
                                final LayoutElement currentNode,
                                final StyleKey key, final int index,
                                final CSSConstant item)
  {
    final CSSConstant bvalue = (CSSConstant) lookupValue(item);
    final BackgroundSpecification backgroundSpecification =
            currentNode.getLayoutContext().getBackgroundSpecification();
    backgroundSpecification.setBackgroundAttachment(index, bvalue);
    return true;
  }
View Full Code Here


    if (width != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant style;
    if (unit != null)
    {
      style = (CSSConstant) lookupValue(unit);
      if (style != null)
      {
View Full Code Here

        implements CSSCompoundValueReadHandler
{
  public TextDecorationReadHandler()
  {
    super(false);
    addValue(new CSSConstant("none"));
    addValue(new CSSConstant("underline"));
    addValue(new CSSConstant("overline"));
    addValue(new CSSConstant("line-through"));
    addValue(new CSSConstant("blink"));
  }
View Full Code Here

        map.put(TextStyleKeys.TEXT_LINE_THROUGH_STYLE, TextDecorationStyle.NONE);
        return map;
      }
      if ("blink".equals(constant.getCSSText()))
      {
        map.put(TextStyleKeys.TEXT_BLINK, new CSSConstant("blink"));
      }
      else if ("underline".equals(constant.getCSSText()))
      {
        map.put(TextStyleKeys.TEXT_UNDERLINE_STYLE, TextDecorationStyle.SOLID);
      }
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();
      counterSpecs.add(new CSSConstant(identifier));
    }

    return new CSSValueList(counterSpecs);

  }
View Full Code Here

  protected boolean resolveItem(final LayoutProcess process,
                                final LayoutElement currentNode,
                                final StyleKey key, final int index,
                                final CSSConstant item)
  {
    final CSSConstant bvalue = (CSSConstant) lookupValue(item);
    final BackgroundSpecification backgroundSpecification =
            currentNode.getLayoutContext().getBackgroundSpecification();
    backgroundSpecification.setBackgroundOrigin(index, bvalue);
    return true;
  }
View Full Code Here

    if (width != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant style;
    if (unit != null)
    {
      style = (CSSConstant) lookupValue(unit);
      if (style != null)
      {
View Full Code Here

      {
        return null;
      }
      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

    {
      // this is a sub-string alignment.
      return;
    }

    final CSSConstant alignValue =
            (CSSConstant) resolveValue(process, currentNode, key);
    layoutContext.setValue(TextStyleKeys.TEXT_ALIGN, alignValue);
  }
View Full Code Here

    if (width != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant style;
    if (unit != null)
    {
      style = (CSSConstant) lookupValue(unit);
      if (style != null)
      {
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.