public class BitmapSortPlotVolume extends PlotVolume
Modifier and Type | Class and Description |
---|---|
static class |
BitmapSortPlotVolume.Workspace
Opaque workspace object for use with BitmapSortPlotVolume instances.
|
Constructor and Description |
---|
BitmapSortPlotVolume(Component c,
Graphics g,
MarkStyle[] styles,
double padFactor,
int[] padBorders,
double fogginess,
boolean hasLabels,
boolean hasErrors,
double zmin,
double zmax,
DataColorTweaker tweaker,
BitmapSortPlotVolume.Workspace ws)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Do the plotting.
|
void |
plot2d(int px,
int py,
double z,
double[] coords,
int istyle,
boolean showPoint,
String label,
int nerr,
int[] xoffs,
int[] yoffs,
double[] zerrs)
Plots an marker and optional associated error values at a given
point in graphics coordinates with given additional Z coordinates.
|
createFoggingTweaker, getFogger, getGraphics, getScale, getStyles, packRgba, plot3d, projectX, projectY, unpackRgba
public BitmapSortPlotVolume(Component c, Graphics g, MarkStyle[] styles, double padFactor, int[] padBorders, double fogginess, boolean hasLabels, boolean hasErrors, double zmin, double zmax, DataColorTweaker tweaker, BitmapSortPlotVolume.Workspace ws)
c
- componentg
- graphics contextstyles
- array of marker styles which may be used to plotpadFactor
- minimum amount of space outside the unit cube
in both dimensions - 1 means no extra spacepadBorders
- space, additional to padFactor, to be left around
the edges of the plot; order is (left,right,bottom,top)fogginess
- thickness of fog for depth shadinghasLabels
- must be true if any of the points to be plotted
will have associated labelshasErrors
- must be true if any of the points to be plotted
will contain errorszmin
- a lower limit for z coordinates of plotted pointszmax
- an upper limit for z coordinates of plotted pointstweaker
- colour adjuster for using auxiliary axis coordsws
- workspace objectpublic void plot2d(int px, int py, double z, double[] coords, int istyle, boolean showPoint, String label, int nerr, int[] xoffs, int[] yoffs, double[] zerrs)
PlotVolume
ErrorRenderer
class.
Most implementations currently ignore the Z values associated with the error points, and put everything at the depth of the central point, because it's too hard to do otherwise. Does this produce seriously confusing visualisation?
plot2d
in class PlotVolume
px
- graphics space X coordinate of the central pointpy
- graphics space Y coordinate of the central pointz
- depth of point; a point with a greater z
should obscure a point with a lesser onecoords
- original coordinate array; as well as (redundant)
x,y,z values it may contain auxiliary axis coordinatesistyle
- index of the style used to plot the pointshowPoint
- whether the central point is to be plottedlabel
- label for point, or nullnerr
- number of error points, or zero for no errorsxoffs
- nerr
-element array of graphics space
X coordinates for error pointsyoffs
- nerr
-element array of graphics space
Y coordinates for error pointszerrs
- nerr
-element array of depths for
error pointspublic void flush()
flush
in class PlotVolume
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.