de.unidu.is.gnuplot
Class Source

java.lang.Object
  extended byde.unidu.is.gnuplot.Source
Direct Known Subclasses:
FileSource, NormalDistributionSource

public abstract class Source
extends java.lang.Object

An abstract class describing a single plot curve. Therefore, a gnuplot expression defining the function or data file for the gnuplot plot command has to be specified as well as the "title" of the curve.

Furthermore, the minimum and maximum value for the x-axis of this curve can be specified (for the mind.evalution.gnuplot.GnuPlot instance). By default, both values are 0, thus they are ignored.

This class has to be subclassed for specific application areas.

Since:
2002-04-10
Version:
$Revision: 1.4 $, $Date: 2005/02/21 17:29:19 $
Author:
Henrik Nottelmann

Field Summary
protected  double max
          The maximum value for the x-axis (default is 0).
protected  double min
          The minimum value for the x-axis (default is 0).
protected  java.lang.String title
          The title of this curve.
 
Constructor Summary
Source()
          Creates a new, empty instance.
Source(java.lang.String title)
          Creates a new, empty instance and sets the title.
 
Method Summary
abstract  java.lang.String getCommand()
          Returns a gnuplot expression defining the function or data file for the gnuplot plot command.
 double getMax()
          Returns the maximum value for the x-axis.
 double getMin()
          Returns the minimum value for the x-axis.
 java.lang.String getTitle()
          Returns the title of the curve.
 void setMax(double max)
          Sets the maximum value for the x-axis.
 void setMin(double min)
          Sets the minimum value for the x-axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

protected double min
The minimum value for the x-axis (default is 0).


max

protected double max
The maximum value for the x-axis (default is 0).


title

protected java.lang.String title
The title of this curve.

Constructor Detail

Source

public Source()
Creates a new, empty instance.


Source

public Source(java.lang.String title)
Creates a new, empty instance and sets the title.

Parameters:
title - title of this plot
Method Detail

getCommand

public abstract java.lang.String getCommand()
Returns a gnuplot expression defining the function or data file for the gnuplot plot command. This method has to be overridden in subclasses.

Returns:
gnuplot expression defining the function or data file

getTitle

public java.lang.String getTitle()
Returns the title of the curve.

Returns:
title of the curve

setMin

public void setMin(double min)
Sets the minimum value for the x-axis.

Parameters:
min - minimum value for the x-axis

getMin

public double getMin()
Returns the minimum value for the x-axis.

Returns:
minimum value for the x-axis

setMax

public void setMax(double max)
Sets the maximum value for the x-axis.

Parameters:
max - maximum value for the x-axis

getMax

public double getMax()
Returns the maximum value for the x-axis.

Returns:
maximum value for the x-axis