public class SimpleSetupPanel extends JPanel
If KOML is in the classpath the experiments can also be serialized to XML instead of a binary format.
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected static String |
DEST_ARFF_TEXT |
protected static String |
DEST_CSV_TEXT |
protected static String |
DEST_DATABASE_TEXT
The strings used to identify the combo box choices
|
protected AlgorithmListPanel |
m_AlgorithmListPanel
The panel for configuring selected algorithms
|
protected ExtensionFileFilter |
m_arffFileFilter
FIlter for choosing ARFF files
|
protected JButton |
m_BrowseDestinationButton
Button for browsing destination files
|
protected ExtensionFileFilter |
m_csvFileFilter
Filter for choosing CSV files
|
protected DatasetListPanel |
m_DatasetListPanel
The panel for configuring selected datasets
|
protected JFileChooser |
m_DestFileChooser
The file chooser for selecting result destinations
|
protected String |
m_destinationDatabaseURL
The database destination URL to store results into
|
protected String |
m_destinationFilename
The filename to store results into
|
protected Experiment |
m_Exp
The experiment being configured
|
protected JRadioButton |
m_ExpClassificationRBut
Radio button for choosing classification experiment
|
protected JLabel |
m_ExperimentParameterLabel
Label for parameter field
|
protected JTextField |
m_ExperimentParameterTField
Input field for experiment parameter
|
protected JComboBox |
m_ExperimentTypeCBox
Combo box for choosing experiment type
|
protected FileFilter |
m_ExpFilter
A filter to ensure only experiment files get shown in the chooser
|
protected JRadioButton |
m_ExpRegressionRBut
Radio button for choosing regression experiment
|
protected JFileChooser |
m_FileChooser
The file chooser for selecting experiments
|
protected FileFilter |
m_KOMLFilter
A filter to ensure only experiment (in KOML format) files get shown in the chooser
|
protected SetupModePanel |
m_modePanel
The panel which switched between simple and advanced setup modes
|
protected JButton |
m_NewBut
Click to create a new experiment with default settings
|
protected JButton |
m_NotesButton
A button for bringing up the notes
|
protected JFrame |
m_NotesFrame
Frame for the notes
|
protected JTextArea |
m_NotesText
Area for user notes Default of 10 rows
|
protected JTextField |
m_NumberOfRepetitionsTField
Input field for number of repetitions
|
protected int |
m_numFolds
The number of folds for a cross-validation experiment
|
protected int |
m_numRepetitions
The number of times to repeat the sub-experiment
|
protected JButton |
m_OpenBut
Click to load an experiment
|
protected JRadioButton |
m_OrderAlgorithmsFirstRBut
Radio button for choosing algorithms first in order of execution
|
protected JRadioButton |
m_OrderDatasetsFirstRBut
Radio button for choosing datasets first in order of execution
|
protected JComboBox |
m_ResultsDestinationCBox
Combo box for choosing experiment destination type
|
protected JLabel |
m_ResultsDestinationPathLabel
Label for destination field
|
protected JTextField |
m_ResultsDestinationPathTField
Input field for result destination path
|
protected JButton |
m_SaveBut
Click to save an experiment
|
protected PropertyChangeSupport |
m_Support
Manages sending notifications to people when we change the experiment,
at this stage, only the resultlistener so the resultpanel can update.
|
protected double |
m_trainPercent
The training percentage for a train/test split experiment
|
protected boolean |
m_userHasBeenAskedAboutConversion
Whether or not the user has consented for the experiment to be simplified
|
protected FileFilter |
m_XMLFilter
A filter to ensure only experiment (in XML format) files get shown in the chooser
|
protected static String |
TYPE_CROSSVALIDATION_TEXT |
protected static String |
TYPE_FIXEDSPLIT_TEXT |
protected static String |
TYPE_RANDOMSPLIT_TEXT |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SimpleSetupPanel()
Creates the setup panel with no initial experiment.
|
SimpleSetupPanel(Experiment exp)
Creates the setup panel with the supplied initial experiment.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes.
|
Experiment |
getExperiment()
Gets the currently configured experiment.
|
protected void |
removeNotesFrame()
Deletes the notes frame.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener.
|
boolean |
setExperiment(Experiment exp)
Sets the experiment to configure.
|
void |
setModePanel(SetupModePanel modePanel)
Sets the panel used to switch between simple and advanced modes.
|
protected void |
setSelectedItem(JComboBox cb,
String item)
Sets the selected item of an combobox, since using setSelectedItem(...)
doesn't work, if one checks object references!
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected Experiment m_Exp
protected SetupModePanel m_modePanel
protected String m_destinationDatabaseURL
protected String m_destinationFilename
protected int m_numFolds
protected double m_trainPercent
protected int m_numRepetitions
protected boolean m_userHasBeenAskedAboutConversion
protected ExtensionFileFilter m_csvFileFilter
protected ExtensionFileFilter m_arffFileFilter
protected JButton m_OpenBut
protected JButton m_SaveBut
protected JButton m_NewBut
protected FileFilter m_ExpFilter
protected FileFilter m_KOMLFilter
protected FileFilter m_XMLFilter
protected JFileChooser m_FileChooser
protected JFileChooser m_DestFileChooser
protected JComboBox m_ResultsDestinationCBox
protected JLabel m_ResultsDestinationPathLabel
protected JTextField m_ResultsDestinationPathTField
protected JButton m_BrowseDestinationButton
protected JComboBox m_ExperimentTypeCBox
protected JLabel m_ExperimentParameterLabel
protected JTextField m_ExperimentParameterTField
protected JRadioButton m_ExpClassificationRBut
protected JRadioButton m_ExpRegressionRBut
protected JTextField m_NumberOfRepetitionsTField
protected JRadioButton m_OrderDatasetsFirstRBut
protected JRadioButton m_OrderAlgorithmsFirstRBut
protected static String DEST_DATABASE_TEXT
protected static String DEST_ARFF_TEXT
protected static String DEST_CSV_TEXT
protected static String TYPE_CROSSVALIDATION_TEXT
protected static String TYPE_RANDOMSPLIT_TEXT
protected static String TYPE_FIXEDSPLIT_TEXT
protected DatasetListPanel m_DatasetListPanel
protected AlgorithmListPanel m_AlgorithmListPanel
protected JButton m_NotesButton
protected JFrame m_NotesFrame
protected JTextArea m_NotesText
protected PropertyChangeSupport m_Support
public SimpleSetupPanel(Experiment exp)
exp
- a value of type 'Experiment'public SimpleSetupPanel()
protected void setSelectedItem(JComboBox cb, String item)
cb
- the combobox to set the item foritem
- the item to set activeprotected void removeNotesFrame()
public void setModePanel(SetupModePanel modePanel)
modePanel
- the panelpublic boolean setExperiment(Experiment exp)
exp
- a value of type 'Experiment'public Experiment getExperiment()
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class Container
l
- a value of type 'PropertyChangeListener'public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class Component
l
- a value of type 'PropertyChangeListener'Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.