Package weka.gui

Class AttributeListPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class AttributeListPanel
    extends JPanel
    Creates a panel that displays the attributes contained in a set of instances, letting the user select a single attribute for inspection.
    Version:
    $Revision$
    Author:
    Richard Kirkby (rkirkby@cs.waikato.ac.nz), Len Trigg (trigg@cs.waikato.ac.nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • AttributeListPanel

        public AttributeListPanel()
        Creates the attribute selection panel with no initial instances.
    • Method Detail

      • setInstances

        public void setInstances​(Instances newInstances)
        Sets the instances who's attribute names will be displayed.
        Parameters:
        newInstances - the new set of instances
      • getSelectionModel

        public ListSelectionModel getSelectionModel()
        Gets the selection model used by the table.
        Returns:
        a value of type 'ListSelectionModel'
      • main

        public static void main​(String[] args)
        Tests the attribute list panel from the command line.
        Parameters:
        args - must contain the name of an arff file to load.