Class HistogramDisplay

java.lang.Object
qupath.lib.gui.charts.HistogramDisplay
All Implemented Interfaces:
ParameterChangeListener

public class HistogramDisplay extends Object implements ParameterChangeListener
Wrapper close to enable the generation and display of histograms relating to a data table. Other UI controls are provided to enable selection of specific data columns for display in the histogram.
Author:
Pete Bankhead
  • Constructor Details

    • HistogramDisplay

      public HistogramDisplay(PathTableData<?> model, boolean showTable)
      Constructor.
      Parameters:
      model - the table data for histogramming
      showTable - if true, include a measurement summary table along with the histogram
  • Method Details

    • refreshCombo

      public void refreshCombo()
      Refresh the available measurements.
    • setNumBins

      public void setNumBins(int nBins)
      Set the number of bins for the histogram.
      Parameters:
      nBins - the number of bins to use
    • getNumBins

      public int getNumBins()
      Get the requested number of bins used for the histogram.
      Returns:
    • getPane

      public Pane getPane()
      Get the pane containing the histogram and associated UI components, for addition to a scene.
      Returns:
    • refreshHistogram

      public void refreshHistogram()
      Refresh the currently-displayed histogram (e.g. because underlying data has changed).
    • showHistogram

      public void showHistogram(String column)
      Show the histogram for a specified data column.
      Parameters:
      column - the name of the column to show
    • parameterChanged

      public void parameterChanged(ParameterList parameterList, String key, boolean isAdjusting)
      Description copied from interface: ParameterChangeListener
      Notify listener that a parameter value has changed.
      Specified by:
      parameterChanged in interface ParameterChangeListener
      Parameters:
      parameterList - list containing the parameter
      key - key to identify the parameter
      isAdjusting - if the parameter is in the process of being changed