public abstract class GlyphPaper extends Object implements Paper
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.| Modifier and Type | Class and Description |
|---|---|
static interface |
GlyphPaper.GlyphPaperType
Type of paper used by this object.
|
| Constructor and Description |
|---|
GlyphPaper(Rectangle plotBounds)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMerge()
Returns false.
|
Paper |
createSheet()
Returns a blank Paper instance that is compatible with this one.
|
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.
|
void |
mergeSheet(Paper other)
Merges the contents of a compatible paper instance with this one.
|
public GlyphPaper(Rectangle plotBounds)
plotBounds - bounds within which all pixels must be containedpublic abstract void glyphPixels(Pixer pixer)
pixer - pixel iteratorpublic GlyphPaper.GlyphPaperType getPaperType()
getPaperType in interface Paperpublic boolean canMerge()
public Paper createSheet()
PaperMay only be invoked if Paper.canMerge() returns true.
createSheet in interface Paperpublic void mergeSheet(Paper other)
PaperPaper.createSheet() on this instance or on a
compatible instance.
The effect is as if everything that has been painted to the supplied sheet will now be painted on this one.
This is intended for use in parallelising painting of a
large number of 2D or 3D Glyphs.
Merging papers on which Decals
have been placed may or may not work.
May only be invoked if Paper.canMerge() returns true.
mergeSheet in interface Paperother - compatible paper instanceCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.