Class OutputFormatDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class OutputFormatDialog extends JDialog
A dialog for setting various output format parameters.
Version:
$Revision: 7899 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Field Details

    • APPROVE_OPTION

      public static final int APPROVE_OPTION
      Signifies an OK property selection.
      See Also:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      Signifies a cancelled property selection.
      See Also:
  • Constructor Details

    • OutputFormatDialog

      public OutputFormatDialog(Frame parent)
      initializes the dialog with the given parent frame.
      Parameters:
      parent - the parent of this dialog
  • Method Details

    • setMeanPrec

      public void setMeanPrec(int precision)
      Sets the precision of the mean output.
      Parameters:
      precision - the number of digits used in printing the mean
    • getMeanPrec

      public int getMeanPrec()
      Gets the precision used for printing the mean.
      Returns:
      the number of digits used in printing the mean
    • setStdDevPrec

      public void setStdDevPrec(int precision)
      Sets the precision of the std. deviation output.
      Parameters:
      precision - the number of digits used in printing the std. deviation
    • getStdDevPrec

      public int getStdDevPrec()
      Gets the precision used for printing the std. deviation
      Returns:
      the number of digits used in printing the std. deviation
    • setResultMatrix

      public void setResultMatrix(Class matrix)
      Sets the matrix to use as initial selected output format.
      Parameters:
      matrix - the matrix to use as initial selected output format
    • getResultMatrix

      public Class getResultMatrix()
      Gets the currently selected output format result matrix.
      Returns:
      the currently selected matrix to use as output
    • setRemoveFilterName

      public void setRemoveFilterName(boolean remove)
      sets whether to remove the filter classname from the dataset name.
      Parameters:
      remove - if true then the filter classname is removed
    • getRemoveFilterName

      public boolean getRemoveFilterName()
      returns whether the filter classname is removed from the dataset name.
      Returns:
      true if the filter classname is removed
    • setShowAverage

      public void setShowAverage(boolean show)
      sets whether the average for each column is displayed.
      Parameters:
      show - if true then an additional row with the average is printed.
    • getShowAverage

      public boolean getShowAverage()
      returns whether the average for each column is displayed.
      Returns:
      true if an additional row with the average is displayed
    • getResult

      public int getResult()
      the result from the last display of the dialog, the same is returned from showDialog.
      Returns:
      the result from the last display of the dialog; either APPROVE_OPTION, or CANCEL_OPTION
      See Also:
    • showDialog

      public int showDialog()
      Pops up the modal dialog and waits for cancel or a selection.
      Returns:
      either APPROVE_OPTION, or CANCEL_OPTION
    • main

      public static void main(String[] args)
      for testing only.
      Parameters:
      args - ignored