Class NotesFactory
- java.lang.Object
-
- adams.gui.visualization.container.NotesFactory
-
public class NotesFactory extends Object
A factory for GUI components for notes.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotesFactory.Dialog<T extends AbstractContainer>A specialized dialog that displays informative statistics.static classNotesFactory.MultiPagePane<T extends AbstractContainer>A specialized multi-page pane that displays container notes.static classNotesFactory.TextPane<T extends AbstractContainer>A specialized JTextPane for displaying the notes of a container.
-
Constructor Summary
Constructors Constructor Description NotesFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotesFactory.DialoggetDialog(Dialog owner, Dialog.ModalityType modality)Returns a new dialog for displaying notes.static NotesFactory.DialoggetDialog(Frame owner, boolean modal)Returns a new dialog for displaying notes.static NotesFactory.MultiPagePanegetMultiPagePane(List<AbstractContainer> data)Returns a new multi-page page for the given notes.static NotesFactory.TextPanegetTextPane(AbstractContainer data)Returns a new text pane for the given notes.
-
-
-
Method Detail
-
getTextPane
public static NotesFactory.TextPane getTextPane(AbstractContainer data)
Returns a new text pane for the given notes.- Parameters:
data- the container to create a text pane for- Returns:
- the tabbed pane
-
getMultiPagePane
public static NotesFactory.MultiPagePane getMultiPagePane(List<AbstractContainer> data)
Returns a new multi-page page for the given notes.- Parameters:
data- the containers to create a multi-page pane for- Returns:
- the multi-page pane
-
getDialog
public static NotesFactory.Dialog getDialog(Dialog owner, Dialog.ModalityType modality)
Returns a new dialog for displaying notes.- Parameters:
owner- the owning componentmodality- the type of modality- Returns:
- the dialog
-
getDialog
public static NotesFactory.Dialog getDialog(Frame owner, boolean modal)
Returns a new dialog for displaying notes.- Parameters:
owner- the owning componentmodal- if true then the dialog will be modal- Returns:
- the dialog
-
-