- java.lang.Object
-
- com.flexganttfx.model.dateline.DatelineModel<ChronoUnit>
-
- com.flexganttfx.model.dateline.ChronoUnitDatelineModel
-
public final class ChronoUnitDatelineModel extends DatelineModel<ChronoUnit>
The chrono unit dateline model is a specialization of the dateline model that works in combination with theChronoUnit
. The chrono unit basically represents standard calendar units ranging from milliseconds to thousands of years.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description ChronoUnitDatelineModel()
Constructs a new dateline model with a long list of predefined resolutions of typeChronoUnitResolution
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChronoUnit
nextTemporalUnit(ChronoUnit unit)
Returns the next larger temporal unit for the given temporal unit, e.g.-
Methods inherited from class com.flexganttfx.model.dateline.DatelineModel
addResolution, addZoneId, clearResolutions, clearResolutions, getAvailableZoneIds, getMaxScaleCount, getMinScaleCount, getResolutions, getResolutions, getScaleCount, getTemporalUnits, maxScaleCountProperty, minScaleCountProperty, removeResolution, scaleCountProperty, setMaxScaleCount, setMinScaleCount, setScaleCount
-
-
-
-
Constructor Detail
-
ChronoUnitDatelineModel
public ChronoUnitDatelineModel()
Constructs a new dateline model with a long list of predefined resolutions of typeChronoUnitResolution
.- Since:
- 1.0
-
-
Method Detail
-
nextTemporalUnit
public final ChronoUnit nextTemporalUnit(ChronoUnit unit)
Description copied from class:DatelineModel
Returns the next larger temporal unit for the given temporal unit, e.g. when passingChronoUnit.HOURS
this method might returnChronoUnit.DAYS
.- Specified by:
nextTemporalUnit
in classDatelineModel<ChronoUnit>
- Parameters:
unit
- the unit for which to return the next higher unit- Returns:
- the next higher temporal unit
-
-