PaperType, PaperType2DCompositePaperType2D, OverPaperType2Dpublic abstract class RgbPaperType2D extends RgbPaperType implements PaperType2D
Note that the default RgbPaperType.placeDecal(uk.ac.starlink.ttools.plot2.paper.Paper, uk.ac.starlink.ttools.plot2.Decal) implementation
paints directly to the RGB Image's graphics context.
so that in the presence of decals, using the it is not OK
to wait until flush time and then render everything to the image,
unless you suitably override placeDecal as well.
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
RgbPaperType2D.RgbPaper2D |
Paper for use by this type.
|
RgbPaperType.RgbPaper| Modifier | Constructor | Description |
|---|---|---|
protected |
RgbPaperType2D(java.lang.String name,
boolean upLayer) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected RgbPaperType.RgbPaper |
createPaper(java.awt.Rectangle bounds) |
Creates a paper object for given bounds.
|
protected abstract RgbPaperType2D.RgbPaper2D |
createPaper2D(java.awt.Rectangle bounds) |
Creates a 2D paper object for given bounds.
|
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, toStringprotected RgbPaperType2D(java.lang.String name,
boolean upLayer)
name - paper type nameupLayer - true to render layers in ascending order,
false to do them in descending orderpublic 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 glyphprotected RgbPaperType.RgbPaper createPaper(java.awt.Rectangle bounds)
RgbPaperTypecreatePaper in class RgbPaperTypebounds - plot boundsprotected abstract RgbPaperType2D.RgbPaper2D createPaper2D(java.awt.Rectangle bounds)
bounds - plot boundsCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.