Packages | Classes | Enumerations

Package jscicalc

Packages

package  button
package  complex
package  expression
package  graph
package  pobject

Classes

class  CalcButtonApplet
 This litle applet contains a button that when pressed launches a calculator in a JFrame. More...
class  CalculatorApplet
 This class is effectively the controller class for the calculator. More...
class  CalculatorPanel
 This class creates the main CalculatorPanel, which contains 44 buttons and a display panel (DisplayPanel object) to emulate an LCD display. More...
class  DataTransfer
 This class handles pasting to the system clipboard. More...
class  DisplayLabel
 This is the part of the DisplayPanel that shows the output of calculations. More...
class  DisplayNavigator
 Used by EntryPanel to allow the caret to move and expressions to be edited. More...
class  DisplayPanel
 This class is responsible for the LCD-like display in the calculator. More...
class  EntryLabel
 This is the component that shows the entry we are typing. More...
class  EntryNavigator
 Used by EntryPanel to allow the caret to move and expressions to be edited. More...
class  Error
 Used to handle errors. More...
class  ExtraPanel
 This is the little panel that tells you about the state of the calculator. More...
class  GObject
 This class represents any token that can be handled by Parser. More...
class  HexPanel
 CalculatorPanel that handles boolean functions. More...
class  HistoryItem
 Used by CalculatorApplet so that UpButton and DownButton can work. More...
class  MiniPanel
 This panel is designed to show tiny triangles at the edges of the DisplayLabel. More...
class  Navigator
 We use a NavigationFilter on the enty and display panels so that we can move the Caret Left and Right along the expression keeping its position between PObject object strings. More...
class  Notation
 This class works like an enumerated type and an object of it stores the states of the calculator for handling display output. More...
class  OObject
 This class represents any output token that can be handled by Parser. More...
class  ParseBase
 This class is designed to convert a string in base Base.BINARY, Base.OCTAL, Base.HEXADECIMAL into a jscicalc.complex.Complex. More...
class  Parser
 This is the model class as opposed to CalculatorApplet, which is the controller class and is the real power behind the calculator: it does almost all of the actual calculations. More...
class  PlainPanel
 CalculatorPanel that gets shown initially. More...
interface  ReadOnlyCalculatorApplet
 This is an interface for CalculatorApplet that allows us to access only the functions of CalculatorApplet designed to read its state. More...
interface  ReadOnlyDisplayPanel
 An interface for DisplayPanel so that we can read the state in classes that don’t need to change the state. More...
class  ScrollableLabel
 This class forms a base class for scrollable labels. More...
class  ShiftHexPanel
 CalculatorPanel that handse boolean functions (actually just removes some functions) Replaces ShiftPanel if CalculatorApplet base is not Base.DECIMAL. More...
class  ShiftPanel
 CalculatorPanel that gets shown when you press the shift button. More...
class  ShiftStatPanel
 CalculatorPanel that gets shown when you press the shift button in Stat mode. More...
class  StatPanel
 CalculatorPanel that gets shown if you are in stat mode. More...
class  StringArray
 This class is used to hold an array of strings. More...
class  Substitution
 This class allows us to set up a substitution so that we can substitute variables in an OObject with arbitrary values. More...
class  WhitePanel
 This class creates a JPanel whose background is always white. More...

Enumerations

enum  AngleType { DEGREES, RADIANS }
 

This is an enumerated type representing the possible bases that the calculator can use.

More...
enum  Base { BINARY, OCTAL, DECIMAL, HEXADECIMAL }
 

This is an enumerated type representing the possible bases that the calculator can use.

More...
enum  LeftOrRight { NEITHER, LEFT, RIGHT, BOTH }
 

This is an enumerated type representing the possible values, LEFT, RIGHT, BOTH or NEITHER.

More...
enum  SpecialButtonType {
  NONE, SHIFT, STAT, SHIFT_STAT,
  HEX, SHIFT_HEX
}
 

This enumerated class is used by CalculatorPanel and CalculatorApplet to deal with ‘special buttons’.

More...

Enumeration Type Documentation

This is an enumerated type representing the possible bases that the calculator can use.

Author:
J. D. Lamb
Version:
Revision:
1.4
Enumerator:
DEGREES 
RADIANS 

This is an enumerated type representing the possible bases that the calculator can use.

Author:
J. D. Lamb
Version:
Revision:
1.3
Enumerator:
BINARY 
OCTAL 
DECIMAL 
HEXADECIMAL 

This is an enumerated type representing the possible values, LEFT, RIGHT, BOTH or NEITHER.

Author:
J. D. Lamb
Version:
Revision:
1.1
Enumerator:
NEITHER 
LEFT 
RIGHT 
BOTH 

This enumerated class is used by CalculatorPanel and CalculatorApplet to deal with ‘special buttons’.

In particular CalculatorPanel uses it to identify all its subclasses and CalculatorApplet asks CalculatorPanel for an instance corresponding to each value of this type. If you want to add a CalculatorPanel create an extra value here.

Author:
J. D. Lamb
Version:
Revision:
1.5
Enumerator:
NONE 
SHIFT 
STAT 
SHIFT_STAT 
HEX 
SHIFT_HEX