public class ResultsPanel extends JPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected ExtensionFileFilter |
m_arffFileFilter
ARFF file filter.
|
protected JComboBox |
m_CompareCombo
Lets the user select which performance measure to analyze.
|
protected DefaultComboBoxModel |
m_CompareModel
The model embedded in m_CompareCombo.
|
protected ExtensionFileFilter |
m_csvFileFilter
CSV file filter.
|
protected JButton |
m_DatasetKeyBut
Click to edit the columns used to determine the scheme.
|
protected JLabel |
m_DatasetKeyLabel
Displays the currently selected column names for the scheme & options.
|
protected JList |
m_DatasetKeyList
Displays the list of selected columns determining the scheme.
|
protected DefaultListModel |
m_DatasetKeyModel
Stores the list of attributes for selecting the scheme columns.
|
protected DefaultComboBoxModel |
m_DatasetModel
The model embedded in m_DatasetCombo.
|
protected JButton |
m_DisplayedButton
Lets the user select which schemes are compared to base.
|
protected JList |
m_DisplayedList
Holds the list of schemes to display.
|
protected DefaultListModel |
m_DisplayedModel
The model embedded in m_DisplayedList.
|
protected Experiment |
m_Exp
An experiment (used for identifying a result source) -- optional.
|
protected JFileChooser |
m_FileChooser
The file chooser for selecting result files.
|
protected JButton |
m_FromDBaseBut
Click to load results from a database.
|
protected JButton |
m_FromExpBut
Click to get results from the destination given in the experiment.
|
protected JButton |
m_FromFileBut
Click to load results from a file.
|
protected JLabel |
m_FromLab
Displays a message about the current result set.
|
protected ResultHistoryPanel |
m_History
A panel controlling results viewing.
|
protected InstanceQuery |
m_InstanceQuery
Does any database querying for us.
|
protected Instances |
m_Instances
The instances we're extracting results from.
|
protected Thread |
m_LoadThread
A thread to load results instances from a file or database.
|
protected JButton |
m_OutputFormatButton
lets the user choose the format for the output.
|
protected JTextArea |
m_OutText
Displays the output of tests.
|
protected JButton |
m_PerformBut
Click to start the test.
|
protected JButton |
m_ResultKeyBut
Click to edit the columns used to determine the scheme.
|
protected JLabel |
m_ResultKeyLabel
Displays the currently selected column names for the scheme & options.
|
protected JList |
m_ResultKeyList
Displays the list of selected columns determining the scheme.
|
protected DefaultListModel |
m_ResultKeyModel
Stores the list of attributes for selecting the scheme columns.
|
protected ResultMatrix |
m_ResultMatrix
the initial result matrix.
|
protected JButton |
m_SaveOutBut
Click to save test output to a file.
|
protected JCheckBox |
m_ShowStdDevs
Lets the user select whether standard deviations are to be output
or not.
|
protected JTextField |
m_SigTex
Lets the user edit the test significance.
|
protected JComboBox |
m_SortCombo
Lets the user select which column to use for sorting.
|
protected DefaultComboBoxModel |
m_SortModel
The model embedded in m_SortCombo.
|
protected JComboBox |
m_TesterClasses
Lists all the available classes implementing the Tester-Interface.
|
protected JLabel |
m_TesterClassesLabel
Displays the currently selected Tester-Class.
|
protected static DefaultComboBoxModel |
m_TesterClassesModel
Contains all the available classes implementing the Tester-Interface
(the display names).
|
protected static Vector |
m_Testers
Contains all the available classes implementing the Tester-Interface
(the actual Classes).
|
protected JButton |
m_TestsButton
Lets the user select which scheme to base comparisons against.
|
protected JList |
m_TestsList
Holds the list of schemes to base the test against.
|
protected DefaultListModel |
m_TestsModel
The model embedded in m_TestsList.
|
protected Tester |
m_TTester
The PairedTTester object.
|
protected static String |
NO_SOURCE
Message shown when no experimental results have been loaded.
|
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 |
---|
ResultsPanel()
Creates the results panel with no initial experiment.
|
Modifier and Type | Method and Description |
---|---|
protected Vector |
determineColumnNames(String list,
String defaultList,
Instances inst)
Returns a vector with column names of the dataset, listed in "list".
|
static void |
main(String[] args)
Tests out the results panel from the command line.
|
protected void |
performTest()
Carries out a t-test using the current configuration.
|
protected void |
saveBuffer()
Save the currently selected result buffer to a file.
|
protected void |
setComboSizes()
Sets the combo-boxes to a fixed size so they don't take up too much room
that would be better devoted to the test output box.
|
void |
setDatasetKeyFromDialog() |
void |
setDisplayedFromDialog() |
void |
setExperiment(Experiment exp)
Tells the panel to use a new experiment.
|
void |
setInstances(Instances newInstances)
Sets up the panel with a new set of instances, attempting
to guess the correct settings for various columns.
|
protected void |
setInstancesFromDatabaseTable(String tableName)
Queries a database to load results from the specified table name.
|
protected void |
setInstancesFromDBaseQuery()
Queries the user enough to make a database query to retrieve experiment
results.
|
protected void |
setInstancesFromExp(Experiment exp)
Examines the supplied experiment to determine the results destination
and attempts to load the results.
|
protected void |
setInstancesFromFile(File f)
Loads results from a set of instances contained in the supplied
file.
|
void |
setOutputFormatFromDialog()
displays the Dialog for the output format and sets the chosen settings,
if the user approves.
|
void |
setResultKeyFromDialog() |
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!
|
void |
setTestBaseFromDialog() |
protected void |
setTester()
sets the currently selected Tester-Class.
|
protected void |
setTTester()
Updates the test chooser with possible tests.
|
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, 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, 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 static final String NO_SOURCE
protected JButton m_FromFileBut
protected JButton m_FromDBaseBut
protected JButton m_FromExpBut
protected JLabel m_FromLab
protected DefaultComboBoxModel m_DatasetModel
protected DefaultComboBoxModel m_CompareModel
protected DefaultComboBoxModel m_SortModel
protected DefaultListModel m_TestsModel
protected DefaultListModel m_DisplayedModel
protected JLabel m_TesterClassesLabel
protected static DefaultComboBoxModel m_TesterClassesModel
Tester
protected static Vector m_Testers
Tester
protected JComboBox m_TesterClasses
Tester
protected JLabel m_DatasetKeyLabel
protected JButton m_DatasetKeyBut
protected DefaultListModel m_DatasetKeyModel
protected JList m_DatasetKeyList
protected JLabel m_ResultKeyLabel
protected JButton m_ResultKeyBut
protected DefaultListModel m_ResultKeyModel
protected JList m_ResultKeyList
protected JButton m_TestsButton
protected JButton m_DisplayedButton
protected JList m_TestsList
protected JList m_DisplayedList
protected JComboBox m_CompareCombo
protected JComboBox m_SortCombo
protected JTextField m_SigTex
protected JCheckBox m_ShowStdDevs
protected JButton m_OutputFormatButton
protected JButton m_PerformBut
protected JButton m_SaveOutBut
protected JTextArea m_OutText
protected ResultHistoryPanel m_History
protected JFileChooser m_FileChooser
protected ExtensionFileFilter m_csvFileFilter
protected ExtensionFileFilter m_arffFileFilter
protected Tester m_TTester
protected Instances m_Instances
protected InstanceQuery m_InstanceQuery
protected Thread m_LoadThread
protected Experiment m_Exp
protected ResultMatrix m_ResultMatrix
public ResultsPanel()
protected void setComboSizes()
public void setExperiment(Experiment exp)
exp
- a value of type 'Experiment'protected void setInstancesFromDBaseQuery()
protected void setInstancesFromExp(Experiment exp)
exp
- a value of type 'Experiment'protected void setInstancesFromDatabaseTable(String tableName)
tableName
- the name of the table containing results to retrieve.protected void setInstancesFromFile(File f)
f
- a value of type 'File'protected Vector determineColumnNames(String list, String defaultList, Instances inst)
list
- comma-separated list of attribute namesdefaultList
- the default list of attribute namesinst
- the instances to get the attribute names frompublic void setInstances(Instances newInstances)
newInstances
- the new set of results.protected void setSelectedItem(JComboBox cb, String item)
cb
- the combobox to set the item foritem
- the item to set activeprotected void setTTester()
protected void performTest()
public void setResultKeyFromDialog()
public void setDatasetKeyFromDialog()
public void setTestBaseFromDialog()
public void setDisplayedFromDialog()
public void setOutputFormatFromDialog()
protected void saveBuffer()
protected void setTester()
public static void main(String[] args)
args
- ignoredCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.