jhplot
Class F2D

java.lang.Object
  extended by jhplot.DrawOptions
      extended by jhplot.F2D

public class F2D
extends DrawOptions

Create 2D function.


Constructor Summary
F2D(java.lang.String name, double Xmin, double Xmax, double Ymin, double Ymax)
          Create a function in 2D.
 
Method Summary
 double getMaxX()
          Get Max value in X
 double getMaxY()
          Get Max value in Y
 double getMinX()
          Get Min value in X
 double getMinY()
          Get Min value in Y
 java.lang.String getName()
          Get the name of the function used for evaluation
 int getPoints()
          Get the number of points for evaluation of a function
 java.lang.String getTitle()
          Get the title
 void setMaxX(double max)
          Set Max value in X
 void setMaxY(double max)
          Set Max value in Y
 void setMinX(double min)
          Set Min in X
 void setMinY(double min)
          Set Min value in Y
 void setName(java.lang.String name)
          Sets a name of the function, i.e.
 void setPoints(int bins)
          Get the number of points
 void setTitle(java.lang.String title)
          Set a title
 
Methods inherited from class jhplot.DrawOptions
copyLinePars, getBinWidth, getDrawOption, getDrawOptions, getLegend, getLineParm, getNameX, getNameY, getNameZ, getType, printDrawOptions, printDrawOptions, setBinWidth, setColor, setDrawLine, setDrawOption, setDrawSymbol, setErr, setErrAll, setErrColor, setErrColorX, setErrColorY, setErrFill, setErrFillColor, setErrFillColor, setErrSys, setErrSysFill, setErrSysFillColor, setErrSysFillColor, setErrSysX, setErrSysY, setErrTicSize, setErrX, setErrY, setFill, setFillColor, setFillColorTransparency, setGraphStyle, setLegend, setNameX, setNameY, setNameZ, setPenDash, setPenDash, setPenWidth, setPenWidthErr, setPenWidthErrSys, setStyle, setSymbol, setSymbolSize, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

F2D

public F2D(java.lang.String name,
           double Xmin,
           double Xmax,
           double Ymin,
           double Ymax)
Create a function in 2D. Uses 500 points between min and max value for evaluation. The function may have up to 3 independent variables in it (x,y,z).

Known Bugs This class is not fool proof. If the answer is wrong then use the parenthesis to force the order of evaluation. The most likely place this will be needed is in the use of the power command. The exponent is not evaluated correctly if it begins with a unary operator.

List of commands

Parameters:
name - String representing the function.
Xmin - Min value in X
Xmax - Max value in X
Ymin - Min value in Y
Ymax - Max value in Y
Method Detail

setTitle

public void setTitle(java.lang.String title)
Set a title

Overrides:
setTitle in class DrawOptions
Parameters:
title - Title

getTitle

public java.lang.String getTitle()
Get the title

Overrides:
getTitle in class DrawOptions
Returns:
Title

setMinX

public void setMinX(double min)
Set Min in X

Parameters:
min - Min value

getMinX

public double getMinX()
Get Min value in X

Returns:
Min value in X

setMinY

public void setMinY(double min)
Set Min value in Y

Parameters:
min - Min value in Y

getMinY

public double getMinY()
Get Min value in Y

Returns:
Min value in Y

setMaxX

public void setMaxX(double max)
Set Max value in X

Parameters:
max - Max value in X

setName

public void setName(java.lang.String name)
Sets a name of the function, i.e. what will be used for evaluation

Parameters:
name - Name

getName

public java.lang.String getName()
Get the name of the function used for evaluation

Returns:
Name

getMaxX

public double getMaxX()
Get Max value in X

Returns:
Max value in X

setMaxY

public void setMaxY(double max)
Set Max value in Y

Parameters:
max - Max value in Y

getMaxY

public double getMaxY()
Get Max value in Y

Returns:
Max value in Y

setPoints

public void setPoints(int bins)
Get the number of points

Parameters:
bins - Number of points

getPoints

public int getPoints()
Get the number of points for evaluation of a function

Returns:
Number of points


jHepWork 1.1 (C) Chekanov