trassare.com
A B C D E G H I J L M N O P R S T U

A

acos(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
ACOS - Static variable in class com.trassare.calculator.engine.Token
Token matching 'acos' in input.
actionPerformed(ActionEvent) - Method in class com.trassare.calculator.ui.CalculatorGUI.SolveListener
Solve the problem.
actionPerformed(ActionEvent) - Method in class com.trassare.calculator.ui.ExitListener
Executes all actions associated with closing the application.
actionPerformed(ActionEvent) - Method in class com.trassare.calculator.ui.SaveListener
Save the file.
addActionListener(CalculatorGUI.SolveListener) - Method in class com.trassare.calculator.ui.LCDPanel
Set's the solve listener for the screen.
APP_NAME - Static variable in class com.trassare.calculator.ui.CalculatorGUI
The title, as it appears in the title bar, of this application.
appendResultsText(String) - Method in class com.trassare.calculator.ui.LCDPanel
 
asin(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
ASIN - Static variable in class com.trassare.calculator.engine.Token
Token matching 'asin' in input.
ASSIGN - Static variable in class com.trassare.calculator.engine.Token
Token matching '>>' in input.
atan(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
ATAN - Static variable in class com.trassare.calculator.engine.Token
Token matching 'atan' in input.

B

BASE_TEN - Static variable in class com.trassare.calculator.engine.Operation
The base-10 constant for logarithmic operations.
ButtonPanel - Class in com.trassare.calculator.ui
A 7x4 grid of buttons is constructed to take mouse and keyboard input from the user.

C

CalcInput - Class in com.trassare.calculator.ui
CalcInput manages keyboard input through fancy manipulation of a JTextField.
CalcInput(String, int) - Constructor for class com.trassare.calculator.ui.CalcInput
Explicit constructor of CalcInput.
CalcMenuBar - Class in com.trassare.calculator.ui
Typical menu bar for an application.
CalcMenuBar(SaveListener, ExitListener, JFrame, Properties) - Constructor for class com.trassare.calculator.ui.CalcMenuBar
Constructs a typical menu bar for an application.
CalculatorCUI - Class in com.trassare.calculator.ui
The CUI for the calculator application.
CalculatorCUI() - Constructor for class com.trassare.calculator.ui.CalculatorCUI
Default constructor.
CalculatorFactory - Class in com.trassare.calculator.ui
CalculatorFactory delivers a complete user interface to the main method.
CalculatorGUI - Class in com.trassare.calculator.ui
CalculatorGUI initializes a data structure for all GUI components then renders the GUI.
CalculatorGUI() - Constructor for class com.trassare.calculator.ui.CalculatorGUI
Constructor for objects of class CalculatorGUI.
CalculatorGUI.SolveListener - Class in com.trassare.calculator.ui
This is what happens when '=' is pressed.
CalculatorGUI.SolveListener() - Constructor for class com.trassare.calculator.ui.CalculatorGUI.SolveListener
Default constructor.
com.trassare.calculator - package com.trassare.calculator
The main driver for the calculator application.
com.trassare.calculator.engine - package com.trassare.calculator.engine
This package contains an evaluation engine for infix expressions.
com.trassare.calculator.ui - package com.trassare.calculator.ui
The user interface package for the calculator application.
cos(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
COS - Static variable in class com.trassare.calculator.engine.Token
Token matching 'cos' in input.
createCalculatorCUI() - Static method in class com.trassare.calculator.ui.CalculatorFactory
Gets an instance of the calculator in a CUI.
createCalculatorGUI() - Static method in class com.trassare.calculator.ui.CalculatorFactory
Gets an instance of the calculator in a GUI.

D

doExitSave() - Method in class com.trassare.calculator.ui.SaveListener
Perform the save operation if necessary.
doSave() - Method in class com.trassare.calculator.ui.SaveListener
Perform the saving action.

E

EOL - Static variable in class com.trassare.calculator.engine.Token
Token matching end of line.
equals(Object) - Method in class com.trassare.calculator.engine.Token
Overrides Object.equals: all tokens in the same token subclass are implicitly equal.
ERROR - Static variable in class com.trassare.calculator.engine.Token
A dummy ERROR token for equality testing.
evaluate(String) - Method in class com.trassare.calculator.ui.CalculatorCUI
Evaluate the expression.
evaluate(String) - Method in class com.trassare.calculator.ui.CalculatorGUI
 
evaluate(String) - Method in interface com.trassare.calculator.ui.UserInterface
 
ExitListener - Class in com.trassare.calculator.ui
Listens for exit instructions and calls the SaveListener class as appropriate.
ExitListener(SaveListener) - Constructor for class com.trassare.calculator.ui.ExitListener
Explicit constructor.
ExpressionScanner - Class in com.trassare.calculator.engine
A scanner class used for arithmetic expressions.
CS 152, Fall, 2005
Programming Assignment #1
ExpressionScanner(PushbackReader) - Constructor for class com.trassare.calculator.engine.ExpressionScanner
Constructs an ExpressionScanner object and reads a line of input.
ExpressionScanner.ScanException - Exception in com.trassare.calculator.engine
An exception to indicate an IO error in the scanner.
Useful to avoid the checked exception IOException.
CS 152, Fall, 2005
Programming Assignment #1
ExpressionScanner.ScanException() - Constructor for exception com.trassare.calculator.engine.ExpressionScanner.ScanException
Constructs a ScanException as a RuntimeException.
ExpressionScanner.ScanException(String) - Constructor for exception com.trassare.calculator.engine.ExpressionScanner.ScanException
Constructs a ScanException with error message s.

G

getActionListeners() - Method in class com.trassare.calculator.ui.ButtonPanel
Get the ActionListeners for the calcButton.
getActionListeners() - Static method in class com.trassare.calculator.ui.CalculatorGUI
Get the ActionListeners for the buttons.
getAlwaysSave() - Static method in class com.trassare.calculator.ui.CalcMenuBar
Make the alwaysSave available for writing to file.
getLandF() - Method in class com.trassare.calculator.ui.LandFLoader
Get the name of the current look and feel.
getResultsText() - Method in class com.trassare.calculator.ui.LCDPanel
Get the results from the output screen.
getScanner() - Static method in class com.trassare.calculator.ui.CalculatorGUI
Get the ExpressionScanner that is currently in use.
getScreenText() - Method in class com.trassare.calculator.ui.LCDPanel
 
getString(String) - Static method in class com.trassare.calculator.Messages
Gets a resource identified by its key.
getString(String) - Static method in class com.trassare.calculator.ui.Messages
Get a value based on its search key.
getToken() - Method in class com.trassare.calculator.engine.ExpressionScanner
Recognize and return the next token in the input, be it an operator, variable, or number.
go() - Method in class com.trassare.calculator.engine.InfixCalculator
Begin execution of the InfixCalculator.

H

hashCode() - Method in class com.trassare.calculator.engine.Token
Dummy hash code implementation.
HelpBrowser - Class in com.trassare.calculator.ui
Deprecated. This class will be removed in future versions in favor of using the platform's native browser.
hyperlinkUpdate(HyperlinkEvent) - Method in class com.trassare.calculator.ui.LinkFollower
Deprecated. Refresh page based on supplied hyperlink.

I

IDENTIFIER - Static variable in class com.trassare.calculator.engine.Token
A dummy IDENTIFIER token for equality testing.
InfixCalculator - Class in com.trassare.calculator.engine
InfixCalculator parses, calculates, and prints the results of a series of floating-point arithmetic expressions, one to a line, as given by the following grammar:
InfixCalculator(ExpressionScanner) - Constructor for class com.trassare.calculator.engine.InfixCalculator
Construct a new InfixCalculator class using the ExpressionScanner provided by Doctor Kenneth Louden.
insertString(int, String, AttributeSet) - Method in class com.trassare.calculator.ui.LimitInput
Overridden from PlainDocument.
isLastResult() - Static method in class com.trassare.calculator.ui.SaveListener
 
isSaveSelected() - Static method in class com.trassare.calculator.ui.CalcMenuBar
Allow checking on the save condition.

J

Jac - Class in com.trassare.calculator
This class contains the main method for driving the Jac calculator application.

L

LandFLoader - Class in com.trassare.calculator.ui
LandFLoader manages the OYOAHA look and feel for the application.
LandFLoader(JFrame, Properties) - Constructor for class com.trassare.calculator.ui.LandFLoader
Default constructor.
LCDPanel - Class in com.trassare.calculator.ui
Encapsulates the input and output display of the calculator.
LCDPanel() - Constructor for class com.trassare.calculator.ui.LCDPanel
Default constructor.
LimitInput - Class in com.trassare.calculator.ui
To further control keyboard input, this class is used to hi-jack certain key commands and replace them with their associated data.
LimitInput(int) - Constructor for class com.trassare.calculator.ui.LimitInput
Explicit constructor for objects of LimitInput.
LinkFollower - Class in com.trassare.calculator.ui
Deprecated. This class will be removed in future versions in favor of using the platform's native browser.
LinkFollower(JEditorPane) - Constructor for class com.trassare.calculator.ui.LinkFollower
Deprecated. Explicit constructor.
ln(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
LN - Static variable in class com.trassare.calculator.engine.Token
Token matching 'ln' in input.
LPAREN - Static variable in class com.trassare.calculator.engine.Token
Token matching '(' in input.

M

main(String[]) - Static method in class com.trassare.calculator.Jac
Execution of the Jac calculator begins here.
Messages - Class in com.trassare.calculator
This is the handling class for the ResourceBundle for the main method.
Messages - Class in com.trassare.calculator.ui
Externalizes strings for the CalcMenuBar class.
MINUS - Static variable in class com.trassare.calculator.engine.Token
Token matching '-' in input.

N

NUMBER - Static variable in class com.trassare.calculator.engine.Token
A dummy NUMBER token for equality testing.

O

Operation - Class in com.trassare.calculator.engine
This class contains the mathematical operations that are not native to the BigDecimal class.
Operation.OperationException - Exception in com.trassare.calculator.engine
An exception to indicate an invalid number in an operation.
Operation.OperationException() - Constructor for exception com.trassare.calculator.engine.Operation.OperationException
Constructs an OperationException as an Exception.
Operation.OperationException(String) - Constructor for exception com.trassare.calculator.engine.Operation.OperationException
Constructs a OperationException with error message s.
OVER - Static variable in class com.trassare.calculator.engine.Token
Token matching '/' in input.

P

ParseException - Exception in com.trassare.calculator.engine
A custom exception class for the calculator.
ParseException() - Constructor for exception com.trassare.calculator.engine.ParseException
 
PLUS - Static variable in class com.trassare.calculator.engine.Token
Token matching '+' in input.
POW - Static variable in class com.trassare.calculator.engine.Token
Token matching '^' in input.
processKeyEvent(KeyEvent) - Method in class com.trassare.calculator.ui.CalcInput
Overrides the JTextField method to allow operation specific to this.
PushbackReaderFactory - Class in com.trassare.calculator.engine
Used to swap out the PushbackReader in the ExpressionScanner.

R

reader(String) - Static method in class com.trassare.calculator.engine.PushbackReaderFactory
Takes a string and uses it to create a new PushbackReader.
RECALL - Static variable in class com.trassare.calculator.engine.Token
Deprecated. Do not use this token. It will be removed in future versions of this class.
requestFocus() - Method in class com.trassare.calculator.ui.LCDPanel
Let the input field have the focus.
resetScanner(PushbackReader) - Method in class com.trassare.calculator.engine.ExpressionScanner
Supply the calculator with a new input stream.
resetScanner(PushbackReader) - Method in class com.trassare.calculator.engine.InfixCalculator
Supply the calculator with a new input stream.
RPAREN - Static variable in class com.trassare.calculator.engine.Token
Token matching ')' in input.
run() - Method in class com.trassare.calculator.ui.CalculatorCUI
Begin CUI execution.
run() - Method in class com.trassare.calculator.ui.CalculatorGUI
Run the calculator GUI.
run() - Method in interface com.trassare.calculator.ui.UserInterface
Begin execution of the user interface for the calculator.

S

SaveListener - Class in com.trassare.calculator.ui
Handles the saving of the session results.
SaveListener(LCDPanel, JFrame, Properties) - Constructor for class com.trassare.calculator.ui.SaveListener
Default constructor.
setEqualListener(CalculatorGUI.SolveListener) - Method in class com.trassare.calculator.ui.ButtonPanel
The SolveListener is passed to the ButtonPanel by the parent class, CalculatorGUI.
setLandF(String) - Static method in class com.trassare.calculator.ui.CalculatorGUI
Setter for the look and feel.
setLandF(String) - Method in class com.trassare.calculator.ui.LandFLoader
Sets the look and feel using a given filename.
setLastResult(boolean) - Static method in class com.trassare.calculator.ui.SaveListener
 
setScreenBlank() - Method in class com.trassare.calculator.ui.LCDPanel
Clears the input screen of any text.
setScreenText(String) - Method in class com.trassare.calculator.ui.LCDPanel
 
setVisible(boolean) - Method in class com.trassare.calculator.ui.HelpBrowser
Deprecated. Sets the browser to visible or invisible.
sin(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
SIN - Static variable in class com.trassare.calculator.engine.Token
Token matching 'sin' in input.
STORE - Static variable in class com.trassare.calculator.engine.Token
Deprecated. Do not use this token. It will be removed in future versions of this class. Instead use Token.ASSIGN. This token was originally used as a command to send the evaluated expression to a single memory cell. The use of Token.ASSIGN signals an assignment to a variable. Beginning with the 10 September 2006 version of this class the com.trassare.calculator.engine package now supports infinite memory storage.
stringValue() - Method in class com.trassare.calculator.engine.Token
An accessor method for the stringValue field.

T

tan(BigDecimal) - Static method in class com.trassare.calculator.engine.Operation
 
TAN - Static variable in class com.trassare.calculator.engine.Token
Token matching 'tan' in input.
TIMES - Static variable in class com.trassare.calculator.engine.Token
Token matching '*' in input.
Token - Class in com.trassare.calculator.engine
A Token class for use in a scanner for simple arithmetic expressions.
CS 152, Fall, 2005
Programming Assignment #1
Token(String) - Constructor for class com.trassare.calculator.engine.Token
Make the constructor protected so that only limited kinds of tokens can be generated.
Token.ERROR - Class in com.trassare.calculator.engine
Token matching an erroneous character in input.
CS 152, Fall, 2005
Programming Assignment #1
Token.ERROR(String) - Constructor for class com.trassare.calculator.engine.Token.ERROR
 
Token.IDENTIFIER - Class in com.trassare.calculator.engine
Token matching regular expression [A-Z]+ in input.
This token is used for variable names in the input expression.
Token.IDENTIFIER(String) - Constructor for class com.trassare.calculator.engine.Token.IDENTIFIER
Construct the identifier token with an explicit value.
Token.NUMBER - Class in com.trassare.calculator.engine
Token matching regular expression [0-9]+(\.[0-9]*)? in input.
CS 152, Fall, 2005
Programming Assignment #1
Token.NUMBER(String) - Constructor for class com.trassare.calculator.engine.Token.NUMBER
 
toString() - Method in exception com.trassare.calculator.engine.ParseException
Just a dumb error message.
toString() - Method in class com.trassare.calculator.engine.Token.ERROR
The string representation of the error.
toString() - Method in class com.trassare.calculator.engine.Token.IDENTIFIER
The string representation of this token.
toString() - Method in class com.trassare.calculator.engine.Token.NUMBER
The string representation of this token.

U

UserInterface - Interface in com.trassare.calculator.ui
A user interface should be able to take any shape.

A B C D E G H I J L M N O P R S T U
trassare.com