PaperType, PaperType3Dpublic class SortedPaperType3D extends PaintPaperType implements PaperType3D
It works by accumulating a list of glyphs to be painted, and when they are all in (all layer drawings have been processed) sorts them by Z-coordinate and paints them in order. I think that's the only way you can do it for vector graphics. It will unavoidably have a large memory footprint and be slow for large numbers of points.
| Constructor | Description |
|---|---|
SortedPaperType3D() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected Paper |
createPaper(java.awt.Graphics g,
java.awt.Rectangle bounds) |
Creates a paper instance for use with this PaperType.
|
protected void |
flushPaper(Paper paper) |
Called when all the layers have been painted.
|
void |
placeDecal(Paper paper,
Decal decal) |
Paints a Decal onto a given paper object.
|
void |
placeGlyph(Paper paper,
double dx,
double dy,
double dz,
Glyph glyph,
java.awt.Color color) |
Places a glyph at a 3-d position in the space.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateDataIcon, createHeadlessGraphicsConfig, isBitmap, toStringcreateDataIcon, isBitmapprotected Paper createPaper(java.awt.Graphics g, java.awt.Rectangle bounds)
PaintPaperTypecreatePaper in class PaintPaperTypeg - graphics context to which paper should outputbounds - plot boundspublic void placeGlyph(Paper paper, double dx, double dy, double dz, Glyph glyph, java.awt.Color color)
PaperType3DplaceGlyph in interface PaperType3Dpaper - graphics destination specific to this PaperTypedx - graphics X coordinatedy - graphics Y coordinatedz - Z-buffer coordinate; lower values are closer to the viewerglyph - graphics shapecolor - colour for glyphpublic void placeDecal(Paper paper, Decal decal)
PaperTypeplaceDecal in interface PaperTypepaper - graphics destination, of appropriate type for this objectdecal - graphic to paintprotected void flushPaper(Paper paper)
PaintPaperTypeflushPaper in class PaintPaperTypepaper - graphics destinationCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.