public class DefaultTimeTickUnitSupplier extends Object implements TickUnitSupplier
| Modifier and Type | Field and Description |
|---|---|
static String |
HIGHRES_FORMAT |
static String |
HIGHRES_MODE |
static int |
HIGHRES_MODE_INDICES |
static double[] |
TICK_UNIT_DEFAULTS
We use these for auto ranging to pick a user friendly tick unit.
|
static String[] |
TICK_UNIT_FORMATTER_DEFAULTS
These are matching date formatter strings N.B.
|
| Constructor and Description |
|---|
DefaultTimeTickUnitSupplier() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeTickUnit(double referenceTickUnit)
Should return tick unit that is equal or greater to the given reference tick unit.
|
static int |
getTickIndex(double referenceTickUnit)
Gets the index in the TICK_UNIT_DEFAULT list, for which the tick unit is just larger or equal to the reference
tick unit.
|
public static final String HIGHRES_MODE
public static final int HIGHRES_MODE_INDICES
public static final String HIGHRES_FORMAT
public static final double[] TICK_UNIT_DEFAULTS
public static final String[] TICK_UNIT_FORMATTER_DEFAULTS
public double computeTickUnit(double referenceTickUnit)
computeTickUnit in interface TickUnitSupplierreferenceTickUnit - reference tick unitpublic static int getTickIndex(double referenceTickUnit)
referenceTickUnit - pre-computed tick unitCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.