trassare.com

com.trassare.calculator.ui
Class CalculatorFactory

java.lang.Object
  extended by com.trassare.calculator.ui.CalculatorFactory

public final class CalculatorFactory
extends Object

CalculatorFactory delivers a complete user interface to the main method.

Version:
19 October 2005
Author:
Samuel Trassare

Method Summary
static CalculatorCUI createCalculatorCUI()
          Gets an instance of the calculator in a CUI.
static UserInterface createCalculatorGUI()
          Gets an instance of the calculator in a GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCalculatorCUI

public static CalculatorCUI createCalculatorCUI()
Gets an instance of the calculator in a CUI.

Returns:
a calculator on the command line.

createCalculatorGUI

public static UserInterface createCalculatorGUI()
Gets an instance of the calculator in a GUI.

Returns:
a calculator in a graphical user interface.

trassare.com