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 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.2 $
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.

Constructors

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

Methods

 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 ListSelectionModel getSelectionModel()
Gets the selection model used by the table.

Returns:
a value of type 'ListSelectionModel'
 o main
 public static void main(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