PaperRgbPaperType2D.RgbPaper2D, RgbPaperType3D.RgbPaper3Dprotected abstract static class RgbPaperType.RgbPaper extends java.lang.Object implements Paper
| Constructor | Description |
|---|---|
RgbPaper(PaperType paperType,
java.awt.Rectangle bounds) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
flush() |
Called after all drawings have been drawn.
|
java.awt.Rectangle |
getBounds() |
Returns the plot bounds.
|
PaperType |
getPaperType() |
Returns the PaperType which generated and can write to this paper.
|
protected int |
getPixelIndex(int xoff,
int yoff,
Pixer pixer) |
Returns the index into the RGB image buffer corresponding to
the current state of a pixel iterator and an X/Y offset.
|
RgbImage |
getRgbImage() |
Returns the RGB image that stores the state of this paper.
|
void |
placeDecal(Decal decal) |
Does the work for placing a decal.
|
public RgbPaper(PaperType paperType, java.awt.Rectangle bounds)
paperType - paper type instance creating this paperbounds - plot boundspublic PaperType getPaperType()
PapergetPaperType in interface Paperpublic RgbImage getRgbImage()
public java.awt.Rectangle getBounds()
public void placeDecal(Decal decal)
RgbPaperType.placeDecal(uk.ac.starlink.ttools.plot2.paper.Paper, uk.ac.starlink.ttools.plot2.Decal).decal - graphic to paintprotected int getPixelIndex(int xoff,
int yoff,
Pixer pixer)
xoff - offset in Xyoff - offset in Ypixer - pixel iteratorpublic abstract void flush()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.