PaperType, PaperType2D, PaperType3Dpublic 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 | Description |
|---|---|
MonoPaperType(java.awt.Color color,
Compositor compositor) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected RgbPaperType.RgbPaper |
createPaper(java.awt.Rectangle bounds) |
Creates a paper object for given bounds.
|
void |
placeGlyph(Paper paper,
double dx,
double dy,
double dz,
Glyph glyph,
java.awt.Color color) |
Places a glyph at a 3-d position in the space.
|
void |
placeGlyph(Paper paper,
double dx,
double dy,
Glyph glyph,
java.awt.Color color) |
Places a glyph at a 2-d position on the paper.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateDataIcon, isBitmap, placeDecalcreateDataIcon, isBitmap, placeDecal, toStringpublic MonoPaperType(java.awt.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(java.awt.Rectangle bounds)
RgbPaperTypecreatePaper in class RgbPaperTypebounds - plot boundspublic void placeGlyph(Paper paper, double dx, double dy, Glyph glyph, java.awt.Color color)
PaperType2DplaceGlyph in interface PaperType2Dpaper - 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, java.awt.Color color)
PaperType3DplaceGlyph in interface PaperType3Dpaper - 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 © 2018 Central Laboratory of the Research Councils. All Rights Reserved.