All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.gui.SetInstancesPanel

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----javax.swing.JComponent
                            |
                            +----javax.swing.JPanel
                                    |
                                    +----weka.gui.SetInstancesPanel

public class SetInstancesPanel
extends javax.swing.JPanel
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.

Version:
$Revision: 1.7 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Constructor Index

 o SetInstancesPanel()
Create the panel.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a PropertyChangeListener who will be notified of value changes.
 o getInstances()
Gets the set of instances currently held by the panel
 o getSummary()
Gets the instances summary panel associated with this panel
 o removePropertyChangeListener(PropertyChangeListener)
Removes a PropertyChangeListener.
 o setInstances(Instances)
Updates the set of instances that is currently held by the panel
 o setInstancesFromFileQ()
Queries the user for a file to load instances from, then loads the instances in a background process.
 o setInstancesFromURLQ()
Queries the user for a URL to load instances from, then loads the instances in a background process.

Constructor Detail

 o SetInstancesPanel
public SetInstancesPanel()
          Create the panel.

Method Detail

 o 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.
 o 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.
 o setInstances
public void setInstances(Instances i)
          Updates the set of instances that is currently held by the panel
Parameters:
i - a value of type 'Instances'
 o getInstances
public Instances getInstances()
          Gets the set of instances currently held by the panel
Returns:
a value of type 'Instances'
 o getSummary
public InstancesSummaryPanel getSummary()
          Gets the instances summary panel associated with this panel
Returns:
the instances summary panel
 o 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
 o 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home