Class GlyphPaper
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.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 thePaper
interface which means it can be painted on by aShapePainter
. 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.
-
-
-
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 interfacePaper
- Returns:
- paper type
-
-