

Public Member Functions | |
| Ans () | |
| Constructor. | |
| void | setValue (double d) |
| Set the value of this Container. | |
| void | setValue (OObject c) |
| Set the value of this Container. | |
| String[] | name_array () |
| Array used to construct name() and shortName() String objects. | |
Static Public Member Functions | |
| static void | main (String args[]) |
Static Private Attributes | |
| static final String[] | fname = { "A", "N", "S" } |
The value is stored in the PObject and not the calculator. So if you use the history list to go back to an expression with and Ans object in it, the object contains the value it was given at the point of evaluation and not the value of the most recently evaluated expression.
| jscicalc.pobject.Ans.Ans | ( | ) |
Constructor.
Sets a tooltip and shortcut.
References jscicalc.pobject.Container.c, and jscicalc.pobject.Container.d.
Referenced by jscicalc.pobject.Ans.main().
| void jscicalc.pobject.Ans.setValue | ( | double | d | ) |
Set the value of this Container.
| d | The value to store. |
Referenced by jscicalc.button.STOButton.actionPerformed(), jscicalc.button.SplusButton.actionPerformed(), jscicalc.button.SminusButton.actionPerformed(), jscicalc.button.MplusButton.actionPerformed(), jscicalc.button.MminusButton.actionPerformed(), jscicalc.button.EqualsButton.actionPerformed(), and jscicalc.button.CalculatorButton.add().
| void jscicalc.pobject.Ans.setValue | ( | OObject | c | ) |
| String [] jscicalc.pobject.Ans.name_array | ( | ) | [virtual] |
Array used to construct name() and shortName() String objects.
Implements jscicalc.pobject.PObject.
References jscicalc.pobject.Ans.fname.
| static void jscicalc.pobject.Ans.main | ( | String | args[] | ) | [static] |
References jscicalc.pobject.Ans.Ans(), and jscicalc.pobject.PObject.name().
final String [] jscicalc.pobject.Ans.fname = { "A", "N", "S" } [static, private] |
Referenced by jscicalc.pobject.Ans.name_array().
1.5.5