Klasse Dateline

Alle implementierten Schnittstellen:
Styleable, EventTarget, Skinnable

public class Dateline extends FlexGanttFXControl
The dateline is a control that displays the actual dates (Mo, Tu, We, ...) in cells in one or more rows. The dateline is timezone aware (see setZoneId(ZoneId)) and keeps track of currently selected time intervals (getSelectedIntervals()). Furthermore the dateline control constantly updates the hoverTimeIntervalProperty() whenever the mouse moves over it.

 

Dateline
Seit:
1.0
  • Eigenschaftsdetails

  • Konstruktordetails

    • Dateline

      protected Dateline(Timeline timeline)
      Constructs a new dateline.
      Parameter:
      timeline - the parent timeline
      Seit:
      1.0
  • Methodendetails

    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Setzt außer Kraft:
      createDefaultSkin in Klasse Control
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Setzt außer Kraft:
      getUserAgentStylesheet in Klasse Region
    • selectedTimeIntervalProperty

      public final ReadOnlyObjectProperty<TimeInterval> selectedTimeIntervalProperty()
      A read-only property used to store the currently selected time interval. The value of this property gets updated whenever the user performs a time interval selection by dragging the mouse inside the timeline.
      Gibt zurück:
      the currently selected time interval
      Seit:
      1.0
      Siehe auch:
    • getSelectedTimeInterval

      public final TimeInterval getSelectedTimeInterval()
      Returns the value of selectedTimeIntervalProperty().
      Gibt zurück:
      the currently selected time interval
      Seit:
      1.0
    • zoomLassoEnabledProperty

      public final BooleanProperty zoomLassoEnabledProperty()
      A property used to control whether the zoom lasso feature will be available to the user or not. The zoom lasso allows the user to select a time range inside the dateline so that the dateline will zoom in as much as needed in order to make the range completely fill the visible area.
      Gibt zurück:
      true if the zoom lasso is enabled
      Seit:
      1.0
      Siehe auch:
    • isZoomLassoEnabled

      public final boolean isZoomLassoEnabled()
      Returns the value of zoomLassoEnabledProperty().
      Gibt zurück:
      true if the zoom lasso is enabled
      Seit:
      1.0
    • setZoomLassoEnabled

      public final void setZoomLassoEnabled(boolean enabled)
      Sets the value of zoomLassoEnabledProperty().
      Parameter:
      enabled - if true, then the zoom lasso is enabled
      Seit:
      1.0
    • setCellFactory

      public final <T extends TemporalUnit> void setCellFactory(Class<T> temporalUnitType, Callback<T, DatelineCell<T>> factory)
      Sets a cell factory on the dateline used to create dateline cells for the given temporal unit type (e.g. ChronoUnit, SimpleUnit).
      Typparameter:
      T - the type of the temporal unit (e.g. ChronoUnit)
      Parameter:
      temporalUnitType - the type of the temporal unit (e.g. ChronoUnit)
      factory - the factory used for creating new cells
      Seit:
      1.0
    • getCellFactory

      public final Callback<TemporalUnit, DatelineCell> getCellFactory(Class<? extends TemporalUnit> temporalUnitType)
      Returns the cell factory used for the given temporal unit type (e.g. ChronoUnit).
      Parameter:
      temporalUnitType - the type of the temporal unit (e.g. ChronoUnit)
      Gibt zurück:
      the factory callback
      Seit:
      1.0
    • getTimeline

      public final Timeline getTimeline()
      Returns the parent timeline container / node.
      Gibt zurück:
      the parent timeline
      Seit:
      1.0
    • modelProperty

      public final ObjectProperty<DatelineModel<? extends TemporalUnit>> modelProperty()
      A property used to store the model of the dateline control. The model provides information about the list of supported resolutions, available time zones, number of scales inside the dateline.
      Gibt zurück:
      the dateline model
      Seit:
      1.0
      Siehe auch:
    • getModel

      public final DatelineModel<? extends TemporalUnit> getModel()
      Returns the value of modelProperty().
      Gibt zurück:
      the dateline model
      Seit:
      1.0
    • setModel

      public final void setModel(DatelineModel<? extends TemporalUnit> model)
      Sets the value of modelProperty().
      Parameter:
      model - the dateline model
      Seit:
      1.0
    • firstDayOfWeekProperty

      public final ObjectProperty<DayOfWeek> firstDayOfWeekProperty()
      A property used to store the weekday that is considered the "first day of the week". In Germany the first day of the week is "Monday", in the US it is "Sunday". This is, for example, relevant for displaying grid lines correctly (between weeks).
      Gibt zurück:
      the first day of week
      Seit:
      1.1
      Siehe auch:
    • getFirstDayOfWeek

      public final DayOfWeek getFirstDayOfWeek()
      Returns the value of firstDayOfWeekProperty().
      Gibt zurück:
      the first day of week
      Seit:
      1.1
    • setFirstDayOfWeek

      public final void setFirstDayOfWeek(DayOfWeek day)
      Sets the value of firstDayOfWeekProperty().
      Parameter:
      day - the first day of week
      Seit:
      1.1
    • zoneIdProperty

      public final ObjectProperty<ZoneId> zoneIdProperty()
      A property used to store the time zone that is currently shown by the dateline. In this framework the dateline and each row can have their own time zones.
      Gibt zurück:
      the time zone ID
      Seit:
      1.0
      Siehe auch:
    • getZoneId

      public final ZoneId getZoneId()
      Returns the value of zoneIdProperty().
      Gibt zurück:
      the time zone ID
      Seit:
      1.0
    • setZoneId

      public final void setZoneId(ZoneId zoneId)
      Sets the value of zoneIdProperty().
      Parameter:
      zoneId - the time zone ID
      Seit:
      1.0
    • primaryTemporalUnitProperty

      public final ReadOnlyObjectProperty<TemporalUnit> primaryTemporalUnitProperty()
      A read-only property used to store the "primary" temporal unit, which is the unit shown at the bottom of the dateline. Example: the dateline shows "Year / Month" at the top and "Days" at the bottom. In this case "Days" will be the primary temporal unit. The primary temporal unit is always passed to the activity repositories when querying for the activities inside the visible time range. This allows the repository to return more or less activities. Example: calendars can decide to not return weekend days if the user is currently looking at "Years".
      Gibt zurück:
      the currently shown primary temporal unit
      Seit:
      1.0
      Siehe auch:
    • getPrimaryTemporalUnit

      public final TemporalUnit getPrimaryTemporalUnit()
      Returns the value of primaryTemporalUnitProperty().
      Gibt zurück:
      the currently shown primary temporal unit
      Seit:
      1.0
    • hoverTimeIntervalProperty

      public final ReadOnlyObjectProperty<TimeInterval> hoverTimeIntervalProperty()
      A read-only property that can be used to find out the time shown at the current mouse hover location.
      Gibt zurück:
      the time point at the mouse cursor location
      Seit:
      1.0
      Siehe auch:
    • getHoverTimeInterval

      public final TimeInterval getHoverTimeInterval()
      Returns the value of hoverTimeIntervalProperty().
      Gibt zurück:
      the time at the current mouse location
      Seit:
      1.0
    • getSelectedIntervals

      public final ObservableList<TimeInterval> getSelectedIntervals()
      An observable list of the currently selected time intervals. This list is the "selection model" of the dateline. The difference to the selectedTimeIntervalProperty() is that these selections are permanent while the single selected time interval is only used to highlight a section within the dateline for zoom in / out operations. This list of selected time intervals however represents days or weeks that the user clicked on while pressing the command key (on Mac) or the CTRL key (on Windows / Linux).
      Gibt zurück:
      the list of selected time intervals
      Seit:
      1.0
    • selectionModeProperty

      public final ObjectProperty<SelectionMode> selectionModeProperty()
      A property used to store the selection mode applied by the dateline when the user adds time interval selections. The value of this property enables the application to switch between a single selection model and a multi selection model.
      Gibt zurück:
      the current selection mode (single, multi)
      Seit:
      1.0
      Siehe auch:
    • setSelectionMode

      public final void setSelectionMode(SelectionMode mode)
      Sets the value of selectionModeProperty().
      Parameter:
      mode - the selection mode (single, multi)
      Seit:
      1.0
    • getSelectionMode

      public final SelectionMode getSelectionMode()
      Returns the value of selectionModeProperty().
      Gibt zurück:
      the selection mode (single, multi)
      Seit:
      1.0
    • getDatelineBuffer

      public double getDatelineBuffer()
      Ruft den Wert der datelineBuffer-Eigenschaft ab.
      Eigenschaftsbeschreibung:
      Gibt zurück:
      Wert der Eigenschaft datelineBuffer
      Siehe auch:
    • datelineBufferProperty

      public DoubleProperty datelineBufferProperty()
      Gibt zurück:
      die Eigenschaft datelineBuffer
      Siehe auch:
    • setDatelineBuffer

      public void setDatelineBuffer(double datelineBuffer)
      Legt den Wert der datelineBuffer-Eigenschaft fest.
      Eigenschaftsbeschreibung:
      Parameter:
      datelineBuffer - Wert für die Eigenschaft datelineBuffer
      Siehe auch:
    • getCalendars

      public final ObservableList<Calendar<?>> getCalendars()
      An observable list of calendars associated with the dateline. Information provided by the calendars can be used by the dateline to visualize events directly inside of it (e.g. national holidays).
      Gibt zurück:
      the list of calendars attached to the dateline
      Seit:
      1.0
    • getScaleResolutions

      public final ObservableList<Resolution<?>> getScaleResolutions()
      An observable list of the currently displayed resolutions within the various scales of the dateline. Example: when the dateline displays "Month" at the top, "Days" in the middle, and "Hours" at the bottom, then the list will have three entries, each entry representing the resolution of its scale.
      Gibt zurück:
      the list of currently showing resolutions
      Seit:
      1.0
      Siehe auch: