java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
com.flexganttfx.view.util.FlexGanttFXControl
com.flexganttfx.view.timeline.Dateline
- All Implemented Interfaces:
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)
), keeps track of currently selected time intervals
(getSelectedIntervals()
) and fires events of type
DatelineScrollingEvent
whenever the visible time range changes (see
setOnVisibleRangeChanged(EventHandler)
). Furthermore the dateline
control constantly updates the hoverTimeIntervalProperty()
whenever
the mouse moves over it.

- Since:
- 1.0
-
Property Summary
Properties Type Property Description DoubleProperty
datelineBuffer
ObjectProperty<DayOfWeek>
firstDayOfWeek
A property used to store the weekday that is considered the "first day of the week".ReadOnlyObjectProperty<TimeInterval>
hoverTimeInterval
A read-only property that can be used to find out the time shown at the current mouse hover location.ObjectProperty<DatelineModel<? extends TemporalUnit>>
model
A property used to store the model of the dateline control.ObjectProperty<EventHandler<DatelineScrollingEvent>>
onVisibleRangeChanged
A property used to register an event handler that will be invoked whenever the currently visible time range is changing inside the dateline.ReadOnlyObjectProperty<TemporalUnit>
primaryTemporalUnit
A read-only property used to store the "primary" temporal unit, which is the unit shown at the bottom of the dateline.ReadOnlyObjectProperty<TimeInterval>
selectedTimeInterval
A read-only property used to store the currently selected time interval.ObjectProperty<SelectionMode>
selectionMode
A property used to store the selection mode applied by the dateline when the user adds time interval selections.ObjectProperty<ZoneId>
zoneId
A property used to store the time zone that is currently shown by the dateline.BooleanProperty
zoneIdVisible
A property used to control the visibility of the time zone name.BooleanProperty
zoomLassoEnabled
A property used to control whether the zoom lasso feature will be available to the user or not.Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected Skin<?>
createDefaultSkin()
DoubleProperty
datelineBufferProperty()
ObjectProperty<DayOfWeek>
firstDayOfWeekProperty()
A property used to store the weekday that is considered the "first day of the week".ObservableList<Calendar<?>>
getCalendars()
An observable list of calendars associated with the dateline.Callback<TemporalUnit,DatelineCell>
getCellFactory(Class<? extends TemporalUnit> temporalUnitType)
Returns the cell factory used for the given temporal unit type (e.g.double
getDatelineBuffer()
Gets the value of the property datelineBuffer.DayOfWeek
getFirstDayOfWeek()
Returns the value offirstDayOfWeekProperty()
.TimeInterval
getHoverTimeInterval()
Returns the value ofhoverTimeIntervalProperty()
.DatelineModel<? extends TemporalUnit>
getModel()
Returns the value ofmodelProperty()
.EventHandler<DatelineScrollingEvent>
getOnVisibleRangeChanged()
Returns the value ofonVisibleRangeChangedProperty()
.TemporalUnit
getPrimaryTemporalUnit()
Returns the value ofprimaryTemporalUnitProperty()
.ObservableList<Resolution<?>>
getScaleResolutions()
An observable list of the currently displayed resolutions within the various scales of the dateline.ObservableList<TimeInterval>
getSelectedIntervals()
An observable list of the currently selected time intervals.TimeInterval
getSelectedTimeInterval()
Returns the value ofselectedTimeIntervalProperty()
.SelectionMode
getSelectionMode()
Returns the value ofselectionModeProperty()
.Timeline
getTimeline()
Returns the parent timeline container / node.String
getUserAgentStylesheet()
ZoneId
getZoneId()
Returns the value ofzoneIdProperty()
.ReadOnlyObjectProperty<TimeInterval>
hoverTimeIntervalProperty()
A read-only property that can be used to find out the time shown at the current mouse hover location.boolean
isZoneIdVisible()
Returns the value of thezoneIdVisibleProperty()
.boolean
isZoomLassoEnabled()
Returns the value ofzoomLassoEnabledProperty()
.ObjectProperty<DatelineModel<? extends TemporalUnit>>
modelProperty()
A property used to store the model of the dateline control.ObjectProperty<EventHandler<DatelineScrollingEvent>>
onVisibleRangeChangedProperty()
A property used to register an event handler that will be invoked whenever the currently visible time range is changing inside the dateline.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.ReadOnlyObjectProperty<TimeInterval>
selectedTimeIntervalProperty()
A read-only property used to store the currently selected time interval.ObjectProperty<SelectionMode>
selectionModeProperty()
A property used to store the selection mode applied by the dateline when the user adds time interval selections.<T extends TemporalUnit>
voidsetCellFactory(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.void
setDatelineBuffer(double datelineBuffer)
Sets the value of the property datelineBuffer.void
setFirstDayOfWeek(DayOfWeek day)
Sets the value offirstDayOfWeekProperty()
.void
setModel(DatelineModel<? extends TemporalUnit> model)
Sets the value ofmodelProperty()
.void
setOnVisibleRangeChanged(EventHandler<DatelineScrollingEvent> handler)
Sets the value ofonVisibleRangeChangedProperty()
.void
setSelectionMode(SelectionMode mode)
Sets the value ofselectionModeProperty()
.void
setZoneId(ZoneId zoneId)
Sets the value ofzoneIdProperty()
.void
setZoneIdVisible(boolean visible)
Sets the value of thezoneIdVisibleProperty()
.void
setZoomLassoEnabled(boolean enabled)
Sets the value ofzoomLassoEnabledProperty()
.ObjectProperty<ZoneId>
zoneIdProperty()
A property used to store the time zone that is currently shown by the dateline.BooleanProperty
zoneIdVisibleProperty()
A property used to control the visibility of the time zone name.BooleanProperty
zoomLassoEnabledProperty()
A property used to control whether the zoom lasso feature will be available to the user or not.Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
Methods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
Property Details
-
selectedTimeInterval
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.- Since:
- 1.0
- See Also:
getSelectedTimeInterval()
-
zoomLassoEnabled
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.- Since:
- 1.0
- See Also:
isZoomLassoEnabled()
,setZoomLassoEnabled(boolean)
-
onVisibleRangeChanged
A property used to register an event handler that will be invoked whenever the currently visible time range is changing inside the dateline.- Since:
- 1.0
- See Also:
getOnVisibleRangeChanged()
,setOnVisibleRangeChanged(EventHandler)
-
model
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.- Since:
- 1.0
- See Also:
getModel()
,setModel(DatelineModel)
-
firstDayOfWeek
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).- Since:
- 1.1
- See Also:
getFirstDayOfWeek()
,setFirstDayOfWeek(DayOfWeek)
-
zoneId
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.- Since:
- 1.0
- See Also:
getZoneId()
,setZoneId(ZoneId)
-
zoneIdVisible
A property used to control the visibility of the time zone name. The dateline is capable of displaying the time zone that it represents in its upper right corner.- Since:
- 1.0
- See Also:
isZoneIdVisible()
,setZoneIdVisible(boolean)
-
primaryTemporalUnit
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".- Since:
- 1.0
- See Also:
getPrimaryTemporalUnit()
-
hoverTimeInterval
A read-only property that can be used to find out the time shown at the current mouse hover location.- Since:
- 1.0
- See Also:
getHoverTimeInterval()
-
selectionMode
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.- Since:
- 1.0
- See Also:
getSelectionMode()
,setSelectionMode(SelectionMode)
-
datelineBuffer
- See Also:
getDatelineBuffer()
,setDatelineBuffer(double)
-
-
Constructor Details
-
Dateline
Constructs a new dateline.- Parameters:
timeline
- the parent timeline- Since:
- 1.0
-
-
Method Details
-
createDefaultSkin
- Overrides:
createDefaultSkin
in classControl
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheet
in classRegion
-
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.- Since:
- 1.0
- See Also:
getSelectedTimeInterval()
-
getSelectedTimeInterval
Returns the value ofselectedTimeIntervalProperty()
.- Returns:
- the currently selected time interval
- Since:
- 1.0
-
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.- Since:
- 1.0
- See Also:
isZoomLassoEnabled()
,setZoomLassoEnabled(boolean)
-
isZoomLassoEnabled
public final boolean isZoomLassoEnabled()Returns the value ofzoomLassoEnabledProperty()
.- Returns:
- true if the zoom lasso is enabled
- Since:
- 1.0
-
setZoomLassoEnabled
public final void setZoomLassoEnabled(boolean enabled)Sets the value ofzoomLassoEnabledProperty()
.- Parameters:
enabled
- if true then the zoom lasso is enabled- Since:
- 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).- Type Parameters:
T
- the type of the temporal unit (e.g. ChronoUnit)- Parameters:
temporalUnitType
- the type of the temporal unit (e.g. ChronoUnit)factory
- the factory used for creating new cells- Since:
- 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).- Parameters:
temporalUnitType
- the type of the temporal unit (e.g. ChronoUnit)- Returns:
- the factory callback
- Since:
- 1.0
-
onVisibleRangeChangedProperty
A property used to register an event handler that will be invoked whenever the currently visible time range is changing inside the dateline.- Since:
- 1.0
- See Also:
getOnVisibleRangeChanged()
,setOnVisibleRangeChanged(EventHandler)
-
setOnVisibleRangeChanged
Sets the value ofonVisibleRangeChangedProperty()
.- Parameters:
handler
- the event handler for time range changes- Since:
- 1.0
-
getOnVisibleRangeChanged
Returns the value ofonVisibleRangeChangedProperty()
.- Returns:
- the event handler for time range changes
- Since:
- 1.0
-
getTimeline
Returns the parent timeline container / node.- Returns:
- the parent timeline
- Since:
- 1.0
-
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.- Since:
- 1.0
- See Also:
getModel()
,setModel(DatelineModel)
-
getModel
Returns the value ofmodelProperty()
.- Returns:
- the dateline model
- Since:
- 1.0
-
setModel
Sets the value ofmodelProperty()
.- Parameters:
model
- the dateline model- Since:
- 1.0
-
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).- Since:
- 1.1
- See Also:
getFirstDayOfWeek()
,setFirstDayOfWeek(DayOfWeek)
-
getFirstDayOfWeek
Returns the value offirstDayOfWeekProperty()
.- Returns:
- the first day of week
- Since:
- 1.1
-
setFirstDayOfWeek
Sets the value offirstDayOfWeekProperty()
.- Parameters:
day
- the first day of week- Since:
- 1.1
-
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.- Since:
- 1.0
- See Also:
getZoneId()
,setZoneId(ZoneId)
-
getZoneId
Returns the value ofzoneIdProperty()
.- Returns:
- the time zone ID
- Since:
- 1.0
-
setZoneId
Sets the value ofzoneIdProperty()
.- Parameters:
zoneId
- the time zone ID- Since:
- 1.0
-
zoneIdVisibleProperty
A property used to control the visibility of the time zone name. The dateline is capable of displaying the time zone that it represents in its upper right corner.- Since:
- 1.0
- See Also:
isZoneIdVisible()
,setZoneIdVisible(boolean)
-
isZoneIdVisible
public final boolean isZoneIdVisible()Returns the value of thezoneIdVisibleProperty()
.- Returns:
- true if the time zone ID shall be shown to the user
- Since:
- 1.0
-
setZoneIdVisible
public final void setZoneIdVisible(boolean visible)Sets the value of thezoneIdVisibleProperty()
.- Parameters:
visible
- true if the time zone ID shall be shown to the user- Since:
- 1.0
-
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".- Since:
- 1.0
- See Also:
getPrimaryTemporalUnit()
-
getPrimaryTemporalUnit
Returns the value ofprimaryTemporalUnitProperty()
.- Returns:
- the currently shown primary temporal unit
- Since:
- 1.0
-
hoverTimeIntervalProperty
A read-only property that can be used to find out the time shown at the current mouse hover location.- Since:
- 1.0
- See Also:
getHoverTimeInterval()
-
getHoverTimeInterval
Returns the value ofhoverTimeIntervalProperty()
.- Returns:
- the time at the current mouse location
- Since:
- 1.0
-
getSelectedIntervals
An observable list of the currently selected time intervals. This list is the "selection model" of the dateline. The difference to theselectedTimeIntervalProperty()
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).- Returns:
- the list of selected time intervals
- Since:
- 1.0
-
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.- Since:
- 1.0
- See Also:
getSelectionMode()
,setSelectionMode(SelectionMode)
-
setSelectionMode
Sets the value ofselectionModeProperty()
.- Parameters:
mode
- the selection mode (single, multi)- Since:
- 1.0
-
getSelectionMode
Returns the value ofselectionModeProperty()
.- Returns:
- the selection mode (single, multi)
- Since:
- 1.0
-
getDatelineBuffer
public double getDatelineBuffer()Gets the value of the property datelineBuffer.- Property description:
-
datelineBufferProperty
- See Also:
getDatelineBuffer()
,setDatelineBuffer(double)
-
setDatelineBuffer
public void setDatelineBuffer(double datelineBuffer)Sets the value of the property datelineBuffer.- Property description:
-
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).- Returns:
- the list of calendars attached to the dateline
- Since:
- 1.0
-
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.- Returns:
- the list of currently showing resolutions
- Since:
- 1.0
- See Also:
DatelineModel.getResolutions()
-