Class AttributeSelectionPanel.AttributeTableModel

    • Field Detail

      • m_Instances

        protected weka.core.Instances m_Instances
        The instances who's attribute structure we are reporting
    • Constructor Detail

      • AttributeTableModel

        public AttributeTableModel​(weka.core.Instances instances)
        Creates the tablemodel with the given set of instances.
        Parameters:
        instances - the initial set of Instances
    • Method Detail

      • setInstances

        public void setInstances​(weka.core.Instances instances)
        Sets the tablemodel to look at a new set of instances.
        Parameters:
        instances - the new set of Instances.
      • getInstances

        public weka.core.Instances getInstances()
        Returns the underlying instances.
        Returns:
        the data
      • getRowCount

        public int getRowCount()
        Gets the number of attributes.
        Returns:
        the number of attributes.
      • getColumnCount

        public int getColumnCount()
        Gets the number of columns: 3
        Returns:
        3
      • getValueAt

        public Object getValueAt​(int row,
                                 int column)
        Gets a table cell
        Parameters:
        row - the row index
        column - the column index
        Returns:
        the value at row, column