protected static class CostBenefitAnalysis.AnalysisPanel
extends javax.swing.JPanel
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CostBenefitAnalysis.AnalysisPanel.ConfusionCell
Inner class for handling a single cell in the confusion matrix.
|
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JRadioButton |
m_benefitR |
protected Attribute |
m_classAttribute
The class attribute from the data that was used to generate the threshold
curve
|
protected javax.swing.JLabel |
m_classificationAccV
Classification accuracy
|
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell |
m_conf_aa |
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell |
m_conf_ab |
protected javax.swing.JLabel |
m_conf_actualA |
protected javax.swing.JLabel |
m_conf_actualB |
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell |
m_conf_ba |
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell |
m_conf_bb |
protected javax.swing.JLabel |
m_conf_predictedA |
protected javax.swing.JLabel |
m_conf_predictedB |
protected javax.swing.JTextField |
m_cost_aa |
protected javax.swing.JTextField |
m_cost_ab |
protected javax.swing.JLabel |
m_cost_actualA |
protected javax.swing.JLabel |
m_cost_actualB |
protected javax.swing.JTextField |
m_cost_ba |
protected javax.swing.JTextField |
m_cost_bb |
protected javax.swing.JLabel |
m_cost_predictedA |
protected javax.swing.JLabel |
m_cost_predictedB |
protected PlotData2D |
m_costBenefit
Data for the cost/benefit curve
|
protected javax.swing.JLabel |
m_costBenefitL |
protected VisualizePanel |
m_costBenefitPanel
Displays the cost/benefit (profit/loss) graph
|
protected javax.swing.JLabel |
m_costBenefitV |
protected javax.swing.JRadioButton |
m_costR |
protected double |
m_fnPrevious |
protected double |
m_fpPrevious |
protected javax.swing.JLabel |
m_gainV |
protected PlotData2D |
m_masterPlot
Data for the threshold curve
|
protected javax.swing.JButton |
m_maximizeCB |
protected javax.swing.JButton |
m_minimizeCB |
protected int |
m_originalPopSize |
protected javax.swing.JRadioButton |
m_percOfTarget |
protected javax.swing.JLabel |
m_percOfTargetLab |
protected javax.swing.JRadioButton |
m_percPop |
protected javax.swing.JLabel |
m_percPopLab |
protected VisualizePanel |
m_performancePanel
Displays the performance graphs(s)
|
protected int |
m_previousShapeIndex
The index of the previous plotted point that was highlighted
|
protected javax.swing.JLabel |
m_randomV |
protected int[] |
m_shapeSizes
The size of the points being plotted
|
protected javax.swing.JRadioButton |
m_threshold |
protected javax.swing.JLabel |
m_thresholdLab |
protected javax.swing.JSlider |
m_thresholdSlider
The slider for adjusting the threshold
|
protected double |
m_tnPrevious |
protected javax.swing.JTextField |
m_totalPopField
Population text field
|
protected int |
m_totalPopPrevious |
protected double |
m_tpPrevious |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
AnalysisPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
setDataSet(PlotData2D data,
Attribute classAtt)
Set the threshold data for the panel to use.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCycleprotected VisualizePanel m_performancePanel
protected VisualizePanel m_costBenefitPanel
protected Attribute m_classAttribute
protected PlotData2D m_masterPlot
protected PlotData2D m_costBenefit
protected int[] m_shapeSizes
protected int m_previousShapeIndex
protected javax.swing.JSlider m_thresholdSlider
protected javax.swing.JRadioButton m_percPop
protected javax.swing.JRadioButton m_percOfTarget
protected javax.swing.JRadioButton m_threshold
protected javax.swing.JLabel m_percPopLab
protected javax.swing.JLabel m_percOfTargetLab
protected javax.swing.JLabel m_thresholdLab
protected javax.swing.JLabel m_conf_predictedA
protected javax.swing.JLabel m_conf_predictedB
protected javax.swing.JLabel m_conf_actualA
protected javax.swing.JLabel m_conf_actualB
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell m_conf_aa
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell m_conf_ab
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell m_conf_ba
protected CostBenefitAnalysis.AnalysisPanel.ConfusionCell m_conf_bb
protected javax.swing.JLabel m_cost_predictedA
protected javax.swing.JLabel m_cost_predictedB
protected javax.swing.JLabel m_cost_actualA
protected javax.swing.JLabel m_cost_actualB
protected javax.swing.JTextField m_cost_aa
protected javax.swing.JTextField m_cost_ab
protected javax.swing.JTextField m_cost_ba
protected javax.swing.JTextField m_cost_bb
protected javax.swing.JButton m_maximizeCB
protected javax.swing.JButton m_minimizeCB
protected javax.swing.JRadioButton m_costR
protected javax.swing.JRadioButton m_benefitR
protected javax.swing.JLabel m_costBenefitL
protected javax.swing.JLabel m_costBenefitV
protected javax.swing.JLabel m_randomV
protected javax.swing.JLabel m_gainV
protected int m_originalPopSize
protected javax.swing.JTextField m_totalPopField
protected int m_totalPopPrevious
protected javax.swing.JLabel m_classificationAccV
protected double m_tpPrevious
protected double m_fpPrevious
protected double m_tnPrevious
protected double m_fnPrevious
public void setDataSet(PlotData2D data, Attribute classAtt) throws java.lang.Exception
data - PlotData2D object encapsulating the threshold data.classAtt - the class attribute from the original data used to
generate the threshold data.java.lang.Exception - if something goes wrong.