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

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


  protected void addToResultList (ArrayList values,
                                  CSSValue firstPosition,
                                  CSSValue secondPosition)
  {
    values.add(new CSSValuePair (firstPosition, secondPosition));
  }
View Full Code Here


      {
        return null;
      }
    }

    return new CSSValuePair(firstValue, secondValue);
  }
View Full Code Here

                      LayoutElement currentNode,
                      StyleKey key)
  {
    final PageSize ps = process.getOutputMetaData().getDefaultPageSize();
    CSSValue page =
        new CSSValuePair(CSSNumericValue.createPtValue(ps.getWidth()),
            CSSNumericValue.createPtValue(ps.getHeight()));
    currentNode.getLayoutContext().setValue(PageStyleKeys.SIZE, page);
  }
View Full Code Here

        {
          counterValue = CSSValueFactory.parseFunction(value);
          value = value.getNextLexicalUnit();
        }
      }
      counterSpecs.add(new CSSValuePair
              (new CSSConstant(identifier), counterValue));
    }

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

  protected CSSValuePair createResultList(CSSValue firstPosition,
                                          CSSValue secondPosition)
  {
    if (firstPosition == TOP || firstPosition == BOTTOM)
    {
      return new CSSValuePair(secondPosition, firstPosition);
    }
    else if (secondPosition == LEFT || secondPosition == RIGHT)
    {
      return new CSSValuePair(secondPosition, firstPosition);
    }
    else
    {
      return new CSSValuePair(firstPosition, secondPosition);
    }
  }
View Full Code Here

        continue;

      }

      CSSValuePair counter = (CSSValuePair) item;

      final CSSValue counterName = counter.getFirstValue();

      if (counterName instanceof CSSConstant == false)

      {

        continue;

      }



      final CSSValue counterValue = counter.getSecondValue();

      final int counterIntValue = parseCounterValue(counterValue, element);

      element.resetCounter(counterName.getCSSText(), counterIntValue);
View Full Code Here

            return null;
          }
        }
      }

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

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

      {
        return null;
      }
    }

    return new CSSValuePair(firstValue, secondValue);
  }
View Full Code Here

        {
          counterValue = CSSValueFactory.parseFunction(value);
          value = value.getNextLexicalUnit();
        }
      }
      counterSpecs.add(new CSSValuePair
              (new CSSConstant(identifier), counterValue));
    }

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

    // this might be invalid ...
    if (BlockProgression.TB.equals(blockProgression))
    {
      if (rightToLeft)
      {
        layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, LEFT_TOP));
      }
      else
      {
        layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
      }
    }
    else if (BlockProgression.RL.equals(blockProgression))
    {
      if (rightToLeft)
      {
        layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
      }
      else
      {
        layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, LEFT_TOP));
      }
    }
    else if (BlockProgression.LR.equals(blockProgression))
    {
      if (rightToLeft)
      {
        layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, RIGHT_BOTTOM));
      }
      else
      {
        layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
      }
    }
  }
View Full Code Here

TOP

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

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.