Class DatelineModel<T extends TemporalUnit>

java.lang.Object
com.flexganttfx.model.dateline.DatelineModel<T>
Type Parameters:
T - the type of the temporal unit for which the model is defined (normally ChronoUnit or SimpleUnit.
Direct Known Subclasses:
ChronoUnitDatelineModel, SimpleUnitDatelineModel

public abstract class DatelineModel<T extends TemporalUnit>
extends Object
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.
Since:
1.0