Class GlyphPaper

  • All Implemented Interfaces:
    Paper

    public abstract class GlyphPaper
    extends java.lang.Object
    implements Paper
    Translates Glyph paint operations into pixel iterators. This class provides an implementation of the Paper interface which means it can be painted on by a ShapePainter. Concrete subclasses are handed a Pixer giving the pixels actually painted by each received glyph.
    Since:
    1 Oct 2015
    Author:
    Mark Taylor
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  GlyphPaper.GlyphPaperType
      Type of paper used by this object.
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphPaper​(java.awt.Rectangle plotBounds)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      GlyphPaper.GlyphPaperType getPaperType()
      Returns a partial PaperType implementation to use with this object.
      abstract void glyphPixels​(Pixer pixer)
      For each glyph painted on this paper, a pixer will be passed to this method that iterates over all the pixels within this paper's bounds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GlyphPaper

        public GlyphPaper​(java.awt.Rectangle plotBounds)
        Constructor.
        Parameters:
        plotBounds - bounds within which all pixels must be contained
    • Method Detail

      • glyphPixels

        public abstract void glyphPixels​(Pixer pixer)
        For each glyph painted on this paper, a pixer will be passed to this method that iterates over all the pixels within this paper's bounds. The supplied pixer will not contain any pixels outside the plot bounds.
        Parameters:
        pixer - pixel iterator
      • getPaperType

        public GlyphPaper.GlyphPaperType getPaperType()
        Returns a partial PaperType implementation to use with this object. The returned value is private to this paper instance.
        Specified by:
        getPaperType in interface Paper
        Returns:
        paper type