Class RgbPaperType.RgbPaper
java.lang.Object
uk.ac.starlink.ttools.plot2.paper.RgbPaperType.RgbPaper
- All Implemented Interfaces:
Paper
- Direct Known Subclasses:
RgbPaperType2D.RgbPaper2D, RgbPaperType3D.RgbPaper3D
- Enclosing class:
RgbPaperType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidflush()Called after all drawings have been drawn.Returns the plot bounds.Returns the PaperType which generated and can write to this paper.protected intgetPixelIndex(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.Returns the RGB image that stores the state of this paper.voidplaceDecal(Decal decal) Does the work for placing a decal.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Paper
canMerge, createSheet, mergeSheet
-
Constructor Details
-
RgbPaper
-
-
Method Details
-
getPaperType
Description copied from interface:PaperReturns the PaperType which generated and can write to this paper.- Specified by:
getPaperTypein interfacePaper- Returns:
- paper type
-
getRgbImage
Returns the RGB image that stores the state of this paper.- Returns:
- rgb image
-
getBounds
-
placeDecal
Does the work for placing a decal. Invoked byRgbPaperType.placeDecal(Paper, Decal).- Parameters:
decal- graphic to paint
-
getPixelIndex
Returns the index into the RGB image buffer corresponding to the current state of a pixel iterator and an X/Y offset.- Parameters:
xoff- offset in Xyoff- offset in Ypixer- pixel iterator- Returns:
- buffer offset for current position of pixer
-
flush
public abstract void flush()Called after all drawings have been drawn.
-