protected abstract static class RgbPaperType.RgbPaper extends Object implements Paper
Constructor and Description |
---|
RgbPaper(PaperType paperType,
Rectangle bounds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
flush()
Called after all drawings have been drawn.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canMerge, createSheet, mergeSheet
public PaperType getPaperType()
Paper
getPaperType
in interface Paper
public RgbImage getRgbImage()
public 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 © 2023 Central Laboratory of the Research Councils. All Rights Reserved.