| 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 scaleWidth)
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 |
getScaleWidth(Scale scale,
double dlo,
double dhi,
boolean rounded)
Provides a bin width value in scale units for a given axis data range.
|
public abstract double getScaleWidth(Scale scale, double dlo, double dhi, boolean rounded)
scale - axis scalingdlo - data value lower bounddhi - data value upper boundrounded - if true, an attempt may be made to provide a width
that corresponds to some kind of round number;
this hint may be ignoredpublic static BinSizer createFixedBinSizer(double scaleWidth)
scaleWidth - fixed bin width in scale unitspublic 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.