All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.explorer.PreprocessPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.explorer.PreprocessPanel
- public class PreprocessPanel
- extends javax.swing.JPanel
This panel controls simple preprocessing of instances. Summary
information on instances and attributes is shown. Filters may be
configured to alter the set of instances. Altered instances may
also be saved.
- Version:
- $Revision: 1.34 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
PreprocessPanel()
- Creates the instances panel with no initial instances.
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener who will be notified of value changes.
addUndoPoint()
- Backs up the current state of the dataset, so the changes can be undone.
getInstances()
- Gets the working set of instances.
main(String[])
- Tests out the instance-preprocessing panel from the command line.
removePropertyChangeListener(PropertyChangeListener)
- Removes a PropertyChangeListener.
saveWorkingInstancesToFileQ()
- Queries the user for a file to save instances as, then saves the
instances in a background process.
setInstances(Instances)
- Tells the panel to use a new base set of instances.
setInstancesFromDB(InstanceQuery)
- Loads instances from a database
setInstancesFromDBQ()
- Queries the user for a URL to a database to load instances from,
then loads the instances in a background process.
setInstancesFromFile(File)
- Loads results from a set of instances contained in the supplied
file.
setInstancesFromFileQ()
- Queries the user for a file to load instances from, then loads the
instances in a background process.
setInstancesFromURL(URL)
- Loads instances from a URL.
setInstancesFromURLQ()
- Queries the user for a URL to load instances from, then loads the
instances in a background process.
setLog(Logger)
- Sets the Logger to receive informational messages
undo()
- Reverts to the last backed up version of the dataset.
PreprocessPanel
public PreprocessPanel()
Creates the instances panel with no initial instances.
setLog
public void setLog(Logger newLog)
Sets the Logger to receive informational messages
- Parameters:
newLog - the Logger that will now get info messages
setInstances
public void setInstances(Instances inst)
Tells the panel to use a new base set of instances.
- Parameters:
inst - a set of Instances
getInstances
public Instances getInstances()
Gets the working set of instances.
- Returns:
- the working instances
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener who will be notified of value changes.
- Parameters:
l - a value of type 'PropertyChangeListener'
- Overrides:
- addPropertyChangeListener in class javax.swing.JComponent
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener.
- Parameters:
l - a value of type 'PropertyChangeListener'
- Overrides:
- removePropertyChangeListener in class javax.swing.JComponent
saveWorkingInstancesToFileQ
public void saveWorkingInstancesToFileQ()
Queries the user for a file to save instances as, then saves the
instances in a background process. This is done in the IO
thread, and an error message is popped up if the IO thread is busy.
setInstancesFromFileQ
public void setInstancesFromFileQ()
Queries the user for a file to load instances from, then loads the
instances in a background process. This is done in the IO
thread, and an error message is popped up if the IO thread is busy.
setInstancesFromDBQ
public void setInstancesFromDBQ()
Queries the user for a URL to a database to load instances from,
then loads the instances in a background process. This is done in the IO
thread, and an error message is popped up if the IO thread is busy.
setInstancesFromURLQ
public void setInstancesFromURLQ()
Queries the user for a URL to load instances from, then loads the
instances in a background process. This is done in the IO
thread, and an error message is popped up if the IO thread is busy.
setInstancesFromFile
public void setInstancesFromFile(java.io.File f)
Loads results from a set of instances contained in the supplied
file. This is started in the IO thread, and a dialog is popped up
if there's a problem.
- Parameters:
f - a value of type 'File'
setInstancesFromDB
public void setInstancesFromDB(InstanceQuery iq)
Loads instances from a database
- Parameters:
iq - the InstanceQuery object to load from (this is assumed
to have been already connected to a valid database).
setInstancesFromURL
public void setInstancesFromURL(java.net.URL u)
Loads instances from a URL.
- Parameters:
u - the URL to load from.
addUndoPoint
public void addUndoPoint() throws java.lang.Exception
Backs up the current state of the dataset, so the changes can be undone.
undo
public void undo()
Reverts to the last backed up version of the dataset.
main
public static void main(java.lang.String args[])
Tests out the instance-preprocessing panel from the command line.
- Parameters:
args - ignored
All Packages Class Hierarchy This Package Previous Next Index WEKA's home