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

Class weka.gui.AttributeSelectionPanel

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

public class AttributeSelectionPanel
extends javax.swing.JPanel
Creates a panel that displays the attributes contained in a set of instances, letting the user toggle whether each attribute is selected or not (eg: so that unselected attributes can be removed before classification).

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

Constructor Index

 o AttributeSelectionPanel()
Creates the attribute selection panel with no initial instances.

Method Index

 o getSelectedAttributes()
Gets an array containing the indices of all selected attributes.
 o getSelectionModel()
Gets the selection model used by the table.
 o main(String[])
Tests the attribute selection panel from the command line.
 o setInstances(Instances)
Sets the instances who's attribute names will be displayed.

Constructor Detail

 o AttributeSelectionPanel
public AttributeSelectionPanel()
          Creates the attribute selection panel with no initial instances.

Method Detail

 o setInstances
public void setInstances(Instances newInstances)
          Sets the instances who's attribute names will be displayed.
Parameters:
newInstances - the new set of instances
 o getSelectedAttributes
public int[] getSelectedAttributes()
          Gets an array containing the indices of all selected attributes.
Returns:
the array of selected indices.
 o getSelectionModel
public javax.swing.ListSelectionModel getSelectionModel()
          Gets the selection model used by the table.
Returns:
a value of type 'ListSelectionModel'
 o main
public static void main(java.lang.String args[])
          Tests the attribute selection panel from the command line.
Parameters:
args - must contain the name of an arff file to load.

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