|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
ArithmeticExpressionException
with no detail message.
ArithmeticExpressionException
with the specified detail message.
FunctionLab
equation graphing
package. Panel that optionally draws a border around itself.
insets=2, and border showing.
true when running under a web browser;
false when running as an application.
LayoutManager for the top level of the applet, it switches between
a help screen or the regular view of the equations, graph, table, etc.
Assembler that handles specific
constant values such as pi or e.
constants = 'pi' | 'e'.
EquationIterator for difference equations, which have initial conditions and
where the independent variable n steps forward by discrete units.
DifferenceEqLab equation graphing
applet.
diffEqSymbol= ('u' | 'v' | 'w') '(' 'n' '-' '1' ')'.
- DiffEqSymbolAssembler - class com.myphysicslab.graphlab.arithmetic.DiffEqSymbolAssembler.
- The stack should have a token,
u, v, or w, indicating what
difference equation value is desired; we pop that and push the
desired difference equation value. - DiffEqSymbolAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.DiffEqSymbolAssembler
-
- DiffEqVariableAssembler - class com.myphysicslab.graphlab.arithmetic.DiffEqVariableAssembler.
- The stack should have a token
n indicating what
variable is desired; we pop that and push the
desired variable. - DiffEqVariableAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.DiffEqVariableAssembler
-
- DifferenceEqLab - class com.myphysicslab.graphlab.DifferenceEqLab.
- A graphing calculator very similar to
FunctionLab,
but with difference equations.
- DifferenceEqLab() -
Constructor for class com.myphysicslab.graphlab.DifferenceEqLab
- A constructor that does nothing; because the applet is not
yet loaded by the browser, so there is no window at this point.
- DifferenceEqLab(boolean) -
Constructor for class com.myphysicslab.graphlab.DifferenceEqLab
- A constructor that does almost nothing; it only sets the field
EnviroMathLab.browserMode to indicate whether we are running under
a web browser.
- DivideAssembler - class com.myphysicslab.graphlab.arithmetic.DivideAssembler.
- Pop two numbers from the stack and push the result of
dividing the top number into the one below it.
- DivideAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.DivideAssembler
-
- divideFactor() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that for the grammar rule:
divideFactor = '/' factor.
- DOTS -
Static variable in class com.myphysicslab.graphlab.Graph
- Specifies whether dots or lines are drawn.
- DoublePair - class com.myphysicslab.graphlab.DoublePair.
- Provides a way to pass two
double's
(named x and y) as a single object. - DoublePair(double, double) -
Constructor for class com.myphysicslab.graphlab.DoublePair
-
EnviroMathLab.browserMode to indicate whether we are running under
a web browser.
TextField where the user can enter the equation.
TextField where the user can enter the equation.
TextField where the user can enter the equation.
TextField where the user can enter the equation.
TextField where the user can enter the equation.
TextField where the user can enter the equation.
TextField where the user can enter the equation.
x and y
values to display the equations, and provides an
EquationIterator
for a graph or table to step through the values of the equations.x and y values from
a set of equations, without knowing anything about how to evaluate
the equations.
EquationIterator with the given set of equation strings.
TextField containing an equation or parameter
this listener causes the graph and table to redraw. EquationListener that will cause
the specified graph and table to update when the TextField it is
listening to changes.
EquationListener that enforces a minimum
value on the TextField, and updates the graph and table when
the TextField changes.
expFactor = '^' factor.
- expression -
Variable in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Lazy initialization here avoids the infinite
recursion inherent in the grammar.
- expression() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that will recognize an arithmetic
expression.
factor = phrase expFactor | phrase.
- FAT -
Static variable in class com.myphysicslab.graphlab.Graph
- Specifies thickness for drawing dots or lines.
- focusLost(FocusEvent) -
Method in class com.myphysicslab.graphlab.EquationListener
-
- formatNum(double) -
Static method in class com.myphysicslab.graphlab.Utility
- Formats a number in decimal format if possible,
but switches to scientific (exponential) notation
when the number is very large or very small.
- frame -
Static variable in class com.myphysicslab.graphlab.EnviroMathLab
- The window that this applet appears within.
- function() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that for the grammar rule:
function = 'sin' | 'cos' | 'log' | 'exp' | 'tan' | 'sqrt' | 'abs'.
- FunctionAssembler - class com.myphysicslab.graphlab.arithmetic.FunctionAssembler.
- The stack should have a number on top, and the name of
the function to apply below that; pop those and push
the result of applying the function to the number.
- FunctionAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.FunctionAssembler
-
- FunctionLab - class com.myphysicslab.graphlab.FunctionLab.
- A graphing calculator that allows the user to enter equations and
see the equations in graph and table form.
- FunctionLab() -
Constructor for class com.myphysicslab.graphlab.FunctionLab
- A constructor that does nothing; because the applet is not
yet loaded by the browser, so there is no window at this point.
- FunctionLab(boolean) -
Constructor for class com.myphysicslab.graphlab.FunctionLab
- A constructor that does almost nothing; it only sets the field
EnviroMathLab.browserMode to indicate whether we are running under
a web browser.
Color, one for each equation, to be used when
drawing the equations.
Graph.LINES or Graph.DOTS.
String version of the equation.
String's of equations,
for all the defined equations.
Image of the graph, suitable for placing
on the clipboard.
x value for the table view of the equations.
x step (increment amount) for the table view of the equations.
Image if the flavor requested is
DataFlavor.imageFlavor.
DataFlavor.imageFlavor.
String of version information for this applet and java version.
String of version information for this applet and java version.
x value (right side of graph).
x value (left side of graph).
x value, which is the independent variable.
y value (top side of graph).
y value (bottom side of graph).
y value of the desired equation.
EquationDefiner.
EquationDefiner.
ImageSelection to hold the
given Image while it is on the clipboard.
TextField where the user can enter the initial condition
for the corresponding equation.
TextField where the user can enter the initial condition
for the corresponding equation.
TextField where the user can enter the initial condition
for the corresponding equation.
true if specified flavor is supported.
Graph
for use in the trace feature, by calling the method Graph.moveTrace(java.lang.String).
Container with various controls for the applet.
Button, which copies the graph
to the clipboard when clicked.
Button, which copies the table
to the clipboard when clicked.
Button, which updates the graph and table when clicked.
Choice that controls whether the Graph
displays lines or dots.
Container with items allowing the user to specify equations.
EquationIterator which starts at the given xMin, and
increments by xStep.
Graph object for displaying equations.
Container with items allowing the user to set graph parameters.
Button, which will display the help card when clicked.
Container displaying the help text and a "back" button.
Container with the main user interface components of this applet,
such as equation area, graph parameters, graph, buttons, trace output, table.
Container with the main user interface components of this applet,
such as equation area, graph parameters, graph, buttons, trace output, table.
Container with the table header and table.
Container with headings for the columns of the table.
Choice that controls the thickness of the Graph.
Container with Labels for
displaying trace information.
Label with version information
about this applet.
minusTerm = '-' term.
- mouseClicked(MouseEvent) -
Method in class com.myphysicslab.graphlab.TraceButtons
- This method does nothing, but is needed to implement
MouseListener interface.
- mouseClicked(MouseEvent) -
Method in class com.myphysicslab.graphlab.TableButtons
- This method does nothing, but is needed to implement
MouseListener interface.
- mouseClicked(MouseEvent) -
Method in class com.myphysicslab.graphlab.Graph
- This method does nothing, but is needed as part of the MouseListener interface.
- mouseEntered(MouseEvent) -
Method in class com.myphysicslab.graphlab.TraceButtons
- This method does nothing, but is needed to implement
MouseListener interface.
- mouseEntered(MouseEvent) -
Method in class com.myphysicslab.graphlab.TableButtons
- This method does nothing, but is needed to implement
MouseListener interface.
- mouseEntered(MouseEvent) -
Method in class com.myphysicslab.graphlab.Graph
- This method does nothing, but is needed as part of the MouseListener interface.
- mouseExited(MouseEvent) -
Method in class com.myphysicslab.graphlab.TraceButtons
- When the mouse exits the
TraceButtons region,
this method unhighlights any highlighted buttons.
- mouseExited(MouseEvent) -
Method in class com.myphysicslab.graphlab.TableButtons
- If the mouse moves out of the area of the
TableButtons
this de-highlights the active button and
interrupts the TableScrollThread to stop scrolling the Table.
- mouseExited(MouseEvent) -
Method in class com.myphysicslab.graphlab.Graph
- This method does nothing, but is needed as part of the MouseListener interface.
- mousePressed(MouseEvent) -
Method in class com.myphysicslab.graphlab.TraceButtons
- When the mouse is pressed
this method highlights the appropriate button,
and calls
Graph.moveTrace(java.lang.String) with an
argument of "up", "down", "left", or "right",
depending on which button was pressed.
- mousePressed(MouseEvent) -
Method in class com.myphysicslab.graphlab.TableButtons
- When the mouse is pressed on a button,
this starts a
TableScrollThread to scroll the
Table; also highlights the button being pressed.
- mousePressed(MouseEvent) -
Method in class com.myphysicslab.graphlab.Graph
- Finds nearest point on nearest equation to the selected point, and sets
the trace feature to that point.
- mouseReleased(MouseEvent) -
Method in class com.myphysicslab.graphlab.TraceButtons
- When the mouse is released
this method unhighlights any highlighted buttons.
- mouseReleased(MouseEvent) -
Method in class com.myphysicslab.graphlab.TableButtons
- When the mouse is released
this de-highlights the active button and
interrupts the
TableScrollThread to stop scrolling the Table.
- mouseReleased(MouseEvent) -
Method in class com.myphysicslab.graphlab.Graph
- This method does nothing, but is needed as part of the MouseListener interface.
- moveTrace(String) -
Method in class com.myphysicslab.graphlab.Graph
- Moves the trace left or right (changes
x value)
or up/down (changes which equation is being traced).
- MyFrame - class com.myphysicslab.graphlab.MyFrame.
MyFrame is only used when running as an application; it provides
a window to run in, and the methods needed to support running
the applet as though it were in a browser.
- MyFrame(Applet) -
Constructor for class com.myphysicslab.graphlab.MyFrame
- Creates a new
MyFrame to display the specified Applet.
- MyWindowAdapter - class com.myphysicslab.graphlab.MyWindowAdapter.
- A listener for window events, such
as when a window is closed or deactivated.
- MyWindowAdapter(Applet) -
Constructor for class com.myphysicslab.graphlab.MyWindowAdapter
- Creates a new window listener which will modify the given
Applet.
negTerm = '-' regTerm.
- next() -
Method in class com.myphysicslab.graphlab.StandardEquationIterator
-
- next() -
Method in class com.myphysicslab.graphlab.EquationIterator
- Advances the
EquationIterator to the next x value.
- next() -
Method in class com.myphysicslab.graphlab.DiffEqEquationIterator
-
- NumAssembler - class com.myphysicslab.graphlab.arithmetic.NumAssembler.
- Replace the top token in the stack with the token's
Double value.
- NumAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.NumAssembler
-
- nValue -
Static variable in class com.myphysicslab.graphlab.arithmetic.DiffEqParser
- Current value of variable
n.
Graphics environment.
phrase = super.phrase | diffEqSymbol.
- phrase() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that for the grammar rule:
phrase = '(' expression ')' | Num | function '(' expression ')' | constants | variables.
- PlusAssembler - class com.myphysicslab.graphlab.arithmetic.PlusAssembler.
- Pop two numbers from the stack and push their sum.
- PlusAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.PlusAssembler
-
- plusTerm() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that for the grammar rule:
plusTerm = '+' term.
tableXMin, tableXStep.
regTerm = factor (timesFactor | divideFactor)*.
- requestResume() -
Method in class com.myphysicslab.graphlab.TableScrollThread
- Clears a flag that put this thread into a "suspended" state,
allowing the thread to resume its activities.
- requestSuspend() -
Method in class com.myphysicslab.graphlab.TableScrollThread
- Sets a flag that will cause this thread to be enter a "suspended"
state where it continuously calls
Object.wait(long) until
the flag is turned off by calling TableScrollThread.requestResume().
- run() -
Method in class com.myphysicslab.graphlab.TableScrollThread
- Calls the
Table.scrollUp() or Table.scrollDown() methods
to scroll the Table up or down.
x value for the table view of the equations.
ArithmeticParser class.
DiffEqParser class.EquationIterator for equations of a single x variable.
StandardEquationIterator with the given equations, starting
the x value at the given xMin.
EquationDefiner. Table showing the equations from the
specified EquationDefiner.
TableScrollThread to scroll the
Table. TableButtons that will scroll the
specified Table.
Thread to assist with scrolling in the Table.
TableScrollThread which will scroll
the specified table in the specified direction (either up or down).
term = negTerm | unaryPlusTerm | regTerm.
- TestArithmeticParser - class com.myphysicslab.graphlab.arithmetic.TestArithmeticParser.
-
- TestArithmeticParser() -
Constructor for class com.myphysicslab.graphlab.arithmetic.TestArithmeticParser
-
- TestDiffEqParser - class com.myphysicslab.graphlab.arithmetic.TestDiffEqParser.
-
- TestDiffEqParser() -
Constructor for class com.myphysicslab.graphlab.arithmetic.TestDiffEqParser
-
- THIN -
Static variable in class com.myphysicslab.graphlab.Graph
- Specifies thickness for drawing dots or lines.
- TimesAssembler - class com.myphysicslab.graphlab.arithmetic.TimesAssembler.
- Pop two numbers from the stack and push the result of
multiplying the top number by the one below it.
- TimesAssembler() -
Constructor for class com.myphysicslab.graphlab.arithmetic.TimesAssembler
-
- timesFactor() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that for the grammar rule:
timesFactor = factor | '*' factor.
- TraceButtons - class com.myphysicslab.graphlab.TraceButtons.
- Displays four triangular buttons for the user to control the trace feature.
- TraceButtons(Graph) -
Constructor for class com.myphysicslab.graphlab.TraceButtons
- Creates new
TraceButtons which will operate the
trace feature on the given Graph.
- TraceKeyListener - class com.myphysicslab.graphlab.TraceKeyListener.
- Interprets keystrokes as part of the trace feature, sending
information about key events to the
Graph.
- TraceKeyListener(Graph) -
Constructor for class com.myphysicslab.graphlab.TraceKeyListener
- Creates a new
TraceKeyListener which sends
information about key events to the given Graph.
- traceX -
Variable in class com.myphysicslab.graphlab.EnviroMathLab
- Displays the coordinates of the current trace point, which is
selected by the user clicking in the graph or using the trace buttons.
- traceY -
Variable in class com.myphysicslab.graphlab.EnviroMathLab
- Displays the coordinates of the current trace point, which is
selected by the user clicking in the graph or using the trace buttons.
unaryPlusTerm = '+' regTerm.
- unvisitedString(Vector) -
Method in class com.myphysicslab.graphlab.arithmetic.SpecificNum
- Returns a textual description of this parser.
- Utility - class com.myphysicslab.graphlab.Utility.
- Provides a method for formatting numbers.
- uValue -
Static variable in class com.myphysicslab.graphlab.arithmetic.DiffEqParser
- Current value of
u(n-1)
x is the xValue passed in.
n, u(n-1), v(n-1), and w(n-1).
x) indicating what
variable is desired; we pop that and push the
desired variable.variables from ArithmeticParser,
returns a parser that for the grammar rule:
variables = 'n'.
- variables() -
Method in class com.myphysicslab.graphlab.arithmetic.ArithmeticParser
- Returns a parser that for the grammar rule:
variables = 'x'.
- version -
Variable in class com.myphysicslab.graphlab.EnviroMathLab
- Current version number of this applet.
- vValue -
Static variable in class com.myphysicslab.graphlab.arithmetic.DiffEqParser
- Current value of
v(n-1)
destroy method on the applet and
then calls System.exit().
x) indicating what
variable is desired; we pop that and push the
desired variable.
n indicating what
variable is desired; we pop that and push the
value of that variable.
u, v, or w, indicating what
difference equation value is desired; we pop that and push the
desired difference equation value.
pi or e);
we pop that and push the
desired constant.
w(n-1)
x variable.
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||