Class PenIterator

  • All Implemented Interfaces:
    java.util.Iterator<Pen>

    public class PenIterator
    extends java.lang.Object
    implements java.util.Iterator<Pen>
    Iterates through the various datasets of pens, creating Pen ojbects on the fly. Also applies auto-color logic to the pens as appropriate
    • Constructor Summary

      Constructors 
      Constructor Description
      PenIterator​(Dataset dbPens, Dataset tagPens, Dataset calcPens, boolean autoColorPens, java.awt.Color[] autoColorList)  
    • Constructor Detail

      • PenIterator

        public PenIterator​(Dataset dbPens,
                           Dataset tagPens,
                           Dataset calcPens,
                           boolean autoColorPens,
                           java.awt.Color[] autoColorList)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Pen>
      • next

        public Pen next()
        Specified by:
        next in interface java.util.Iterator<Pen>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Pen>