the type of the temporal unit for which the model is defined (normally ChronoUnit
or SimpleUnit
).
Adds a resolution to the model.
the resolution to add
Adds a ZoneId to the model.
the zone ID to add
Removes all resolutions for the given temporal unit.
the temporal unit for which to remove all resolutions
Returns all ZoneId instances that are available for the user to switch to.
the available zone IDs
Returns the maximum scale count.
the maximum scale count
Returns the minimum scale count.
the minimum scale count
Returns all resolutions that are available for the given temporal unit.
the temporal unit for which resolutions are looked up
the available resolutions for the given temporal unit
Returns the number of currently visible scales.
the scale count
Returns all temporal units that are being used by the model.
the list of temporal units used by the model
Returns the next larger temporal unit for the given temporal unit, e.g. when passing ChronoUnit.HOURS this method might return ChronoUnit.DAYS.
the unit for which to return the next higher unit
the next higher temporal unit
Removes a resolution from the model.
the resolution that will be removed
Sets the maximum scale count.
the new maximum scale count
Sets the minimum scale count.
the new minimum scale count
Sets the number of currently visible scales.
the new scale count
The dateline model provides the dateline control with various pieces of information so that it can layout itself correctly.
Scale Resolutions - a scale resolution defines which temporal unit to show (e.g. HOURS) and how to format it. It also contains the information whether it can be shown in a top, bottom, or middle scale. Each model usually defines a long list of such resolutions. The more resolutions are defined the more flexible the dateline control becomes.
Time Zones - The dateline control allows the user to switch between different time zones. The model defines which zones are available.
Scale Count - The dateline control is composed of a set of dateline scales (top, bottom, several middle scales). The model can be used to define the currently visible, the minimum and the maximum number of scales that the user can choose to see.
Temporal Units - The dateline control calls back onto the model to lookup the "next" temporal unit after it has either failed or succeeded to create a scale for the current unit.
1.0