Class ClassifyReportPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ClassifyReportPanel extends JPanel
Panel for displaying the results of a classification of column contents. It can turn these results into an array of RowSubsets, based on user interaction including selection of particular categories and subset name assignment.
Since:
3 Feb 2015
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ClassifyReportPanel

      public ClassifyReportPanel()
      Constructor.
  • Method Details

    • setMaxCount

      public void setMaxCount(int ncat)
      Sets the maximum number of categories that will be displayed. The most populous ones will be displayed first. Calling this method affects the way that setData is carried out, it does not affect the current display.
      Parameters:
      ncat - maximum number of categories
    • setPrefix

      public void setPrefix(String prefix)
      Sets the standard prefix used for subset names. Calling this method affects the way that setData is carried out, it does not affect the current display.
      Parameters:
      prefix - new prefix
    • setData

      public void setData(uk.ac.starlink.table.ColumnData cdata, Classifier<?> classifier)
      Sets the classification data for display by this panel, and updates the display according to the current state. If the parameters are null, the display will be cleared.
      Parameters:
      cdata - column data used for classification
      classifier - classification results
    • getSubsetCount

      public int getSubsetCount()
      Returns the number of subsets corresponding to this component's current configuration.
      Returns:
      number of items returned by a call to createSubsets
    • createSubsets

      public RowSubset[] createSubsets()
      Returns a list of RowSubsets corresponding to the current state of this component.
      Returns:
      row subsets