Class PaintPaperType2D
java.lang.Object
uk.ac.starlink.ttools.plot2.paper.PaintPaperType
uk.ac.starlink.ttools.plot2.paper.PaintPaperType2D
- All Implemented Interfaces:
PaperType,PaperType2D
PaintPaperType for 2-dimensional plots.
Suitable for output to vector graphics media.
- Since:
- 14 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PapercreatePaper(Graphics g, Rectangle bounds) Creates a paper instance for use with this PaperType.static PaintPaperType2DcreatePaperType(boolean quantise) Constructs an instance of this class.protected voidflushPaper(Paper paper) Called when all the layers have been painted.voidplaceDecal(Paper paper, Decal decal) Paints a Decal onto a given paper object.Methods inherited from class uk.ac.starlink.ttools.plot2.paper.PaintPaperType
createDataIcon, createHeadlessGraphicsConfig, isBitmap, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface uk.ac.starlink.ttools.plot2.paper.PaperType
createDataIcon, isBitmapMethods inherited from interface uk.ac.starlink.ttools.plot2.paper.PaperType2D
placeGlyph
-
Constructor Details
-
PaintPaperType2D
protected PaintPaperType2D()Constructor.
-
-
Method Details
-
createPaper
Description copied from class:PaintPaperTypeCreates a paper instance for use with this PaperType.- Specified by:
createPaperin classPaintPaperType- Parameters:
g- graphics context to which paper should outputbounds- plot bounds- Returns:
- new paper instance
-
flushPaper
Description copied from class:PaintPaperTypeCalled when all the layers have been painted.- Specified by:
flushPaperin classPaintPaperType- Parameters:
paper- graphics destination
-
placeDecal
Description copied from interface:PaperTypePaints a Decal onto a given paper object.- Specified by:
placeDecalin interfacePaperType- Parameters:
paper- graphics destination, of appropriate type for this objectdecal- graphic to paint
-
createPaperType
Constructs an instance of this class.- Parameters:
quantise- whether glyph coordinates should be snapped to the pixel grid before use- Returns:
- instance
-