public class MatrixPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JSplitPane |
jp
Split pane for splitting the matrix and the buttons and bars
|
protected javax.swing.JList |
m_attribList
The list for selecting the attributes to display the plot matrix
|
protected java.awt.Color |
m_backgroundColor
For the background of the little plots
|
protected javax.swing.JComboBox |
m_classAttrib
The combo box to allow user to select the colouring attribute
|
protected boolean |
m_clearOSIPlottedCells |
protected ClassPanel |
m_cp
The panel that displays the legend of the colouring attribute
|
protected Instances |
m_data
The dataset for which this panel will display the plot matrix for
|
protected javax.swing.JCheckBox |
m_fastScroll |
protected javax.swing.JSlider |
m_jitter
The slider to add jitter to the plots
|
protected javax.swing.JScrollPane |
m_js
The scroll pane to scrolling the matrix
|
protected java.awt.Image |
m_osi |
protected javax.swing.JSlider |
m_plotSize
The slider to adjust the size of the cells in the matrix
|
protected boolean[][] |
m_plottedCells |
protected javax.swing.JSlider |
m_pointSize
The slider to adjust the size of the datapoints
|
protected double |
m_previousPercent |
protected boolean |
m_regenerateOSI |
protected javax.swing.JButton |
m_resampleBt
The label for resample percentage
|
protected javax.swing.JTextField |
m_resamplePercent
The text area for percentage to resample data
|
protected javax.swing.JTextField |
m_rseed
Random seed for random subsample
|
protected javax.swing.JButton |
m_selAttrib
The button to display a window to select attributes
|
protected Settings |
m_settings
Settings (if available) to pass through to the VisualizePanels
|
protected java.lang.String |
m_settingsOwnerID
ID of the owner (perspective, panel etc.) under which to lookup our
settings
|
protected javax.swing.JButton |
m_updateBt
The button that updates the display to reflect the changes made by the
user.
|
protected javax.swing.JPanel |
optionsPanel
The panel that contains all the buttons and tools, i.e. resize, jitter bars
and sub-sampling buttons etc on the bottom of the panel
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
MatrixPanel()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(Settings settings,
java.lang.String ownerID) |
void |
initInternalFields()
Initializes internal data fields, i.e. data values, type, missing and color
cache arrays
|
static void |
main(java.lang.String[] args)
Main method for testing this class
|
void |
setInstances(Instances newInst)
This method changes the Instances object of this class to a new one.
|
void |
setPercent()
Calculates the percentage to resample
|
void |
setPlotBackgroundColour(java.awt.Color c)
Set the background colour for the cells in the matrix
|
void |
setPlotSize(int plotSize)
Set the plot size
|
void |
setPointSize(int pointSize)
Set the point size for the plots
|
void |
setupAttribLists()
Sets up the UI's attributes lists
|
void |
updatePanel()
Update the display.
|
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 final ClassPanel m_cp
protected javax.swing.JPanel optionsPanel
protected javax.swing.JSplitPane jp
protected javax.swing.JButton m_updateBt
protected javax.swing.JButton m_selAttrib
protected Instances m_data
protected javax.swing.JList m_attribList
protected final javax.swing.JScrollPane m_js
protected javax.swing.JComboBox m_classAttrib
protected javax.swing.JSlider m_plotSize
protected javax.swing.JSlider m_pointSize
protected javax.swing.JSlider m_jitter
protected javax.swing.JTextField m_resamplePercent
protected javax.swing.JButton m_resampleBt
protected javax.swing.JTextField m_rseed
protected Settings m_settings
protected java.awt.Color m_backgroundColor
protected java.lang.String m_settingsOwnerID
protected transient java.awt.Image m_osi
protected boolean[][] m_plottedCells
protected boolean m_regenerateOSI
protected boolean m_clearOSIPlottedCells
protected double m_previousPercent
protected javax.swing.JCheckBox m_fastScroll
public void initInternalFields()
public void setupAttribLists()
public void setPercent()
public void setInstances(Instances newInst)
newInst - The new set of Instancespublic static void main(java.lang.String[] args)
public void setPointSize(int pointSize)
pointSize - the point size to usepublic void setPlotSize(int plotSize)
plotSize - the plot size to usepublic void setPlotBackgroundColour(java.awt.Color c)
c - the background colourpublic void applySettings(Settings settings, java.lang.String ownerID)
settings - ownerID - public void updatePanel()