|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unidu.is.gnuplot.Source
de.unidu.is.gnuplot.FileSource
de.unidu.is.gnuplot.DataSource
de.unidu.is.gnuplot.ArrayDataSource
A class which uses two double
arrays for storing the
(x,y) data pairs.
Field Summary | |
protected int |
count
The counter for to the current position when iterating through the (x,y) data pairs. |
protected double[] |
x
The x values of this curve. |
protected double[] |
y
The y values of this curve. |
Fields inherited from class de.unidu.is.gnuplot.FileSource |
filename, nosmooth |
Fields inherited from class de.unidu.is.gnuplot.Source |
max, min, title |
Constructor Summary | |
ArrayDataSource(java.lang.String title,
java.io.File file,
double[] x,
double[] y)
Constructs a new instance, sets the specified values, and sets the instance variable count to -1 . |
|
ArrayDataSource(java.lang.String title,
java.lang.String filename,
double[] x,
double[] y)
Constructs a new instance, sets the specified values, and sets the instance variable count to -1 . |
|
ArrayDataSource(java.lang.String title,
java.lang.String filename,
double startx,
double[] y)
Constructs a new instance, sets the specified values, and sets the instance variable count to -1 . |
Method Summary | |
double |
getX()
Returns the x value of the current (x,y) data pair. |
double |
getY()
Returns the y value of the current (x,y) data pair. |
boolean |
next()
Switches to the next possible (x,y) data pair if possible. |
Methods inherited from class de.unidu.is.gnuplot.DataSource |
getCommand, write, write |
Methods inherited from class de.unidu.is.gnuplot.FileSource |
getFilename, isSmooth, setFilename, setSmooth |
Methods inherited from class de.unidu.is.gnuplot.Source |
getMax, getMin, getTitle, setMax, setMin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double[] x
protected double[] y
protected int count
Constructor Detail |
public ArrayDataSource(java.lang.String title, java.io.File file, double[] x, double[] y)
count
to -1
.
title
- title of this curve, or null
file
- data output filex
- x values of this curvey
- y values of this curvepublic ArrayDataSource(java.lang.String title, java.lang.String filename, double[] x, double[] y)
count
to -1
.
title
- title of this curve, or null
filename
- name of the data output filex
- x values of this curvey
- y values of this curvepublic ArrayDataSource(java.lang.String title, java.lang.String filename, double startx, double[] y)
count
to -1
.
The x values are created as startx
,
startx+1
, startx+2
, ...,
startx+y.length-1
.
title
- title of this curve, or null
filename
- name of the data output filestartx
- start values of the x values of this curvey
- y values of this curveMethod Detail |
public boolean next()
next
in class DataSource
public double getX()
getX
in class DataSource
public double getY()
getY
in class DataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |