public class BarGraph extends Object
Modifier and Type | Field and Description |
---|---|
protected static RealType |
BAR_B |
protected static RealType |
BAR_G |
protected static RealType |
BAR_R |
protected static RealType |
BAR_X |
protected static RealType |
BAR_Y |
protected static RealType |
BAR_Z |
protected static FunctionType |
BOX_2D |
protected static FunctionType |
BOX_3D |
Constructor and Description |
---|
BarGraph() |
Modifier and Type | Method and Description |
---|---|
static float[][] |
extractColors(Color[] c)
Converts java.awt.Color objects to floating point RGB values.
|
static void |
main(String[] argv)
Run 'java visad.util.BarGraph' to test bar graphing.
|
static FlatField |
makeBarGraph2D(float[] heights,
float spacing,
Color[] colors)
Constructs a 2D bar graph.
|
static FlatField |
makeBarGraph2D(FunctionType type,
float[] heights,
float spacing,
Color[] colors)
Constructs a 2D bar graph.
|
static FlatField |
makeBarGraph3D(float[][] heights,
float spacing,
Color[][] colors)
Constructs a 3D bar graph.
|
static FlatField |
makeBarGraph3D(FunctionType type,
float[][] heights,
float spacing,
Color[][] colors)
Constructs a 3D bar graph.
|
static FlatField |
makeBoxes2D(float[] x1,
float[] y1,
float[] x2,
float[] y2,
Color[] c) |
static FlatField |
makeBoxes2D(float[] x1,
float[] y1,
float[] x2,
float[] y2,
float[] r,
float[] g,
float[] b) |
static FlatField |
makeBoxes2D(FunctionType type,
float[] x1,
float[] y1,
float[] x2,
float[] y2,
Color[] c) |
static FlatField |
makeBoxes2D(FunctionType type,
float[] x1,
float[] y1,
float[] x2,
float[] y2,
float[] r,
float[] g,
float[] b) |
static FlatField |
makeBoxes3D(float[] x1,
float[] y1,
float[] z1,
float[] x2,
float[] y2,
float[] z2,
Color[] c) |
static FlatField |
makeBoxes3D(float[] x1,
float[] y1,
float[] z1,
float[] x2,
float[] y2,
float[] z2,
float[] r,
float[] g,
float[] b) |
static FlatField |
makeBoxes3D(FunctionType type,
float[] x1,
float[] y1,
float[] z1,
float[] x2,
float[] y2,
float[] z2,
Color[] c) |
static FlatField |
makeBoxes3D(FunctionType type,
float[] x1,
float[] y1,
float[] z1,
float[] x2,
float[] y2,
float[] z2,
float[] r,
float[] g,
float[] b) |
protected static final RealType BAR_X
protected static final RealType BAR_Y
protected static final RealType BAR_Z
protected static final RealType BAR_R
protected static final RealType BAR_G
protected static final RealType BAR_B
protected static final FunctionType BOX_2D
protected static final FunctionType BOX_3D
public static FlatField makeBarGraph2D(float[] heights, float spacing, Color[] colors) throws VisADException, RemoteException
heights
- Height of each barspacing
- Spacing between bars (at least 0, and less than 1)colors
- Color of each barVisADException
RemoteException
public static FlatField makeBarGraph2D(FunctionType type, float[] heights, float spacing, Color[] colors) throws VisADException, RemoteException
type
- MathType to use, of the form ((X, Y) -> (R, G, B))heights
- Height of each barspacing
- Spacing between bars (at least 0, and less than 1)colors
- Color of each barVisADException
RemoteException
public static FlatField makeBoxes2D(float[] x1, float[] y1, float[] x2, float[] y2, Color[] c) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBoxes2D(float[] x1, float[] y1, float[] x2, float[] y2, float[] r, float[] g, float[] b) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBoxes2D(FunctionType type, float[] x1, float[] y1, float[] x2, float[] y2, Color[] c) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBoxes2D(FunctionType type, float[] x1, float[] y1, float[] x2, float[] y2, float[] r, float[] g, float[] b) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBarGraph3D(float[][] heights, float spacing, Color[][] colors) throws VisADException, RemoteException
heights
- Height of each bar (dimensioned cols X rows)spacing
- Spacing between bars (at least 0, and less than 1)colors
- Color of each bar (dimensioned cols X rows)VisADException
RemoteException
public static FlatField makeBarGraph3D(FunctionType type, float[][] heights, float spacing, Color[][] colors) throws VisADException, RemoteException
type
- MathType to use, of the form ((X, Y, Z) -> (R, G, B))heights
- Height of each bar (dimensioned cols X rows)spacing
- Spacing between bars (at least 0, and less than 1)colors
- Color of each bar (dimensioned cols X rows)VisADException
RemoteException
public static FlatField makeBoxes3D(float[] x1, float[] y1, float[] z1, float[] x2, float[] y2, float[] z2, Color[] c) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBoxes3D(float[] x1, float[] y1, float[] z1, float[] x2, float[] y2, float[] z2, float[] r, float[] g, float[] b) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBoxes3D(FunctionType type, float[] x1, float[] y1, float[] z1, float[] x2, float[] y2, float[] z2, Color[] c) throws VisADException, RemoteException
VisADException
RemoteException
public static FlatField makeBoxes3D(FunctionType type, float[] x1, float[] y1, float[] z1, float[] x2, float[] y2, float[] z2, float[] r, float[] g, float[] b) throws VisADException, RemoteException
VisADException
RemoteException
public static float[][] extractColors(Color[] c)
public static void main(String[] argv) throws VisADException, RemoteException
VisADException
RemoteException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.