Package org.jfree.layouting.layouter.context

Examples of org.jfree.layouting.layouter.context.ListSpecification


   */
  public void resolve (final LayoutProcess process, final LayoutElement currentNode,
                       final StyleKey key)
  {
    final CSSValue value = resolveValue(process, currentNode, key);
    final ListSpecification listSpecification =
            currentNode.getLayoutContext().getListSpecification();
    listSpecification.setPosition((ListStylePosition) value);
  }
View Full Code Here


                       final LayoutElement currentNode,
                       final StyleKey key)
  {
    final LayoutContext layoutContext = currentNode.getLayoutContext();
    final CSSValue value = layoutContext.getValue(key);
    final ListSpecification lspec =
            currentNode.getLayoutContext().getListSpecification();
    if (ListStyleTypeOther.NORMAL.equals(value))
    {
      final CounterStyle cstyle =
              process.getDocumentContext().getCounterStyle ("list-item");
      lspec.setCounterStyle(cstyle);
    }
    else
    {
      final CSSValue resolvedValue = resolveValue(process, currentNode, key);
      if (resolvedValue == null)
      {
        lspec.setCounterStyle(new DecimalCounterStyle());
      }
      else
      {
        final String name = resolvedValue.getCSSText();
        lspec.setCounterStyle(CounterStyleFactory.getInstance().getCounterStyle(name));
      }
    }
  }
View Full Code Here

   */
  public void resolve (final LayoutProcess process, final LayoutElement currentNode,
                       final StyleKey key)
  {
    final CSSValue value = resolveValue(process, currentNode, key);
    final ListSpecification listSpecification =
            currentNode.getLayoutContext().getListSpecification();
    listSpecification.setPosition((ListStylePosition) value);
  }
View Full Code Here

                       final LayoutElement currentNode,
                       final StyleKey key)
  {
    final LayoutContext layoutContext = currentNode.getLayoutContext();
    final CSSValue value = layoutContext.getValue(key);
    final ListSpecification lspec =
            currentNode.getLayoutContext().getListSpecification();
    if (ListStyleTypeOther.NORMAL.equals(value))
    {
      final CounterStyle cstyle =
              process.getDocumentContext().getCounterStyle ("list-item");
      lspec.setCounterStyle(cstyle);
    }
    else
    {
      final CSSValue resolvedValue = resolveValue(process, currentNode, key);
      if (resolvedValue == null)
      {
        lspec.setCounterStyle(new DecimalCounterStyle());
      }
      else
      {
        final String name = resolvedValue.getCSSText();
        lspec.setCounterStyle(CounterStyleFactory.getInstance().getCounterStyle(name));
      }
    }
  }
View Full Code Here

  {

    CSSValue value = resolveValue(process, currentNode, key);

    ListSpecification listSpecification =

            currentNode.getLayoutContext().getListSpecification();

    listSpecification.setPosition((ListStylePosition) value);

  }
View Full Code Here

    final LayoutContext layoutContext = currentNode.getLayoutContext();

    final CSSValue value = layoutContext.getValue(key);

    final ListSpecification lspec =

            currentNode.getLayoutContext().getListSpecification();

    if (ListStyleTypeOther.NORMAL.equals(value))

    {

      final CounterStyle cstyle =

              process.getDocumentContext().getCounterStyle ("list-item");

      lspec.setCounterStyle(cstyle);

    }

    else

    {

      final CSSValue resolvedValue = resolveValue(process, currentNode, key);

      if (resolvedValue == null)

      {

        lspec.setCounterStyle(new DecimalCounterStyle());

      }

      else

      {

        final String name = resolvedValue.getCSSText();

        lspec.setCounterStyle(CounterStyleFactory.getInstance().getCounterStyle(name));

      }

    }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.layouter.context.ListSpecification

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.