Class InformativeStatisticFactory
- java.lang.Object
-
- adams.gui.visualization.statistics.InformativeStatisticFactory
-
public class InformativeStatisticFactory extends Object
A factory for GUI components for InformativeStatistic objects.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InformativeStatisticFactory.Dialog
A specialized dialog that displays informative statistics.static class
InformativeStatisticFactory.Model
A specialized model for an object implementing the InformativeStatistic interface.static class
InformativeStatisticFactory.MultiPagePane
A specialized multi-page pane that displays statistics.static class
InformativeStatisticFactory.Table
A specialized table for displaying an object that implements the InformativeStatistic interface.
-
Constructor Summary
Constructors Constructor Description InformativeStatisticFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InformativeStatisticFactory.Dialog
getDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new dialog for displaying informative statistics.static InformativeStatisticFactory.Dialog
getDialog(Frame owner, boolean modal)
Returns a new dialog for displaying informative statistics.static InformativeStatisticFactory.Model
getModel(InformativeStatistic stat)
Returns a new model for an informative statistic object.static InformativeStatisticFactory.MultiPagePane
getMultiPagePane(List<InformativeStatistic> stats)
Returns a multi-page pane for the informative statistic objects.static InformativeStatisticFactory.Table
getTable(InformativeStatistic stat)
Returns a new table for an informative statistic object.
-
-
-
Method Detail
-
getModel
public static InformativeStatisticFactory.Model getModel(InformativeStatistic stat)
Returns a new model for an informative statistic object.- Parameters:
stat
- the object to create the model for- Returns:
- the model
-
getTable
public static InformativeStatisticFactory.Table getTable(InformativeStatistic stat)
Returns a new table for an informative statistic object.- Parameters:
stat
- the object to create the table for- Returns:
- the table
-
getMultiPagePane
public static InformativeStatisticFactory.MultiPagePane getMultiPagePane(List<InformativeStatistic> stats)
Returns a multi-page pane for the informative statistic objects. Each object will be placed in a table on a separate page.- Parameters:
stats
- the objects to create the multi-page pane for- Returns:
- the multi-page pane
-
getDialog
public static InformativeStatisticFactory.Dialog getDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new dialog for displaying informative statistics.- Parameters:
owner
- the owning componentmodality
- the type of modality- Returns:
- the dialog
-
getDialog
public static InformativeStatisticFactory.Dialog getDialog(Frame owner, boolean modal)
Returns a new dialog for displaying informative statistics.- Parameters:
owner
- the owning componentmodal
- if true then the dialog will be modal- Returns:
- the dialog
-
-