fdda.dialog
Class DialogFactory

java.lang.Object
  |
  +--fdda.dialog.DialogFactory
Direct Known Subclasses:
Java2DFactory

public abstract class DialogFactory
extends Object

Factory and interface of the dialog component. Also provides the graphics control component. For different types of dialogs or graphics, different factories may be used.

Author:
Jörg Rüdenauer

Constructor Summary
DialogFactory()
           
 
Method Summary
abstract  GraphicsControl createGraphicsControl()
          Creates an instance of a graphics control object.
abstract  String getDialogComponent()
          Returns a short description of the dialog component, e.g.
abstract  String getGraphicsComponent()
          Returns a short description of the used graphics component, e.g.
static DialogFactory getInstance()
          Returns the factory.
static void setFactory(DialogFactory factory)
          Sets the factory and initializes the component
abstract  void showAboutDialog()
          Displays the about dialog.
abstract  void showAlgorithmDialog()
          Displays the algorithm selection dialog.
abstract  void showOptionsDialog()
          Displays the options dialog.
abstract  void showStatisticsDialog(Statistics statistics)
          Displays an instance of the statistics dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogFactory

public DialogFactory()
Method Detail

setFactory

public static final void setFactory(DialogFactory factory)
Sets the factory and initializes the component

Parameters:
factory - the factory

getInstance

public static final DialogFactory getInstance()
Returns the factory.

Returns:
the factory

createGraphicsControl

public abstract GraphicsControl createGraphicsControl()
Creates an instance of a graphics control object.

Returns:
graphics control

getDialogComponent

public abstract String getDialogComponent()
Returns a short description of the dialog component, e.g. 'swing'.

Returns:
description

getGraphicsComponent

public abstract String getGraphicsComponent()
Returns a short description of the used graphics component, e.g. 'java2d'.

Returns:
description

showOptionsDialog

public abstract void showOptionsDialog()
Displays the options dialog.


showStatisticsDialog

public abstract void showStatisticsDialog(Statistics statistics)
Displays an instance of the statistics dialog.

Parameters:
statistics - the statistics (data for the dialog)

showAlgorithmDialog

public abstract void showAlgorithmDialog()
Displays the algorithm selection dialog.


showAboutDialog

public abstract void showAboutDialog()
Displays the about dialog.



API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.