jscicalc.pobject.Numeral Class Reference

This class represents anything that might be a numeral. More...

Inheritance diagram for jscicalc.pobject.Numeral:

jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.Numeral:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Numeral (char c)
 Each numeral is represented by a character.
char get ()
 Useful to create a representation.
String name ()
 Useful to create a representation.
String[] name_array ()
 Useful to create a representation.

Private Attributes

final char c
 Each numeral is represented by a character.


Detailed Description

This class represents anything that might be a numeral.

This includes 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F and a base point. This is more unusual amongst PObject classes because its constructor takes and argument. The argument is used as the symbol and shortcut for the numeral.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.pobject.Numeral.Numeral ( char  c  ) 

Each numeral is represented by a character.

Parameters:
c The character reprenting this Numeral

References jscicalc.pobject.PObject.fshortcut, and jscicalc.pobject.PObject.ftooltip.


Member Function Documentation

char jscicalc.pobject.Numeral.get (  ) 

Useful to create a representation.

Returns:
The character reprenting this Numeral

References jscicalc.pobject.Numeral.c.

Referenced by jscicalc.CalculatorApplet.setMode().

String jscicalc.pobject.Numeral.name (  ) 

Useful to create a representation.

Returns:
A String reprenting this Numeral

Reimplemented from jscicalc.pobject.PObject.

Referenced by jscicalc.Parser.convertNumerals(), and jscicalc.CalculatorApplet.setMode().

String [] jscicalc.pobject.Numeral.name_array (  )  [virtual]

Useful to create a representation.

Returns:
An array of String objects reprenting this Numeral

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Numeral.c.


Member Data Documentation

final char jscicalc.pobject.Numeral.c [private]

Each numeral is represented by a character.

Referenced by jscicalc.pobject.Numeral.get(), and jscicalc.pobject.Numeral.name_array().


The documentation for this class was generated from the following file:

Generated on Sun Jun 1 08:58:46 2008 for Java Scientific Calculator by  doxygen 1.5.5