Package qupath.lib.gui.charts
Class HistogramDisplay
java.lang.Object
qupath.lib.gui.charts.HistogramDisplay
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the requested number of bins used for the histogram.getPane()
Get the pane containing the histogram and associated UI components, for addition to a scene.void
parameterChanged
(ParameterList parameterList, String key, boolean isAdjusting) Notify listener that a parameter value has changed.void
Refresh the available measurements.void
Refresh the currently-displayed histogram (e.g.void
setNumBins
(int nBins) Set the number of bins for the histogram.void
showHistogram
(String column) Show the histogram for a specified data column.
-
Constructor Details
-
HistogramDisplay
Constructor.- Parameters:
model
- the table data for histogrammingshowTable
- 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
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
Show the histogram for a specified data column.- Parameters:
column
- the name of the column to show
-
parameterChanged
Description copied from interface:ParameterChangeListener
Notify listener that a parameter value has changed.- Specified by:
parameterChanged
in interfaceParameterChangeListener
- Parameters:
parameterList
- list containing the parameterkey
- key to identify the parameterisAdjusting
- if the parameter is in the process of being changed
-