Index of all Fields and Methods
All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- absFunc().
Constructor for class expression.absFunc
-
- acosFunc().
Constructor for class expression.acosFunc
-
- actanFunc().
Constructor for class expression.actanFunc
-
- action(Event, Object).
Method in class ui.Key
- Called if an action occurs in the Component.
- action(Event, Object).
Method in class ui.KeyPad
- Called when a key is pressed.
- addFunc().
Constructor for class expression.addFunc
-
- appendSymbol(Symbol).
Method in class ui.Display
- Take a new input symbol in the calculation mode.
- appendSymbol(Symbol).
Method in class expression.Expression
- Append a symbol to the end of an expression.
- apply(double).
Method in class expression.absFunc
- Returns the absolute double value of a.
- apply(double).
Method in class expression.acosFunc
- Returns the arc cosine of a, in the range of 0.0 through Pi.
- apply(double).
Method in class expression.actanFunc
- Returns the arc cotangent of a, in the range of -Pi/2 through Pi/2.
- apply(double).
Method in class expression.asinFunc
- Returns the arc sine of a, in the range of -Pi/2 through Pi/2.
- apply(double).
Method in class expression.atanFunc
- Returns the arc tangent of a, in the range of -Pi/2 through Pi/2.
- apply(double).
Method in class expression.ceilFunc
- Returns the "ceiling" or smallest whole number greater than or equal to a.
- apply(double).
Method in class expression.cosFunc
- Returns the trigonometric cosine of an angle.
- apply(double).
Method in class expression.ctanFunc
- Returns the trigonometric cotangent of an angle.
- apply(double).
Method in class expression.exp10Func
- Returns the exponential number e(2.718...) raised to the power of a.
- apply(double).
Method in class expression.expFunc
- Returns the exponential number e(2.718...) raised to the power of a.
- apply(double).
Method in class expression.floorFunc
- Returns the "floor" or largest whole number less than or equal to a.
- apply(double).
Method in class expression.Function
- Apply function to a single argument.
- apply(double).
Method in class expression.lnFunc
- Returns the natural logarithm (base e) of a.
- apply(double).
Method in class expression.logFunc
- Returns the logarithm (base 10) of a.
- apply(double).
Method in class expression.roundFunc
- Rounds off a double value by first adding 0.5 to it and then returning
the largest integer that is less than or equal to this new value.
- apply(double).
Method in class expression.sinFunc
- Returns the trigonometric sine of an angle.
- apply(double).
Method in class expression.sqrFunc
- Returns the square root of a.
- apply(double).
Method in class expression.sqrtFunc
- Returns the square root of a.
- apply(double).
Method in class expression.tanFunc
- Returns the trigonometric tangent of an angle.
- apply(double).
Method in class expression.twoArgFunction
- Apply function to a single argument.
- apply(double, double).
Method in class expression.addFunc
- Returns addition of two arguments a+b.
- apply(double, double).
Method in class expression.divFunc
- Returns the division of two arguments a/b.
- apply(double, double).
Method in class expression.Function
- Apply function to two arguments.
- apply(double, double).
Method in class expression.multFunc
- Returns multiplication of two arguments a*b.
- apply(double, double).
Method in class expression.oneArgFunction
- Apply function to two arguments.
- apply(double, double).
Method in class expression.powFunc
- Returns power of two arguments a^b.
- apply(double, double).
Method in class expression.subFunc
- Returns substraction of two arguments a-b.
- asinFunc().
Constructor for class expression.asinFunc
-
- atanFunc().
Constructor for class expression.atanFunc
-
- ceilFunc().
Constructor for class expression.ceilFunc
-
- clean().
Method in class ui.Display
- Clean the whole display including the graph and result area.
- color.
Variable in class ui.KeyLayout
- background color of the key.
- cosFunc().
Constructor for class expression.cosFunc
-
- ctanFunc().
Constructor for class expression.ctanFunc
-
- disable().
Method in class ui.Key
- Disable the key.
- Display().
Constructor for class ui.Display
- Construct a default empty display.
- divFunc().
Constructor for class expression.divFunc
-
- DRAW_EXPRESSION.
Static variable in class ui.Graph
- Mode of plotting expression.
- DRAW_MESSAGE.
Static variable in class ui.Graph
- Mode of drawing multi-line messages.
- DRAW_NOTHING.
Static variable in class ui.Graph
- Mode of drawing blank graph.
- drawGraph(String).
Method in class ui.Display
- Take an expression string, draw it in the graph area.
- E.
Static variable in class expression.Variable
- The global variable E.
- EMPTY_NODE.
Static variable in class expression.ExpressionEvalException
-
- enable().
Method in class ui.Key
- Enable the key.
- enode.
Variable in class expression.Expression
- The root expression node generated by parsing the expression string.
- enode.
Variable in class expression.Symbol
- The reduced expression node, if symbol type if SYM_EXPRNODE.
- equal(Symbol).
Method in class expression.Symbol
- Returns true if current symbol has the same precedence as symbol a.
- etype.
Variable in class expression.ExprNode
- Expression node type.
- eval().
Method in class expression.Expression
- Evaluate the expression.
- eval().
Method in class expression.ExprNode
- Evaluate the expression node.
- evalExpression(String).
Method in class ui.Display
- Take an expression string, evaluate it and display the result in
result area.
- exp10Func().
Constructor for class expression.exp10Func
-
- EXPECT_BINFUNC.
Static variable in class expression.ExpressionEvalException
-
- EXPECT_TERMINAL.
Static variable in class expression.ExpressionParseException
-
- EXPECT_UNARYFUNC.
Static variable in class expression.ExpressionEvalException
-
- expFunc().
Constructor for class expression.expFunc
-
- ExprDouble().
Constructor for class expression.ExprDouble
-
- expression.
Variable in class ui.Display
- Expression to be calculated or drawn by the display.
- expression.
Variable in class ui.Graph
- The expression to be plot.
- Expression().
Constructor for class expression.Expression
- Construct an empty expression.
- Expression(String).
Constructor for class expression.Expression
- Construct an expression by a string representation.
- ExpressionEvalException().
Constructor for class expression.ExpressionEvalException
- Construct a ExpressionEvalException with no detail message.
- ExpressionEvalException(String).
Constructor for class expression.ExpressionEvalException
- Construct a ExpressionEvalException with specified detail message.
- ExpressionException().
Constructor for class expression.ExpressionException
- Construct a ExpressionException with no detail message.
- ExpressionException(String).
Constructor for class expression.ExpressionException
- Construct a ExpressionException with specified detail message.
- ExpressionParseException().
Constructor for class expression.ExpressionParseException
-
- ExpressionParseException(String).
Constructor for class expression.ExpressionParseException
-
- ExprNode().
Constructor for class expression.ExprNode
- Create a default empty expression node.
- ExprStringBufferInputStream(String).
Constructor for class expression.ExprStringBufferInputStream
- Construct a string buffer input stream for the specified string.
- floorFunc().
Constructor for class expression.floorFunc
-
- func.
Variable in class expression.Symbol
- The function of a TK_FUNCTION token.
- Function().
Constructor for class expression.Function
-
- FunctionSet().
Constructor for class expression.FunctionSet
-
- getErrMsg().
Method in class expression.Expression
- Return a string indicates where the parsing error occurs.
- getFunc(String).
Static method in class expression.FunctionSet
- Fetch a function by passing in its string representation.
- getKey(String).
Method in class ui.KeyPad
- Get a key from a string.
- Graph().
Constructor for class ui.Graph
- Construct a empty graph.
- Graph(Expression, double, double).
Constructor for class ui.Graph
- Construct a graph with an expression and [xmin, xmax] range.
- graphArea.
Variable in class ui.Display
- The graph drawing area.
- greater(Symbol).
Method in class expression.Symbol
- Returns true if current symbol has higher precedence than symbol a.
- isEOE().
Method in class expression.Symbol
- Returns true if the symbol represents the end of an expression.
- isExprNode().
Method in class expression.Symbol
- Returns true if the symbol represents an expression node.
- key.
Variable in class ui.Key
- Key in normal state.
- key.
Variable in class ui.KeyLayout
- Name of the key.
- key().
Method in class ui.Key
- Return the current meaning of the key.
- Key(String, String, String, String, String, Label).
Constructor for class ui.Key
- Create a key with a name,
normal key string, information about normal key string,
shifted key string, information about shifted key string,
and a message label.
- keycomment.
Variable in class ui.KeyLayout
- Information about the key.
- keyMsg.
Variable in class ui.Key
- Information about the key in normal state.
- KeyPad().
Constructor for class ui.KeyPad
- Construct a key pad.
- less(Symbol).
Method in class expression.Symbol
- Returns true if current symbol has lower precedence than symbol a.
- lnFunc().
Constructor for class expression.lnFunc
-
- logFunc().
Constructor for class expression.logFunc
-
- mode.
Variable in class ui.Graph
- Current mode of graph.
- mode.
Variable in class ui.KeyPad
- Current mode of the key pad.
- MODE_CALC.
Static variable in class ui.KeyPad
- Numerical Calculation mode.
- MODE_EXPR.
Static variable in class ui.KeyPad
- Expression evaluation mode.
- MODE_GRAPH.
Static variable in class ui.KeyPad
- Graph plotting mode.
- mouseDown(Event, int, int).
Method in class ui.Key
- Called if the mouse is down.
- mouseEnter(Event, int, int).
Method in class ui.Key
- Called when the mouse enters the component.
- mouseExit(Event, int, int).
Method in class ui.Key
- Called when the mouse exits the component.
- mouseUp(Event, int, int).
Method in class ui.Key
- Called if the mouse is up.
- msgString.
Variable in class ui.Graph
- The message to be displayed.
- multFunc().
Constructor for class expression.multFunc
-
- name.
Variable in class ui.Key
- Name of the key.
- newExpression().
Method in class ui.Display
- Start a new expression.
- nextSymbol(StreamTokenizer).
Static method in class expression.Expression
- Fetch the next symbol from the input expression string.
- NO_EOE.
Static variable in class expression.ExpressionParseException
-
- NO_NODE.
Static variable in class expression.ExpressionParseException
-
- NO_OPERATOR.
Static variable in class expression.ExpressionParseException
-
- numArgs.
Variable in class expression.Function
- Number of arguments the function can take
- nval.
Variable in class expression.Symbol
- The value of a TK_NUMBER token.
- oneArgFunction().
Constructor for class expression.oneArgFunction
- Constructs a function with one arguement.
- paint(Graphics).
Method in class ui.Graph
- Paint the graph.
- paint(Graphics).
Method in class ui.Key
- Paint the key.
- PI.
Static variable in class expression.Variable
- The global variable PI.
- pos().
Method in class expression.ExprStringBufferInputStream
- Return current stream pointer position.
- powFunc().
Constructor for class expression.powFunc
-
- push(double).
Method in class expression.ExprNode
- Pushes a const into the expression node.
- push(ExprNode).
Method in class expression.ExprNode
- Pushes an expression node into the expression node.
- push(Function).
Method in class expression.ExprNode
- Pushes a function into the expression node.
- push(Symbol).
Method in class expression.ExprNode
- Pushes a symbol into the expression node.
- push(Variable).
Method in class expression.ExprNode
- Pushes a variable into the expression node.
- reset().
Method in class ui.KeyPad
- Reset the keypad to empty input mode.
- resultArea.
Variable in class ui.Display
- The result showing area.
- resultStr.
Variable in class ui.Display
- The result to be shown.
- roundFunc().
Constructor for class expression.roundFunc
-
- setActiveColor(Color).
Method in class ui.Key
- Set active color for the key.
- setCalcMode().
Method in class ui.Display
- Change the display to calculating mode.
- setCurrentMode(int).
Method in class ui.KeyPad
- Setup current mode.
- setDeactiveColor(Color).
Method in class ui.Key
- Set deactive color for the key.
- setDisplay(Display).
Method in class ui.KeyPad
- Set calculator display.
- setEchoArea(TextField).
Method in class ui.KeyPad
- Set current key string echo label.
- setExpression(Expression).
Method in class ui.Graph
- Set the expression to be plot.
- setMessageLabel(Label).
Method in class ui.Key
- Set message label for the key.
- setMode(int).
Method in class ui.Graph
- Set plotting mode.
- setMsgString(String).
Method in class ui.Graph
- Set message string.
- setPlotMode().
Method in class ui.Display
- Change the display to plotting (graph drawing) mode.
- setTitleBar(String).
Method in class ui.Display
- Set title bar message.
- setXRange(double, double).
Method in class ui.Graph
- Set the range of expression to be plot.
- shift().
Method in class ui.Key
- Shift the key.
- shiftkey.
Variable in class ui.Key
- Key in shifted state.
- shiftkey.
Variable in class ui.KeyLayout
- Name of the shifted key.
- shiftkeycomment.
Variable in class ui.KeyLayout
- Information about the shifted key.
- shiftkeyMsg.
Variable in class ui.Key
- Information about the key in shifted state.
- sinFunc().
Constructor for class expression.sinFunc
-
- size.
Variable in class ui.KeyLayout
- size of the key.
- sqrFunc().
Constructor for class expression.sqrFunc
-
- sqrtFunc().
Constructor for class expression.sqrtFunc
-
- stype.
Variable in class expression.Symbol
- Symbol type of the symbol.
- subFunc().
Constructor for class expression.subFunc
-
- SYM_EXPRNODE.
Static variable in class expression.Symbol
- The symbol type representing a reduced expression node.
- SYM_TERMINAL.
Static variable in class expression.Symbol
- The symbol type representing a terminal symbol.
- SYM_UNKNOWN.
Static variable in class expression.Symbol
- The symbol type representing unknown symbol.
- Symbol().
Constructor for class expression.Symbol
- Create an empty symbol.
- Symbol(int, ExprNode).
Constructor for class expression.Symbol
- Create a Function token with symbol type specified as SYM_EXPRNODE,
and an expression node.
- Symbol(int, int).
Constructor for class expression.Symbol
- Create a token symbol with symbol type and token type.
- Symbol(int, int, char).
Constructor for class expression.Symbol
-
- Symbol(int, int, double).
Constructor for class expression.Symbol
- Create a Number token with symbol type specified as SYM_TERMINAL,
token type specified as TK_NUMBER and a value
- Symbol(int, int, String).
Constructor for class expression.Symbol
- Create a Variable token or Function token with symbol type specified
as SYM_TERMINAL.
- symQueue.
Variable in class expression.Expression
- The symbol queue created for operator-precedence parsing.
- symStack.
Variable in class expression.Expression
- The operator, expression node stack created for operator-precedence parsing.
- tanFunc().
Constructor for class expression.tanFunc
-
- titleBar.
Variable in class ui.Display
- The title bar.
- TK_BRACKETL.
Static variable in class expression.Symbol
- The token representing a left bracket in an expression.
- TK_BRACKETR.
Static variable in class expression.Symbol
- The token representing a right bracket in an expression.
- TK_DIV.
Static variable in class expression.Symbol
- The token representing a division sign in an expression.
- TK_EOE.
Static variable in class expression.Symbol
- The token representing the end of an expression.
- TK_FUNCTION.
Static variable in class expression.Symbol
- The token representing a function in an expression.
- TK_MINUS.
Static variable in class expression.Symbol
- The token representing a minus sign in an expression.
- TK_MULT.
Static variable in class expression.Symbol
- The token representing a multply sign in an expression.
- TK_NUMBER.
Static variable in class expression.Symbol
- The token representing a number in an expression.
- TK_PLUS.
Static variable in class expression.Symbol
- The token representing a plus sign in an expression.
- TK_POW.
Static variable in class expression.Symbol
- The token representing a power sign in an expression.
- TK_VARIABLE.
Static variable in class expression.Symbol
- The token representing a variable in an expression.
- TOOMANY_NODE.
Static variable in class expression.ExpressionParseException
-
- toString().
Method in class expression.absFunc
- Return string "ABS"
- toString().
Method in class expression.acosFunc
- Return string "ACOS"
- toString().
Method in class expression.actanFunc
- Return string "ACTAN"
- toString().
Method in class expression.addFunc
- Return string "+".
- toString().
Method in class expression.asinFunc
- Return string "ASIN"
- toString().
Method in class expression.atanFunc
- Return string "ATAN"
- toString().
Method in class expression.ceilFunc
- Return string "CEIL"
- toString().
Method in class expression.cosFunc
- Return string "COS"
- toString().
Method in class expression.ctanFunc
- Return string "CTAN"
- toString().
Method in class expression.divFunc
- Return string "/".
- toString().
Method in class expression.exp10Func
- Return string "EXP"
- toString().
Method in class expression.expFunc
- Return string "EXP"
- toString().
Method in class expression.ExprNode
- Returns the string representation of the expression node.
- toString().
Method in class expression.floorFunc
- Return string "FLOOR"
- toString().
Method in class expression.Function
- Return the string representation of the function.
- toString().
Method in class expression.lnFunc
- Return string "LN"
- toString().
Method in class expression.logFunc
- Return string "LOG"
- toString().
Method in class expression.multFunc
- Return string "*".
- toString().
Method in class expression.powFunc
- Return string "^".
- toString().
Method in class expression.roundFunc
- Return string "ROUND"
- toString().
Method in class expression.sinFunc
- Return string "SIN"
- toString().
Method in class expression.sqrFunc
- Return string "SQR"
- toString().
Method in class expression.sqrtFunc
- Return string "SQRT"
- toString().
Method in class expression.subFunc
- Return string "-".
- toString().
Method in class expression.Symbol
- Returns the string representation of the current symbol.
- toString().
Method in class expression.tanFunc
- Return string "TAN"
- toString().
Method in class expression.Variable
- Returns the string representation of the variable.
- toString(double).
Static method in class expression.ExprDouble
- Convert a double into a string using default precision 15.
- toString(double, int).
Static method in class expression.ExprDouble
- Convert a double into a string using specific precision.
- toSymbol(String).
Static method in class expression.Expression
- Convert a string to a symbol.
- ttype.
Variable in class expression.Symbol
- The terminal type of the symbol, if symbol type if SYM_TERMINAL.
- twoArgFunction().
Constructor for class expression.twoArgFunction
- Constructs a function with two arguements.
- UNEXPECTED_NODE.
Static variable in class expression.ExpressionParseException
-
- UNEXPECTED_SYMBOL.
Static variable in class expression.ExpressionParseException
-
- UNKNOWN_SYMBOL.
Static variable in class expression.ExpressionParseException
-
- UNKNOWN_TERMINAL.
Static variable in class expression.ExpressionParseException
-
- update(Graphics).
Method in class ui.Key
- Updates the component, called with a repaint().
- val.
Variable in class expression.Variable
- Current value of a variable.
- variable.
Variable in class expression.Symbol
- The variable of a TK_VARIABLE token.
- Variable().
Constructor for class expression.Variable
- Create a default variable without a name.
- Variable(String).
Constructor for class expression.Variable
- Create a variable with a name.
- Variable(String, double).
Constructor for class expression.Variable
- Create a variable with a name and its value.
- X.
Static variable in class expression.Variable
- The global variable X.
- xmax.
Variable in class ui.Graph
- Maximum x value of [xmin, xmax] range.
- xmin.
Variable in class ui.Graph
- Minumum x value of [xmin, xmax] range.
- Y.
Static variable in class expression.Variable
- The global variable Y.
- Z.
Static variable in class expression.Variable
- The global variable Z.