Examples of CSSConstant


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

    final ArrayList contentList = new ArrayList();
    while (parameters != null)
    {
      if (parameters.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
      {
        contentList.add(new CSSConstant(parameters.getStringValue()));
      }
      else if (parameters.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
      {
        contentList.add(new CSSStringValue(CSSStringType.STRING,
                parameters.getStringValue()));
View Full Code Here

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

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

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

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

    if (value instanceof CSSConstant == false)
    {
      // fine, we're done here ...
      return ;
    }
    final CSSConstant constant = (CSSConstant) value;
    final double parentFontSize =
            currentNode.getLayoutContext().getFontSpecification().getFontSize();
    if (RelativeFontSize.LARGER.equals(value))
    {
      final double scaleFactor = getScaleLargerFactor(parentFontSize);
View Full Code Here

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

    }
    if ("auto".equalsIgnoreCase(value.getStringValue()))
    {
      return CSSAutoValue.getInstance();
    }
    return new CSSConstant(value.getStringValue());
  }
View Full Code Here

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

   * @param unit
   * @return
   */
  public Map createValues(LexicalUnit unit)
  {
    final CSSConstant topStyle = (CSSConstant) lookupValue(unit);
    if (topStyle == null)
    {
      return null;
    }

    unit = unit.getNextLexicalUnit();

    final CSSConstant rightStyle;
    if (unit == null)
    {
      rightStyle = topStyle;
    }
    else
    {
      rightStyle = (CSSConstant) lookupValue(unit);
      if (rightStyle == null)
      {
        return null;
      }
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant bottomStyle;
    if (unit == null)
    {
      bottomStyle = topStyle;
    }
    else
    {
      bottomStyle = (CSSConstant) lookupValue(unit);
      if (bottomStyle == null)
      {
        return null;
      }
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant leftStyle;
    if (unit == null)
    {
      leftStyle = rightStyle;
    }
    else
View Full Code Here

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

                      final LayoutElement currentNode,
                      final StyleKey key)
  {
    final LayoutContext layoutContext = currentNode.getLayoutContext();
    final CSSValue value = layoutContext.getValue(key);
    final CSSConstant result;
    if (FontStretch.WIDER.equals(value))
    {
      // ask the parent ...
      final CSSConstant parentStretch = queryParent(currentNode.getParent());
      result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) + 1);
    }
    else if (FontStretch.NARROWER.equals(value))
    {
      // ask the parent ...
      final CSSConstant parentStretch = queryParent(currentNode.getParent());
      result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) - 1);
    }
    else if (value instanceof CSSConstant)
    {
      final CSSConstant stretch = (CSSConstant) lookupValue((CSSConstant) value);
      if (stretch != null)
      {
        result = stretch;
      }
      else
View Full Code Here

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

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

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

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

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

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

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

Examples of org.pentaho.reporting.libraries.css.values.CSSConstant

    }
    if (value.getStringValue().equalsIgnoreCase("auto"))
    {
      return CSSAutoValue.getInstance();
    }
    return new CSSConstant(value.getStringValue());
  }
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.