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 the
ChronoUnit
. The chrono unit basically represents standard
calendar units ranging from milliseconds to thousands of years.- Since:
- 1.0
-
Property Summary
Properties inherited from class com.flexganttfx.model.dateline.DatelineModel
maxScaleCount, minScaleCount, scaleCount
-
Constructor Summary
Constructors Constructor Description ChronoUnitDatelineModel()
Constructs a new dateline model with a long list of predefined resolutions of typeChronoUnitResolution
. -
Method Summary
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 Details
-
ChronoUnitDatelineModel
public ChronoUnitDatelineModel()Constructs a new dateline model with a long list of predefined resolutions of typeChronoUnitResolution
.- Since:
- 1.0
-
-
Method Details
-
nextTemporalUnit
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
-