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)
AttributeSelectionPanel()
- Creates the attribute selection panel with no initial instances.
getSelectedAttributes()
- Gets an array containing the indices of all selected attributes.
getSelectionModel()
- Gets the selection model used by the table.
main(String[])
- Tests the attribute selection panel from the command line.
setInstances(Instances)
- Sets the instances who's attribute names will be displayed.
AttributeSelectionPanel
public AttributeSelectionPanel()
Creates the attribute selection panel with no initial instances.
setInstances
public void setInstances(Instances newInstances)
Sets the instances who's attribute names will be displayed.
- Parameters:
newInstances
- the new set of instances
getSelectedAttributes
public int[] getSelectedAttributes()
Gets an array containing the indices of all selected attributes.
- Returns:
- the array of selected indices.
getSelectionModel
public javax.swing.ListSelectionModel getSelectionModel()
Gets the selection model used by the table.
- Returns:
- a value of type 'ListSelectionModel'
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