Graphics
Class ArrayFunction

java.lang.Object
  extended byGraphics.ArrayFunction
All Implemented Interfaces:
jas.hist.DataSource, jas.hist.XYDataSource

public class ArrayFunction
extends java.lang.Object
implements jas.hist.XYDataSource

Disregard this class. Data source for function values to plot function with the JAS plot widget. Class will work with JASLinePlot which is not working yet.


Field Summary
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
ArrayFunction(double x_min, double x_max, double[] series, java.lang.String seriesName)
           
 
Method Summary
 int getAxisType()
          IMPLEMENT THE METHODS FROM Basic1DFunction
 double getMinusError(int j)
           
 int getNPoints()
           
 double getPlusError(int j)
           
 java.lang.String getTitle()
           
 double getX(int j)
           
 double getY(int j)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayFunction

public ArrayFunction(double x_min,
                     double x_max,
                     double[] series,
                     java.lang.String seriesName)
Parameters:
x_min - x-value minimum.
x_max - x_value maximum.
series - array of function values at evenly spaced points between x_min and x_max.
Method Detail

getAxisType

public int getAxisType()
IMPLEMENT THE METHODS FROM Basic1DFunction

Specified by:
getAxisType in interface jas.hist.XYDataSource

getNPoints

public int getNPoints()
Specified by:
getNPoints in interface jas.hist.XYDataSource

getMinusError

public double getMinusError(int j)
Specified by:
getMinusError in interface jas.hist.XYDataSource

getPlusError

public double getPlusError(int j)
Specified by:
getPlusError in interface jas.hist.XYDataSource

getX

public double getX(int j)
Specified by:
getX in interface jas.hist.XYDataSource

getY

public double getY(int j)
Specified by:
getY in interface jas.hist.XYDataSource

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface jas.hist.DataSource