edu.iu.pcl.absurdist.gui
Class Plot

java.lang.Object
  |
  +--edu.iu.pcl.absurdist.gui.Plot

public class Plot
extends java.lang.Object

Class Plot: Visual representation of a plot for an Absurdist variable.


Constructor Summary
Plot(double[][][] var, int nStep, int x, int y, int width, int height)
          Creates a plot from a variable array.
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plot

public Plot(double[][][] var,
            int nStep,
            int x,
            int y,
            int width,
            int height)
Creates a plot from a variable array.

Method Detail

setVar

public void setVar(double[][][] var)
Sets the variable array.


setSteps

public void setSteps(int nStep)
Sets the number of steps.


paint

public void paint(java.awt.Graphics2D g)
Paints the object. The formula for mapping v to y:
        y = oy - DY * (v - minVar);
        
where
        DY = H/(maxVar-minVar);
        H=(height - OY)