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

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


  {
    if (backgroundOrigin == null)
    {
      return BackgroundOrigin.PADDING;
    }
    CSSConstant retval = (CSSConstant)
            backgroundOrigin.get(i % backgroundOrigin.size());
    if (retval == null)
    {
      return BackgroundOrigin.PADDING;
    }
View Full Code Here


  {
    if (backgroundClip == null)
    {
      return BackgroundClip.BORDER;
    }
    CSSConstant retval = (CSSConstant)
            backgroundClip.get(i % backgroundClip.size());
    if (retval == null)
    {
      return BackgroundClip.BORDER;
    }
View Full Code Here

  {
    if (backgroundAttachment == null)
    {
      return BackgroundAttachment.SCROLL;
    }
    CSSConstant retval = (CSSConstant)
            backgroundAttachment.get(i % backgroundAttachment.size());
    if (retval == null)
    {
      return BackgroundAttachment.SCROLL;
    }
View Full Code Here

    }



    CSSConstant constant = (CSSConstant) value;

    CSSValue resolvedValue = lookupValue(constant);

    if (resolvedValue != null)
View Full Code Here

    }



    final CSSConstant alignValue =

            (CSSConstant) resolveValue(process, currentNode, key);

    layoutContext.setValue(TextStyleKeys.TEXT_ALIGN, alignValue);
View Full Code Here

        if (item instanceof CSSConstant)

        {

          final CSSConstant c = (CSSConstant) lookupValue((CSSConstant) item);

          final FontFamily family = outputMetaData.getFontFamily(c);

          fs.setFontFamily(family.getFamilyName());
View Full Code Here

      return ;

    }

    CSSConstant constant = (CSSConstant) value;

    final double parentFontSize =

            currentNode.getLayoutContext().getFontSpecification().getFontSize();
View Full Code Here

    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

    final LayoutContext layoutContext = currentNode.getLayoutContext();

    final CSSValue value = layoutContext.getValue(key);

    final CSSConstant result;

    if (FontStretch.WIDER.equals(value))

    {

      // ask the parent ...

      CSSConstant parentStretch = queryParent(currentNode.getParent());

      result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) + 1);

    }

    else if (FontStretch.NARROWER.equals(value))

    {

      // ask the parent ...

      CSSConstant parentStretch = queryParent(currentNode.getParent());

      result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) - 1);

    }

    else if (value instanceof CSSConstant)

    {

      CSSConstant stretch = (CSSConstant) lookupValue((CSSConstant) value);

      if (stretch != null)

      {
View Full Code Here

      return;

    }

    CSSConstant constant = (CSSConstant) value;

    final LayoutElement parent = currentNode.getParent();

    if (parent != 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.