Package org.openml.weka.gui
Class OpenmlSimpleSetupPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- weka.gui.experiment.AbstractSetupPanel
-
- weka.gui.experiment.SimpleSetupPanel
-
- org.openml.weka.gui.OpenmlSimpleSetupPanel
-
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Comparable<weka.gui.experiment.AbstractSetupPanel>
,Accessible
public class OpenmlSimpleSetupPanel extends weka.gui.experiment.SimpleSetupPanel
This panel controls the configuration of an experiment.If KOML is in the classpath the experiments can also be serialized to XML instead of a binary format.
- Version:
- $Revision: 8034 $
- Author:
- Richard kirkby (rkirkby@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openml.apiconnector.io.OpenmlConnector
apiconnector
protected weka.gui.experiment.AlgorithmListPanel
m_AlgorithmListPanel
The panel for configuring selected algorithmsprotected JButton
m_BrowseDestinationButton
Button for browsing destination filesprotected TaskBasedExperiment
m_Exp
The experiment being configuredprotected JButton
m_NotesButton
A button for bringing up the notesprotected JFrame
m_NotesFrame
Frame for the notesprotected JTextArea
m_NotesText
Area for user notes Default of 10 rowsprotected JLabel
m_ResultsDestinationPathLabel
Label for destination fieldprotected JTextField
m_ResultsDestinationPathTField
Input field for result destination pathprotected 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 TaskListPanel
m_TaskListPanel
The panel for configuring selected OpenML tasksprotected WekaConfig
openmlconfig
-
Fields inherited from class weka.gui.experiment.SimpleSetupPanel
DEST_ARFF_TEXT, DEST_CSV_TEXT, DEST_DATABASE_TEXT, m_arffFileFilter, m_csvFileFilter, m_DatasetListPanel, m_DestFileChooser, m_destinationDatabaseURL, m_destinationFilename, m_ExpClassificationRBut, m_ExperimentParameterLabel, m_ExperimentParameterTField, m_ExperimentTypeCBox, m_ExpFilter, m_ExpRegressionRBut, m_FileChooser, m_KOMLFilter, m_modePanel, m_NewBut, m_NumberOfRepetitionsTField, m_numFolds, m_numRepetitions, m_OpenBut, m_OrderAlgorithmsFirstRBut, m_OrderDatasetsFirstRBut, m_ResultsDestinationCBox, m_SaveBut, m_trainPercent, m_userHasBeenAskedAboutConversion, m_XMLFilter, TYPE_CROSSVALIDATION_TEXT, TYPE_FIXEDSPLIT_TEXT, TYPE_RANDOMSPLIT_TEXT
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description OpenmlSimpleSetupPanel()
Creates the setup panel with no initial experiment.OpenmlSimpleSetupPanel(weka.experiment.Experiment exp)
Creates the setup panel with the supplied initial experiment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes.weka.experiment.Experiment
getExperiment()
Gets the currently configured experiment.String
getName()
void
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener.boolean
setExperiment(weka.experiment.Experiment exp_old)
Sets the experiment to configure.void
setModePanel(weka.gui.experiment.SetupModePanel modePanel)
-
Methods inherited from class weka.gui.experiment.SimpleSetupPanel
cleanUpAfterSwitch, removeNotesFrame, setSelectedItem
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
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
-
Methods inherited from class java.awt.Container
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
-
Methods inherited from class java.awt.Component
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, getParent, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
m_Exp
protected TaskBasedExperiment m_Exp
The experiment being configured
-
m_TaskListPanel
protected TaskListPanel m_TaskListPanel
The panel for configuring selected OpenML tasks
-
m_AlgorithmListPanel
protected weka.gui.experiment.AlgorithmListPanel m_AlgorithmListPanel
The panel for configuring selected algorithms
-
m_BrowseDestinationButton
protected JButton m_BrowseDestinationButton
Button for browsing destination files
-
m_NotesButton
protected JButton m_NotesButton
A button for bringing up the notes
-
m_NotesFrame
protected JFrame m_NotesFrame
Frame for the notes
-
m_NotesText
protected JTextArea m_NotesText
Area for user notes Default of 10 rows
-
m_Support
protected final PropertyChangeSupport m_Support
Manages sending notifications to people when we change the experiment, at this stage, only the resultlistener so the resultpanel can update.
-
apiconnector
protected org.openml.apiconnector.io.OpenmlConnector apiconnector
-
openmlconfig
protected WekaConfig openmlconfig
-
m_ResultsDestinationPathLabel
protected JLabel m_ResultsDestinationPathLabel
Label for destination field
-
m_ResultsDestinationPathTField
protected JTextField m_ResultsDestinationPathTField
Input field for result destination path
-
-
Constructor Detail
-
OpenmlSimpleSetupPanel
public OpenmlSimpleSetupPanel(weka.experiment.Experiment exp)
Creates the setup panel with the supplied initial experiment.- Parameters:
exp
- a value of type 'Experiment'
-
OpenmlSimpleSetupPanel
public OpenmlSimpleSetupPanel()
Creates the setup panel with no initial experiment.
-
-
Method Detail
-
setExperiment
public boolean setExperiment(weka.experiment.Experiment exp_old)
Sets the experiment to configure.- Overrides:
setExperiment
in classweka.gui.experiment.SimpleSetupPanel
- Parameters:
exp_old
- - a value of type 'Experiment'- Returns:
- true if experiment could be configured, false otherwise
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes.- Overrides:
addPropertyChangeListener
in classweka.gui.experiment.SimpleSetupPanel
- Parameters:
l
- a value of type 'PropertyChangeListener'
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener.- Overrides:
removePropertyChangeListener
in classweka.gui.experiment.SimpleSetupPanel
- Parameters:
l
- a value of type 'PropertyChangeListener'
-
getExperiment
public weka.experiment.Experiment getExperiment()
Gets the currently configured experiment.- Overrides:
getExperiment
in classweka.gui.experiment.SimpleSetupPanel
- Returns:
- the currently configured experiment.
-
getName
public String getName()
- Overrides:
getName
in classweka.gui.experiment.SimpleSetupPanel
-
setModePanel
public void setModePanel(weka.gui.experiment.SetupModePanel modePanel)
- Overrides:
setModePanel
in classweka.gui.experiment.SimpleSetupPanel
-
-