org.jcpsim.plot
Class ComputeTics

java.lang.Object
  extended by org.jcpsim.plot.ComputeTics

public class ComputeTics
extends java.lang.Object

Finds the optimal scale for one axis


Field Summary
 int frac
           
 double ticd
           
 double ticmax
           
 double ticmin
           
 int tics
           
 
Constructor Summary
ComputeTics(double omin, double omax, double catics)
           
 
Method Summary
 java.lang.String format(double x)
           
 boolean isZero(double i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ticmin

public double ticmin

ticmax

public double ticmax

ticd

public double ticd

tics

public int tics

frac

public int frac
Constructor Detail

ComputeTics

public ComputeTics(double omin,
                   double omax,
                   double catics)
Parameters:
omin - lowest desired value
omax - highest desired value
catics - approximate desired number of tics
Method Detail

format

public java.lang.String format(double x)

isZero

public boolean isZero(double i)


jCpSim (Java CardioPulmonary SIMulations), v0.2.01
Dr. Frank Fischer, frank@jcpsim.org, http://www.jcpsim.org