|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgui.Plot
Class Plot: Visual representation of a plot for an Absurdist variable.
| Field Summary | |
(package private) int |
DX
Number of pixels each step (on x-axis) or value unit (on y-axis) occupies |
(package private) double |
DY
|
(package private) int |
height
|
(package private) int |
nStep
|
(package private) static int |
OX
|
(package private) static int |
OY1
|
(package private) static int |
OY2
|
(package private) int |
SX
Number of pixels each of x/y axis scale occupies |
(package private) double[][][] |
var
|
(package private) int |
width
|
(package private) int |
x
|
(package private) int |
y
|
| Constructor Summary | |
Plot(double[][][] var,
int nStep,
int x,
int y,
int width,
int height)
Creates a plot from a variable array. |
|
| Method Summary | |
(package private) int[] |
getRange()
Returns a pair numbers that encloses the entire range of var[][][] |
void |
paint(java.awt.Graphics2D g)
Paints the object. |
void |
setSteps(int nStep)
Sets the number of steps. |
void |
setVar(double[][][] var)
Sets the variable array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final int OX
static final int OY1
static final int OY2
final int DX
double DY
final int SX
double[][][] var
int nStep
int x
int y
int width
int height
| Constructor Detail |
public Plot(double[][][] var,
int nStep,
int x,
int y,
int width,
int height)
| Method Detail |
public void setVar(double[][][] var)
public void setSteps(int nStep)
int[] getRange()
public void paint(java.awt.Graphics2D g)
y = oy - DY * (v - minVar);
where
DY = H/(maxVar-minVar);
H=(height - OY)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||