public class MonoPaperType extends RgbPaperType implements PaperType2D, PaperType3D
Since the compositing is pretty much the same (no attention needs to be paid to the depth coordinate) this class implements both the 2D and 3D PaperType interfaces.
RgbPaperType.RgbPaper
Constructor and Description |
---|
MonoPaperType(Color color,
Compositor compositor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected RgbPaperType.RgbPaper |
createPaper(Rectangle bounds)
Creates a paper object for given bounds.
|
void |
placeGlyph(Paper paper,
double dx,
double dy,
double dz,
Glyph glyph,
Color color)
Places a glyph at a 3-d position in the space.
|
void |
placeGlyph(Paper paper,
double dx,
double dy,
Glyph glyph,
Color color)
Places a glyph at a 2-d position on the paper.
|
createDataIcon, isBitmap, placeDecal, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createDataIcon, isBitmap, placeDecal
public MonoPaperType(Color color, Compositor compositor)
color
- single RGB colour for all drawing
(alpha component is ignored)compositor
- compositing strategy for translating alphas
to displayed coloursprotected RgbPaperType.RgbPaper createPaper(Rectangle bounds)
RgbPaperType
createPaper
in class RgbPaperType
bounds
- plot boundspublic void placeGlyph(Paper paper, double dx, double dy, Glyph glyph, Color color)
PaperType2D
placeGlyph
in interface PaperType2D
paper
- graphics destination specific to this PaperTypedx
- X coordinatedy
- Y coordinateglyph
- graphics shapecolor
- colour for glyphpublic void placeGlyph(Paper paper, double dx, double dy, double dz, Glyph glyph, Color color)
PaperType3D
placeGlyph
in interface PaperType3D
paper
- graphics destination specific to this PaperTypedx
- graphics X coordinatedy
- graphics Y coordinatedz
- Z-buffer coordinate; lower values are closer to the viewerglyph
- graphics shapecolor
- colour for glyphCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.