Class PrintSizeStrategy


public abstract class PrintSizeStrategy
extends java.lang.Object
The static instance members of this class aid in the calculation of prints and help abstract out the minimum/preferred size concepts to simplify algorithms.
  • Field Summary

    Modifier and Type Field Description
    static PrintSizeStrategy MINIMUM
    Compute the minimum size
    static PrintSizeStrategy PREFERRED
    Compute the preferred size.
  • Method Summary

    Modifier and Type Method Description
    abstract computeSize​(PrintIterator print)
    Computes the size of the PrintIterator.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • computeSize

      public abstract computeSize​(PrintIterator print)
      Computes the size of the PrintIterator.
      print - the iterator
      the computed size of the PrintIterator.