Class RgbPaperType2D.RgbPaper2D
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.paper.RgbPaperType.RgbPaper
-
- uk.ac.starlink.ttools.plot2.paper.RgbPaperType2D.RgbPaper2D
-
- All Implemented Interfaces:
Paper
- Enclosing class:
- RgbPaperType2D
protected abstract static class RgbPaperType2D.RgbPaper2D extends RgbPaperType.RgbPaper
Paper for use by this type.
-
-
Constructor Summary
Constructors Constructor Description RgbPaper2D(PaperType paperType, java.awt.Rectangle bounds)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract void
placePixels(int xoff, int yoff, Pixer pixer, java.awt.Color color)
Paints the pixels of a pixel iterator in a given colour at a given position.-
Methods inherited from class uk.ac.starlink.ttools.plot2.paper.RgbPaperType.RgbPaper
flush, getBounds, getPaperType, getPixelIndex, getRgbImage, placeDecal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.ac.starlink.ttools.plot2.paper.Paper
canMerge, createSheet, mergeSheet
-
-
-
-
Constructor Detail
-
RgbPaper2D
public RgbPaper2D(PaperType paperType, java.awt.Rectangle bounds)
Constructor.- Parameters:
paperType
- paper type instance creating this paperbounds
- plot bounds
-
-
Method Detail
-
placePixels
protected abstract void placePixels(int xoff, int yoff, Pixer pixer, java.awt.Color color)
Paints the pixels of a pixel iterator in a given colour at a given position. Subclasses implement this method to perform the actual pixel compositing. The supplied pixer will already have been clipped, so implementations don't need to worry about checking the positions are within the bounds of this paper. Implementations can (and usually should) use theRgbPaperType.RgbPaper.getPixelIndex(int, int, uk.ac.starlink.ttools.plot2.Pixer)
method to address the pixels of the RgbImage buffer.- Parameters:
xoff
- X offsetyoff
- Y offsetpixer
- clipped pixel iterator, not nullcolor
- painting colour
-
-