|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--weka.gui.AttributeSelectionPanel
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).
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected JButton |
m_IncludeAll
Press to select all attributes |
protected JButton |
m_Invert
Press to invert the current selection |
protected weka.gui.AttributeSelectionPanel.AttributeTableModel |
m_Model
The table model containingn attribute names and selection status |
protected JButton |
m_RemoveAll
Press to deselect all attributes |
protected JTable |
m_Table
The table displaying attribute names and selection status |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AttributeSelectionPanel()
Creates the attribute selection panel with no initial instances. |
Method Summary | |
int[] |
getSelectedAttributes()
Gets an array containing the indices of all selected attributes. |
ListSelectionModel |
getSelectionModel()
Gets the selection model used by the table. |
static void |
main(String[] args)
Tests the attribute selection panel from the command line. |
void |
setInstances(Instances newInstances)
Sets the instances who's attribute names will be displayed. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected JButton m_IncludeAll
protected JButton m_RemoveAll
protected JButton m_Invert
protected JTable m_Table
protected weka.gui.AttributeSelectionPanel.AttributeTableModel m_Model
Constructor Detail |
public AttributeSelectionPanel()
Method Detail |
public void setInstances(Instances newInstances)
newInstances
- the new set of instancespublic int[] getSelectedAttributes()
public ListSelectionModel getSelectionModel()
public static void main(String[] args)
args
- must contain the name of an arff file to load.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |