A B C D E F G I L M N O P R S T V X Y Z

A

ABS - Static variable in class freegraph.ExpressionItem.UnOperator
 
ACTION_COMPLETE - Static variable in class freegraph.ExpressionStack
Action indicating that conversion is complete
ACTION_DELETE_HOLD - Static variable in class freegraph.ExpressionStack
Action indicating that the top of the hold stack should be deleted
ACTION_ERROR - Static variable in class freegraph.ExpressionStack
Action indicating that an error has occured because an unexpected token was encountered
ACTION_HOLD_TO_RPN_STACK - Static variable in class freegraph.ExpressionStack
Action indicating that the top of the hold stack should be put on the top of the RPN stack
ACTION_INFIX_TO_HOLD_STACK - Static variable in class freegraph.ExpressionStack
Action indicating that the top of the infix stack should be put on the top of the hold stack
ACTION_INFIX_TO_RPN_STACK - Static variable in class freegraph.ExpressionStack
Action indicating that the top of the infix stack should be put on the top of the RPN stack
actionPerformed(ActionEvent) - Method in class freegraph.GraphingApplet
called by buttons and other components.
actionPerformed(ActionEvent) - Method in class freegraph.GraphPlane
dispatches action events from the popup menu.
actionPerformed(ActionEvent) - Method in class freegraph.ExpressionParsingApplet
responds to action events from convert button of text field by parsing the expression and displaying the RPN stack
actionPerformed(ActionEvent) - Method in class freegraph.EquationSolvingApplet
responds to button actions
ADD - Static variable in class freegraph.ExpressionItem.BiOperator
 
addGraphPlaneItem(GraphPlaneItem) - Method in class freegraph.GraphPlane
adds a GraphPlaneItem to be drawn when the graph is drawn
addGraphPlaneListener(GraphPlaneListener) - Method in class freegraph.GraphPlane
adds a GraphPlaneListener to receive events about the mouse location and the size of the GraphPlane.
axisChanged(double, double, double, double) - Method in class freegraph.GraphingApplet
called when the axis change on graph
axisChanged(double, double, double, double) - Method in interface freegraph.GraphPlaneListener
calles when the axis change

B

bisection(ExpressionEvaluator, ExpressionEvaluator, double, double, double, char) - Static method in class freegraph.EquationSolver
attempts to solve the equation expr1=exrp2 using bisection looking between low and high

C

convertX(double) - Method in class freegraph.GraphPlane
Converts a graph X value to a component X value
convertY(double) - Method in class freegraph.GraphPlane
Converts from a graph Y value to a component Y value
COS - Static variable in class freegraph.ExpressionItem.UnOperator
 

D

deconvertX(int) - Method in class freegraph.GraphPlane
Converts from a component X value to a graph X value
deconvertY(int) - Method in class freegraph.GraphPlane
Converts from a component Y value to a graph Y value
destroy() - Method in class freegraph.EquationSolvingApplet
destroys the option frame if it is not null.
DIV - Static variable in class freegraph.ExpressionItem.BiOperator
 
doOperation(double) - Method in class freegraph.ExpressionItem.UnOperator
 
drawItem(GraphPlane, Graphics, char) - Method in interface freegraph.GraphPlaneItem
 
drawItem(GraphPlane, Graphics, char) - Method in class freegraph.ExpressionEvaluator
called by GraphPlane to draw this GraphPlaneItem.

E

EquationSolver - class freegraph.EquationSolver.
class with static functions to find solutions to equations using either Newton's Method or Bisection techniques.
EquationSolver() - Constructor for class freegraph.EquationSolver
 
EquationSolvingApplet - class freegraph.EquationSolvingApplet.
Applet to solve equations.
EquationSolvingApplet() - Constructor for class freegraph.EquationSolvingApplet
 
evaluate() - Method in class freegraph.ExpressionEvaluator
evaluates the expression using the current variable values and returns the result (ExpressionEvaluator does some down casting on the ExpressionItems when evaluating expressions.
EXP - Static variable in class freegraph.ExpressionItem.UnOperator
 
ExpressionEvaluator - class freegraph.ExpressionEvaluator.
ExpressionEvaluator takes an expression as a String and evaluates the expression.
ExpressionEvaluator() - Constructor for class freegraph.ExpressionEvaluator
constructs a new ExpressionEvaluator with an empty expression
ExpressionEvaluator(String) - Constructor for class freegraph.ExpressionEvaluator
constructs a new ExpressionEvaluator with expression
ExpressionException - exception freegraph.ExpressionException.
ExpressionException used for exceptions in parsing expressions
ExpressionException(String) - Constructor for class freegraph.ExpressionException
Constructs a new ExpressionException with the supplied message
ExpressionItem - class freegraph.ExpressionItem.
Instances of ExpressionItem are used internally by the package.
ExpressionItem.BiOperator - class freegraph.ExpressionItem.BiOperator.
A BiOperator is an ExpressionItem used to hold a all binary operators.
ExpressionItem.BiOperator(int) - Constructor for class freegraph.ExpressionItem.BiOperator
 
ExpressionItem.Number - class freegraph.ExpressionItem.Number.
NumberExpressionItem is an ExpressionItem to represent a literal Number.
ExpressionItem.Number(double) - Constructor for class freegraph.ExpressionItem.Number
 
ExpressionItem.Parenthesis - class freegraph.ExpressionItem.Parenthesis.
A Parenthesis is an ExpressionItem used to hold a single parenthesis.
ExpressionItem.Parenthesis(int) - Constructor for class freegraph.ExpressionItem.Parenthesis
 
ExpressionItem.UnOperator - class freegraph.ExpressionItem.UnOperator.
A UnOperator is an ExpressionItem used to hold a all unary operators.
ExpressionItem.UnOperator(int) - Constructor for class freegraph.ExpressionItem.UnOperator
 
ExpressionItem.Variable - class freegraph.ExpressionItem.Variable.
A VariableExpressionItem is an ExpressionItem used to hold a single character variable.
ExpressionItem.Variable(char) - Constructor for class freegraph.ExpressionItem.Variable
 
ExpressionItem() - Constructor for class freegraph.ExpressionItem
 
ExpressionParsingApplet - class freegraph.ExpressionParsingApplet.
ExpressionParsingApplet displays the RPN expression stack generated from an infix expression entered by the user.
ExpressionParsingApplet() - Constructor for class freegraph.ExpressionParsingApplet
 
ExpressionStack - class freegraph.ExpressionStack.
ExpressionStack converts a free-form Infix expression into Postfix, or Reverse Polish Notation (RPN).
ExpressionStack() - Constructor for class freegraph.ExpressionStack
Constructs a new ExpressionStack which initially has no infixExpression
ExpressionStack(String) - Constructor for class freegraph.ExpressionStack
Constructs a new ExpressionStack for the infixExpression.

F

freegraph - package freegraph
 

G

getAction(ExpressionItem) - Method in class freegraph.ExpressionItem
 
getAction(ExpressionItem) - Method in class freegraph.ExpressionItem.Number
 
getAction(ExpressionItem) - Method in class freegraph.ExpressionItem.Variable
always moves this to RPN stack.
getAction(ExpressionItem) - Method in class freegraph.ExpressionItem.Parenthesis
If this is a LEFT parenthesis, this is moved to the hold stack; If it this is a RIGHT the hold stack is moved to the RPN stack, except if exprItem is a Parenthesis (delete hold stack) or null (error).
getAction(ExpressionItem) - Method in class freegraph.ExpressionItem.BiOperator
If exprItem is null or Parenthesis or if exprItem is a BiOperator with order of operations less than this, this item is moved to the hold stack.
getAction(ExpressionItem) - Method in class freegraph.ExpressionItem.UnOperator
Always moves this to the RPN stack.
getAppletInfo() - Method in class freegraph.GraphingApplet
 
getAppletInfo() - Method in class freegraph.ExpressionParsingApplet
 
getAppletInfo() - Method in class freegraph.EquationSolvingApplet
 
getColor() - Method in class freegraph.ExpressionEvaluator
returns the color of the expression.
getExpression() - Method in class freegraph.ExpressionEvaluator
returns the expression as the String it was set with.
getInfixExpression() - Method in class freegraph.ExpressionStack
 
getKind() - Method in class freegraph.ExpressionItem.Parenthesis
returns the kind of parenthesis (LEFT or RIGHT)
getNumber() - Method in class freegraph.ExpressionItem.Number
 
getParameter(String, String) - Method in class freegraph.GraphingApplet
returns the value of a parameter as a String.
getParameter(String, String) - Method in class freegraph.ExpressionParsingApplet
returns the value of a parameter as a String.
getParameter(String, String) - Method in class freegraph.EquationSolvingApplet
returns the value of a parameter as a String.
getParameterAsInt(String, int) - Method in class freegraph.GraphingApplet
returns the value of a parameter as an int.
getParameterAsInt(String, int) - Method in class freegraph.ExpressionParsingApplet
returns the value of a parameter as an int.
getParameterAsInt(String, int) - Method in class freegraph.EquationSolvingApplet
returns the value of a parameter as an int.
getParameterAsInt(String, int, int) - Method in class freegraph.GraphingApplet
returns the value of a parameter as an int.
getParameterAsInt(String, int, int) - Method in class freegraph.ExpressionParsingApplet
returns the value of a parameter as an int.
getParameterAsInt(String, int, int) - Method in class freegraph.EquationSolvingApplet
returns the value of a parameter as an int.
getParameterInfo() - Method in class freegraph.GraphingApplet
 
getValue(char) - Method in class freegraph.VariableValues
returns the value of the variable ch.
getVariable() - Method in class freegraph.ExpressionItem.Variable
returns the character for this variable
getVariables() - Method in class freegraph.ExpressionEvaluator
returns the VariableValues object representing the variables for this expression evaluator.
getXMax() - Method in class freegraph.GraphPlane
returns the maximum X value for the GraphPlane
getXMin() - Method in class freegraph.GraphPlane
returns the minimum X value for the GraphPlane
getYMax() - Method in class freegraph.GraphPlane
returns the maximum Y value for the GraphPlane
getYMin() - Method in class freegraph.GraphPlane
returns the minimum Y value for the GraphPlane
GraphingApplet - class freegraph.GraphingApplet.
Applet for GraphPlane.
GraphingApplet() - Constructor for class freegraph.GraphingApplet
constructs a new GraphingApplet
GraphingApplet(boolean) - Constructor for class freegraph.GraphingApplet
Creates a new GraphingApplet, with the provided InFrame property.
GraphPlane - class freegraph.GraphPlane.
GraphPlane is a X-Y or cartesian coordinate plane which draws the axis and a list of GraphPlaneItems (typically instances of ExpressionEvaluator).
GraphPlane() - Constructor for class freegraph.GraphPlane
constructs a new GraphPlane
GraphPlaneItem - interface freegraph.GraphPlaneItem.
instances of GraphPlaneItems are contained by GraphPlane.
graphPlaneItems() - Method in class freegraph.GraphPlane
returns an Enumeration of the GraphPlanItems
GraphPlaneListener - interface freegraph.GraphPlaneListener.
Listener interface for GraphPlane

I

init() - Method in class freegraph.GraphingApplet
initializes the Applet by calling internalInit which sets up the GUI
init() - Method in class freegraph.ExpressionParsingApplet
Initialize the applet by setting up the GUI.
init() - Method in class freegraph.EquationSolvingApplet
initializes the Applet by setting up the GUI

L

LEFT - Static variable in class freegraph.ExpressionItem.Parenthesis
indicats Left parenthesis
LN - Static variable in class freegraph.ExpressionItem.UnOperator
 
LOG - Static variable in class freegraph.ExpressionItem.UnOperator
 

M

main(String[]) - Static method in class freegraph.GraphingApplet
 
main(String[]) - Static method in class freegraph.EquationSolver
 
mouseClicked(MouseEvent) - Method in class freegraph.GraphPlane
 
mouseDragged(MouseEvent) - Method in class freegraph.GraphPlane
draws the zoom (invert) rectangle
mouseMoved(MouseEvent) - Method in class freegraph.GraphPlane
converts the position of the mouse to graph coordinates and fires event to GraphPlaneListeners.
mousePosMoved(double, double) - Method in class freegraph.GraphingApplet
called when the mouse moves on graph, the position is shown on the screen
mousePosMoved(double, double) - Method in interface freegraph.GraphPlaneListener
called when the position of the mouse moves
mousePressed(MouseEvent) - Method in class freegraph.GraphPlane
If the left mouse button is pressed, global variables are used to store the mouse location for use with a zoom.
If right mouse button is pressed, the popup menu is displayed.
mouseReleased(MouseEvent) - Method in class freegraph.GraphPlane
If a zoom rectangle is being drawn, the graph's axis are changed and the graph is updated.
MULT - Static variable in class freegraph.ExpressionItem.BiOperator
 

N

NEG - Static variable in class freegraph.ExpressionItem.UnOperator
 
newton(ExpressionEvaluator, ExpressionEvaluator, double, double, double, char) - Static method in class freegraph.EquationSolver
attempts to zero in on a solution using Newtons equation solving technique.
NoSolutionException - exception freegraph.NoSolutionException.
Exception used by EquationSolver to indicate that a Solution could not be found for the equation.
NoSolutionException(String) - Constructor for class freegraph.NoSolutionException
 

O

OPERATORS - Static variable in class freegraph.ExpressionItem.BiOperator
 
OPERATORS - Static variable in class freegraph.ExpressionItem.UnOperator
 

P

paint(Graphics) - Method in class freegraph.GraphPlane
paints the graph by drawing the axis and then drawing each GraphPlaneItem.
POW - Static variable in class freegraph.ExpressionItem.BiOperator
 

R

removeGraphPlaneItem(GraphPlaneItem) - Method in class freegraph.GraphPlane
removes a GraphPlaneItem
removeGraphPlaneListener(GraphPlaneListener) - Method in class freegraph.GraphPlane
removes a GraphPlaneListener
repeatBisection(ExpressionEvaluator, ExpressionEvaluator, double, double, double, char) - Static method in class freegraph.EquationSolver
attempts to solve the equation expr1=exrp2 using bisection repeatedly by moving trying various starting points.
repeatNewton(ExpressionEvaluator, ExpressionEvaluator, double, double, double, char) - Static method in class freegraph.EquationSolver
attempts to solve the equation expr1=exrp2 using Newton's method and repeatedly moving to different starting points looking for an answer.
reset() - Method in class freegraph.GraphPlane
resets the GraphPlane to its default values
RIGHT - Static variable in class freegraph.ExpressionItem.Parenthesis
indicats Right parenthesis
ROOT - Static variable in class freegraph.ExpressionItem.BiOperator
 

S

setColor(Color) - Method in class freegraph.ExpressionEvaluator
sets the color of the expression.
setExpression(String) - Method in class freegraph.ExpressionEvaluator
sets the expression for the evaluator.
setInfixExpression(String) - Method in class freegraph.ExpressionStack
sets the infix expression for the stack.
setValue(char, double) - Method in class freegraph.VariableValues
sets the value of the variable ch.
SIN - Static variable in class freegraph.ExpressionItem.UnOperator
 
SQR - Static variable in class freegraph.ExpressionItem.UnOperator
 
SQRT - Static variable in class freegraph.ExpressionItem.UnOperator
 
SUBTR - Static variable in class freegraph.ExpressionItem.BiOperator
 

T

TAN - Static variable in class freegraph.ExpressionItem.UnOperator
 
toString() - Method in class freegraph.ExpressionItem.Number
 
toString() - Method in class freegraph.ExpressionItem.Variable
 
toString() - Method in class freegraph.ExpressionItem.Parenthesis
 
toString() - Method in class freegraph.ExpressionItem.BiOperator
 
toString() - Method in class freegraph.ExpressionItem.UnOperator
 
toString() - Method in class freegraph.ExpressionEvaluator
 

V

VariableValues - class freegraph.VariableValues.
class used to hold a set of doubles for variables A-Z
VariableValues() - Constructor for class freegraph.VariableValues
 

X

xintercept(ExpressionEvaluator, ExpressionEvaluator, double, double, double, char) - Static method in class freegraph.EquationSolver
returns the X-Intercept of the tangent to the equation expr1=expr2 at value.
XMAX_DEFAULT - Static variable in class freegraph.GraphPlane
 
XMIN_DEFAULT - Static variable in class freegraph.GraphPlane
 

Y

YMAX_DEFAULT - Static variable in class freegraph.GraphPlane
 
YMIN_DEFAULT - Static variable in class freegraph.GraphPlane
 

Z

zoomin() - Method in class freegraph.GraphPlane
zooms out the graph
zoomout() - Method in class freegraph.GraphPlane
zooms in the graph

A B C D E F G I L M N O P R S T V X Y Z