All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----calculator.CalculatorState
Copyright (c) 1999 Massachusetts Institute of Technology
protected boolean seenDecimal
protected boolean readyForNewNumber
protected double previousNumber
protected int operation
protected CalculatorState(Calculator gui)
public String toString()
protected void handleNumKey(int num)
protected void handleDecimal()
protected void handleOperation(int op)
protected void handleEquals()
protected double doOperation(double currentNumber)
protected void resetDecimal()
protected void clearScreen()
protected String readScreen()
protected void writeScreen(String s)
protected void writeScreen(double d)
protected void writeScreen(int i)
protected void resetCalc()
All Packages Class Hierarchy This Package Previous Next Index