Modifier and Type | Class and Description |
---|---|
static class |
BinSizer.BinSizerSpecifier
Specifier for BinSizer values.
|
Constructor and Description |
---|
BinSizer() |
Modifier and Type | Method and Description |
---|---|
static BinSizer |
createCountBinSizer(double nbin)
Returns a bin sizer instance which divides the axis range up into
an approximately fixed number of equal intervals.
|
static BinSizer |
createFixedBinSizer(double binWidth)
Returns a bin sizer instance which always returns the same fixed
value.
|
static ConfigKey<BinSizer> |
createSizerConfigKey(ConfigMeta meta,
ReportKey<Double> widthReportKey,
int dfltNbin,
boolean allowZero)
Constructs a config key for acquiring BinSizers.
|
static String |
getConfigKeyDescription()
Returns an XML string describing in general terms how to operate
the BinSizer config key.
|
abstract double |
getWidth(boolean xlog,
double xlo,
double xhi,
Rounding rounding)
Provides a bin width value for a given axis data range.
|
public abstract double getWidth(boolean xlog, double xlo, double xhi, Rounding rounding)
xlog
- false for linear scaling, true for logarithmicxlo
- axis lower boundxhi
- axis upper boundrounding
- rounding policy hint (may be ignored)
or null for no roundingpublic static BinSizer createFixedBinSizer(double binWidth)
binWidth
- fixed bin widthpublic static BinSizer createCountBinSizer(double nbin)
nbin
- number of intervals to divide the axis intopublic static ConfigKey<BinSizer> createSizerConfigKey(ConfigMeta meta, ReportKey<Double> widthReportKey, int dfltNbin, boolean allowZero)
meta
- key metadatawidthReportKey
- report key giving bin width in data coordinatesdfltNbin
- default bin countallowZero
- true iff zero is an allowed widthpublic static String getConfigKeyDescription()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.