Class AbstractIterator

java.lang.Object
org.eclipse.nebula.paperclips.core.AbstractIterator
All Implemented Interfaces:
PrintIterator

public abstract class AbstractIterator
extends java.lang.Object
implements PrintIterator
An abstract PrintIterator class which maintains references to the device and gc arguments passed to Print.iterator(Device, GC).
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.eclipse.swt.graphics.Device device
    The device being printed to.
    protected org.eclipse.swt.graphics.GC gc
    A GC used for measuring document elements.
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected AbstractIterator​(AbstractIterator that)
    Copy constructor.
    protected AbstractIterator​(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
    Constructs an AbstractIterator with the given Device and GC.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.nebula.paperclips.core.PrintIterator

    copy, hasNext, minimumSize, next, preferredSize
  • Field Details

    • device

      protected final org.eclipse.swt.graphics.Device device
      The device being printed to.
    • gc

      protected final org.eclipse.swt.graphics.GC gc
      A GC used for measuring document elements.
  • Constructor Details

    • AbstractIterator

      protected AbstractIterator​(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
      Constructs an AbstractIterator with the given Device and GC.
      Parameters:
      device - the device being printed to.
      gc - a GC used for drawing on the print device.
    • AbstractIterator

      protected AbstractIterator​(AbstractIterator that)
      Copy constructor.
      Parameters:
      that - the AbstractIterator being copied.