|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--weka.gui.SetInstancesPanel
A panel that displays an instance summary for a set of instances and lets the user open a set of instances from either a file or URL.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected FileFilter |
m_ArffFilter
Filter to ensure only arff files are selected |
protected JFileChooser |
m_FileChooser
The file chooser for selecting arff files |
protected Instances |
m_Instances
The current set of instances loaded |
protected Thread |
m_IOThread
The thread we do loading in |
protected String |
m_LastURL
Stores the last URL that instances were loaded from |
protected JButton |
m_OpenFileBut
Click to open instances from a file |
protected JButton |
m_OpenURLBut
Click to open instances from a URL |
protected InstancesSummaryPanel |
m_Summary
The instance summary component |
protected PropertyChangeSupport |
m_Support
Manages sending notifications to people when we change the set of working instances. |
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 | |
SetInstancesPanel()
Create the panel. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes. |
Instances |
getInstances()
Gets the set of instances currently held by the panel |
InstancesSummaryPanel |
getSummary()
Gets the instances summary panel associated with this panel |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener. |
void |
setInstances(Instances i)
Updates the set of instances that is currently held by the panel |
protected void |
setInstancesFromFile(File f)
Loads results from a set of instances contained in the supplied file. |
void |
setInstancesFromFileQ()
Queries the user for a file to load instances from, then loads the instances in a background process. |
protected void |
setInstancesFromURL(URL u)
Loads instances from a URL. |
void |
setInstancesFromURLQ()
Queries the user for a URL to load instances from, then loads the instances in a background process. |
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 JButton m_OpenFileBut
protected JButton m_OpenURLBut
protected InstancesSummaryPanel m_Summary
protected FileFilter m_ArffFilter
protected JFileChooser m_FileChooser
protected String m_LastURL
protected Thread m_IOThread
protected PropertyChangeSupport m_Support
protected Instances m_Instances
Constructor Detail |
public SetInstancesPanel()
Method Detail |
public void setInstancesFromFileQ()
public void setInstancesFromURLQ()
protected void setInstancesFromFile(File f)
f
- a value of type 'File'protected void setInstancesFromURL(URL u)
u
- the URL to load from.public void setInstances(Instances i)
i
- a value of type 'Instances'public Instances getInstances()
public InstancesSummaryPanel getSummary()
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class JComponent
l
- a value of type 'PropertyChangeListener'public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class JComponent
l
- a value of type 'PropertyChangeListener'
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |