|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.visualization.stats.scatterplot.Matrix
public class Matrix
Displays a grid of scatter plots with each attribute plotted against each of the other attributes, also can choose overlays etc.
| Nested Class Summary | |
|---|---|
class |
Matrix.action
Listener for when the update button is pressed |
class |
Matrix.prop
Updates the progress bar using the "progress" of the swing worker |
| 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 | |
|---|---|
protected ArrayList<AbstractScatterPlotOverlay> |
m_Array
Overlays to be displayed |
protected JProgressBar |
m_Bar
Progress bar for displaying update progress |
protected JPanel |
m_Centre
Panel for displaying the scatter plots |
protected AbstractScatterPlotPaintlet |
m_Def
Default paintlet for GOEpanel |
protected AbstractScatterPlotOverlay[] |
m_Default
for default value for overlays |
protected HashSet<String> |
m_DeleteOverlay
Commandline strings of overlays to be deleted |
protected boolean |
m_NeedUpdate
Whether an update is required, if an option has been changed |
protected HashSet<String> |
m_NewOverlay
Commandline strings of new overlays to be added |
protected HashSet<String> |
m_OldHash
Commandline strings of overlays before new overlays chosen |
protected ParameterPanel |
m_OptionPanel
Panel containing the matrix options |
protected GenericArrayEditorPanel |
m_PanelOverlay
Displays a GAE for choosing overlays for the scatter plots |
protected GenericObjectEditorPanel |
m_PanelPaintlet
Displas a GOE for choosing the paintlet for the scatterplots |
protected ArrayList<JPanel> |
m_Panels
panels displaying names of attributes |
protected int |
m_Percent
Percentage of sample to use for sum-sample |
protected JPanel |
m_Progress
Panel for displaying the progress bar |
protected ArrayList<ScatterPlotSimple> |
m_ScatterPlots
array list contatining all of the scatter plots displayed in this matrix plot |
protected JSpinner |
m_Spin
for choosing the size of each scatter plot |
protected JSpinner |
m_SpinPercent
Spinner for choosing percent of data to sample |
protected JButton |
m_Stop
Button to stop the thread updating the overlays |
protected AbstractScatterPlotPaintlet |
m_Val
Paintlet for plotting, chosen using GOE |
protected adams.gui.visualization.stats.scatterplot.Matrix.progressWorker |
m_Work
Swing worker for displaying gui during update |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, 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 |
|---|
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 | |
|---|---|
Matrix()
|
|
| Method Summary | |
|---|---|
void |
initGUI()
|
protected void |
initialize()
|
void |
paint(Graphics g)
|
void |
redoPaintlets()
Change the paintlet for each scatterplot |
void |
reset()
Called by the class that creates this matrix panel once all he fields have been set |
void |
setInstances(Instances inst)
Set the instances to be displayed |
void |
setOverlays(AbstractScatterPlotOverlay[] val)
Set the overlays to be applied to each of the scatter plots |
void |
setPaintlet(AbstractScatterPlotPaintlet val)
Set the paintlet used for plotting the data on each scatter plot |
void |
setPercent(int val)
Set the value to use for the percent subsample |
void |
setPlotSize(int val)
Set the size of each of the scatter plots |
void |
updateOverlays()
Updates the display. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JPanel m_Centre
protected JSpinner m_Spin
protected AbstractScatterPlotOverlay[] m_Default
protected GenericArrayEditorPanel m_PanelOverlay
protected GenericObjectEditorPanel m_PanelPaintlet
protected AbstractScatterPlotPaintlet m_Val
protected ArrayList<ScatterPlotSimple> m_ScatterPlots
protected ArrayList<AbstractScatterPlotOverlay> m_Array
protected HashSet<String> m_OldHash
protected AbstractScatterPlotPaintlet m_Def
protected ArrayList<JPanel> m_Panels
protected int m_Percent
protected JSpinner m_SpinPercent
protected HashSet<String> m_DeleteOverlay
protected HashSet<String> m_NewOverlay
protected JProgressBar m_Bar
protected adams.gui.visualization.stats.scatterplot.Matrix.progressWorker m_Work
protected JPanel m_Progress
protected boolean m_NeedUpdate
protected JButton m_Stop
protected ParameterPanel m_OptionPanel
| Constructor Detail |
|---|
public Matrix()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelpublic void setInstances(Instances inst)
inst - Instances containing the datapublic void updateOverlays()
public void redoPaintlets()
public void initGUI()
initGUI in class BasePanelpublic void reset()
public void setPaintlet(AbstractScatterPlotPaintlet val)
val - Paintlet usedpublic void setOverlays(AbstractScatterPlotOverlay[] val)
val - Array of overlays to be appliedpublic void setPlotSize(int val)
val - Size in pixelspublic void paint(Graphics g)
paint in class JComponentpublic void setPercent(int val)
val - Percent of original sample
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||