statdialog.statistics.graphics
Class QualitativeDataPlotDialog

java.lang.Object
  extended by statdialog.statistics.graphics.QualitativeDataPlotDialog

public class QualitativeDataPlotDialog
extends java.lang.Object

Creates a dialog used for graphical display of qualitative data.


Example:
String [] st=new String[]{"Soft Drink"};

// non-null constructor
new QualitativeDataPlotDialog("Bar",st).qualitativeDataPlotDialog.setVisible(true);
new QualitativeDataPlotDialog("Pie",st).qualitativeDataPlotDialog.setVisible(true);

// null constructor
new QualitativeDataPlotDialog().createDialog("bar",st).setVisible(true);
new QualitativeDataPlotDialog().createDialog("pie",st).setVisible(true);


Field Summary
 java.awt.Frame frame
          The frame from which the dialog is displayed.
 boolean modal
          True for a modal dialog, false for one that allows other windows to be active at the same time.
 java.lang.String plotChoice
          The type of the plot with the choices "bar" or "pie".
 AbstractDialog qualitativeDataPlotDialog
          The dialog for graphical display of qualitative data.
 java.util.Hashtable qualitativeDataPlotDialogInfo
          The hashtable contains information about the components in the dialog.
 java.lang.String[] selectedVariables
          The texts to be selected in the list, ususally the input variables,
selectedVariables[i]: the text for the (i+1)'th variable.
 java.lang.String title
          The string to be displayed in the dialog's title bar.
 
Constructor Summary
QualitativeDataPlotDialog()
          Default QualitativeDataPlotDialog constructor.
QualitativeDataPlotDialog(java.awt.Frame frame, java.lang.String title, boolean modal, java.lang.String plotChoice, java.lang.String[] selectedVariables)
          Constructs the dialog for the use in generating the plots for qualitative data.
QualitativeDataPlotDialog(java.lang.String plotChoice, java.lang.String[] selectedVariables)
          Constructs the dialog with the defalut frame, title and which allows other windows to be active at the same time.
 
Method Summary
 AbstractDialog createDialog(java.awt.Frame frame, java.lang.String title, boolean modal, java.lang.String plotChoice, java.lang.String[] selectedVariables)
          The method to construct the dialog for the use in generating the plots for qualitative data.
 AbstractDialog createDialog(java.lang.String plotChoice, java.lang.String[] selectedVariables)
          The method to construct the dialog with the defalut frame, title and which allows other windows to be active at the same time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qualitativeDataPlotDialogInfo

public java.util.Hashtable qualitativeDataPlotDialogInfo
The hashtable contains information about the components in the dialog. The key specifies the components while the values are the texts displayed within the components.


qualitativeDataPlotDialog

public AbstractDialog qualitativeDataPlotDialog
The dialog for graphical display of qualitative data.


frame

public java.awt.Frame frame
The frame from which the dialog is displayed.


title

public java.lang.String title
The string to be displayed in the dialog's title bar.


modal

public boolean modal
True for a modal dialog, false for one that allows other windows to be active at the same time.


plotChoice

public java.lang.String plotChoice
The type of the plot with the choices "bar" or "pie".


selectedVariables

public java.lang.String[] selectedVariables
The texts to be selected in the list, ususally the input variables,
selectedVariables[i]: the text for the (i+1)'th variable.

Constructor Detail

QualitativeDataPlotDialog

public QualitativeDataPlotDialog()
Default QualitativeDataPlotDialog constructor.


QualitativeDataPlotDialog

public QualitativeDataPlotDialog(java.awt.Frame frame,
                                 java.lang.String title,
                                 boolean modal,
                                 java.lang.String plotChoice,
                                 java.lang.String[] selectedVariables)
Constructs the dialog for the use in generating the plots for qualitative data.

Parameters:
frame - the frame from which the dialog is displayed.
title - the string to be displayed in the dialog's title bar.
modal - true for a modal dialog, false for one that allows other windows to be active at the same time.
plotChoice - the specification of the plot with the choices "bar" or "pie".
selectedVariables - the texts to be selected in the list,
    selectedVariables[i]: the text for the (i+1)'th variable.
Throws:
IllegalArgumentException, - the vector of selected variables can not be empty.

QualitativeDataPlotDialog

public QualitativeDataPlotDialog(java.lang.String plotChoice,
                                 java.lang.String[] selectedVariables)
Constructs the dialog with the defalut frame, title and which allows other windows to be active at the same time.

Parameters:
plotChoice - the specification of the plot with the choices "bar" or "pie".
selectedVariables - the texts to be selected in the list,
    selectedVariables[i]: the text for the (i+1)'th variable.
Throws:
IllegalArgumentException, - the vector of selected variables can not be empty.
Method Detail

createDialog

public AbstractDialog createDialog(java.awt.Frame frame,
                                   java.lang.String title,
                                   boolean modal,
                                   java.lang.String plotChoice,
                                   java.lang.String[] selectedVariables)
The method to construct the dialog for the use in generating the plots for qualitative data.

Parameters:
frame - the frame from which the dialog is displayed.
title - the string to be displayed in the dialog's title bar.
modal - true for a modal dialog, false for one that allows other windows to be active at the same time.
plotChoice - the specification of the plot with the choices "bar" or "pie".
selectedVariables - the texts to be selected in the list,
    selectedVariables[i]: the text for the (i+1)'th variable.
Returns:
the created dialog.
Throws:
IllegalArgumentException, - the vector of selected variables can not be empty.

createDialog

public AbstractDialog createDialog(java.lang.String plotChoice,
                                   java.lang.String[] selectedVariables)
The method to construct the dialog with the defalut frame, title and which allows other windows to be active at the same time.

Parameters:
plotChoice - the specification of the plot with the choices "bar" or "pie".
selectedVariables - the texts to be selected in the list,
    selectedVariables[i]: the text for the (i+1)'th variable.
Returns:
the created dialog.
Throws:
IllegalArgumentException, - the vector of selected variables can not be empty.