|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.paper.RgbPaperType
uk.ac.starlink.ttools.plot2.paper.RgbPaperType2D
public abstract class RgbPaperType2D
Abstract RgbPaperType subclass for 2-dimensional plots.
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.
Nested Class Summary | |
---|---|
protected static class |
RgbPaperType2D.RgbPaper2D
Paper for use by this type. |
Nested classes/interfaces inherited from class uk.ac.starlink.ttools.plot2.paper.RgbPaperType |
---|
RgbPaperType.RgbPaper |
Constructor Summary | |
---|---|
protected |
RgbPaperType2D(String name,
boolean upLayer)
Constructor. |
Method Summary | |
---|---|
protected RgbPaperType.RgbPaper |
createPaper(Rectangle bounds)
Creates a paper object for given bounds. |
protected abstract RgbPaperType2D.RgbPaper2D |
createPaper2D(Rectangle bounds)
Creates a 2D paper object for given bounds. |
void |
placeGlyph(Paper paper,
double dx,
double dy,
Glyph glyph,
Color color)
Places a glyph at a 2-d position on the paper. |
Methods inherited from class uk.ac.starlink.ttools.plot2.paper.RgbPaperType |
---|
createDataIcon, isBitmap, placeDecal, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.ttools.plot2.paper.PaperType |
---|
createDataIcon, isBitmap, placeDecal |
Constructor Detail |
---|
protected RgbPaperType2D(String name, boolean upLayer)
name
- paper type nameupLayer
- true to render layers in ascending order,
false to do them in descending orderMethod Detail |
---|
public 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 glyphprotected RgbPaperType.RgbPaper createPaper(Rectangle bounds)
RgbPaperType
createPaper
in class RgbPaperType
bounds
- plot bounds
protected abstract RgbPaperType2D.RgbPaper2D createPaper2D(Rectangle bounds)
bounds
- plot bounds
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |