Package org.jfree.layouting.util

Examples of org.jfree.layouting.util.IntList


    if (job == null)
    {
      throw new NullPointerException();
    }
    stateList = new PageStateList(this);
    physicalMapping = new IntList(40);
    logicalMapping = new IntList(20);

    final ReportContext context = createReportContext(job, target);
    final LayoutControllerFactory layoutFactory =
        context.getLayoutControllerFactory();
View Full Code Here


    }
    else if (token instanceof CountersToken)
    {
      final CountersToken counterToken = (CountersToken) token;
      final String name = counterToken.getName();
      final IntList counterValues = new IntList(10);
      while (currentElement != null)
      {
        if (currentElement.isCounterDefined(name))
        {
          counterValues.add(currentElement.getCounterValue(name));
        }
        currentElement = currentElement.getParent();
      }

      final int counterCount = counterValues.size();
      final int[] ints = new int[counterCount];
      for (int i = 0; i < counterCount; i++)
      {
        ints[i] = counterValues.get(counterCount - i - 1);
      }
      return new ResolvedCountersToken(counterToken, ints);
    }
    // not recognized ...
    return null;
View Full Code Here

    if (fc.getCurrentState() != FlowContext.STATE_SUSPEND)
    {
      return false;
    }

    final IntList roles = new IntList(5);
    final IntList models = new IntList(5);
    final FastStack contexts = new FastStack();
    while (fc.getCurrentState() == FlowContext.STATE_SUSPEND)
    {
      contexts.push(fc.getCurrentLayoutContext());
      roles.push(fc.getCurrentDisplayRole());
      models.push(fc.getCurrentDisplayModel());
      fc.close();
    }

    while (contexts.isEmpty() == false)
    {
      final LayoutContext lc = (LayoutContext) contexts.pop();
      final int role = roles.pop();
      final int model = models.pop();
      final int cleanRole = role & 0xFFFFFF;
      if (cleanRole == TYPE_INLINE)
      {
        contentGenerator.startedInline(lc);
        fc.addElement(model, role, lc);
View Full Code Here

  private FastStack layoutContexts;
  private int activeContext;

  public FlowContext()
  {
    displayModels = new IntList(30);
    displayRoles = new IntList(30);
    elementState = new IntList(30);
    layoutContexts = new FastStack();
  }
View Full Code Here

  private FastStack layoutContexts;
  private int activeContext;

  public FlowContext()
  {
    displayModels = new IntList(30);
    displayRoles = new IntList(30);
    elementState = new IntList(30);
    layoutContexts = new FastStack();
  }
View Full Code Here

    }
    else if (token instanceof CountersToken)
    {
      final CountersToken counterToken = (CountersToken) token;
      final String name = counterToken.getName();
      final IntList counterValues = new IntList(10);
      while (currentElement != null)
      {
        if (currentElement.isCounterDefined(name))
        {
          counterValues.add(currentElement.getCounterValue(name));
        }
        currentElement = currentElement.getParent();
      }

      final int counterCount = counterValues.size();
      final int[] ints = new int[counterCount];
      for (int i = 0; i < counterCount; i++)
      {
        ints[i] = counterValues.get(counterCount - i - 1);
      }
      return new ResolvedCountersToken(counterToken, ints);
    }
    // not recognized ...
    return null;
View Full Code Here

    if (fc.getCurrentState() != FlowContext.STATE_SUSPEND)
    {
      return false;
    }

    final IntList roles = new IntList(5);
    final IntList models = new IntList(5);
    final FastStack contexts = new FastStack();
    while (fc.getCurrentState() == FlowContext.STATE_SUSPEND)
    {
      contexts.push(fc.getCurrentLayoutContext());
      roles.push(fc.getCurrentDisplayRole());
      models.push(fc.getCurrentDisplayModel());
      fc.close();
    }

    while (contexts.isEmpty() == false)
    {
      final LayoutContext lc = (LayoutContext) contexts.pop();
      final int role = roles.pop();
      final int model = models.pop();
      final int cleanRole = role & 0xFFFFFF;
      if (cleanRole == TYPE_INLINE)
      {
        contentGenerator.startedInline(lc);
        fc.addElement(model, role, lc);
View Full Code Here

    if (job == null)
    {
      throw new NullPointerException();
    }
    stateList = new PageStateList(this);
    physicalMapping = new IntList(40);
    logicalMapping = new IntList(20);

    final ReportContext context = createReportContext(job, target);
    final LayoutControllerFactory layoutFactory =
        context.getLayoutControllerFactory();
View Full Code Here

    }
    else if (token instanceof CountersToken)
    {
      final CountersToken counterToken = (CountersToken) token;
      final String name = counterToken.getName();
      IntList counterValues = new IntList(10);
      while (currentElement != null)
      {
        if (currentElement.isCounterDefined(name))
        {
          counterValues.add(currentElement.getCounterValue(name));
        }
        currentElement = currentElement.getParent();
      }

      final int counterCount = counterValues.size();
      final int[] ints = new int[counterCount];
      for (int i = 0; i < counterCount; i++)
      {
        ints[i] = counterValues.get(counterCount - i - 1);
      }
      return new ResolvedCountersToken(counterToken, ints);
    }
    // not recognized ...
    return null;
View Full Code Here

    if (fc.getCurrentState() != FlowContext.STATE_SUSPEND)
    {
      return false;
    }

    IntList roles = new IntList(5);
    IntList models = new IntList(5);
    FastStack contexts = new FastStack();
    while (fc.getCurrentState() == FlowContext.STATE_SUSPEND)
    {
      contexts.push(fc.getCurrentLayoutContext());
      roles.push(fc.getCurrentDisplayRole());
      models.push(fc.getCurrentDisplayModel());
      fc.close();
    }

    while (contexts.isEmpty() == false)
    {
      final LayoutContext lc = (LayoutContext) contexts.pop();
      final int role = roles.pop();
      final int model = models.pop();
      final int cleanRole = role & 0xFFFFFF;
      if (cleanRole == TYPE_INLINE)
      {
        contentGenerator.startedInline(lc);
        fc.addElement(model, role, lc);
View Full Code Here

TOP

Related Classes of org.jfree.layouting.util.IntList

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.