public class Dateline extends FlexGanttFXControl
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.
Modifier | Constructor and Description |
---|---|
protected |
Dateline(Timeline timeline)
Constructs a new dateline.
|
Modifier and Type | Method and Description |
---|---|
protected javafx.scene.control.Skin<?> |
createDefaultSkin() |
javafx.beans.property.DoubleProperty |
datelineBufferProperty() |
javafx.beans.property.ObjectProperty<DayOfWeek> |
firstDayOfWeekProperty()
A property used to store the weekday that is considered the "first day of the week".
|
javafx.collections.ObservableList<Calendar<?>> |
getCalendars()
An observable list of calendars associated with the dateline.
|
javafx.util.Callback<TemporalUnit,DatelineCell> |
getCellFactory(Class<? extends TemporalUnit> temporalUnitType)
Returns the cell factory used for the given temporal unit type (e.g.
|
double |
getDatelineBuffer() |
DayOfWeek |
getFirstDayOfWeek()
Returns the value of
firstDayOfWeekProperty() . |
TimeInterval |
getHoverTimeInterval()
Returns the value of
hoverTimeIntervalProperty() . |
DatelineModel<? extends TemporalUnit> |
getModel()
Returns the value of
modelProperty() . |
TemporalUnit |
getPrimaryTemporalUnit()
Returns the value of
primaryTemporalUnitProperty() . |
javafx.collections.ObservableList<Resolution<?>> |
getScaleResolutions()
An observable list of the currently displayed resolutions within the various
scales of the dateline.
|
javafx.collections.ObservableList<TimeInterval> |
getSelectedIntervals()
An observable list of the currently selected time intervals.
|
TimeInterval |
getSelectedTimeInterval()
Returns the value of
selectedTimeIntervalProperty() . |
javafx.scene.control.SelectionMode |
getSelectionMode()
Returns the value of
selectionModeProperty() . |
Timeline |
getTimeline()
Returns the parent timeline container / node.
|
String |
getUserAgentStylesheet() |
ZoneId |
getZoneId()
Returns the value of
zoneIdProperty() . |
javafx.beans.property.ReadOnlyObjectProperty<TimeInterval> |
hoverTimeIntervalProperty()
A read-only property that can be used to find out the time shown at the current
mouse hover location.
|
boolean |
isZoomLassoEnabled()
Returns the value of
zoomLassoEnabledProperty() . |
javafx.beans.property.ObjectProperty<DatelineModel<? extends TemporalUnit>> |
modelProperty()
A property used to store the model of the dateline control.
|
javafx.beans.property.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.
|
javafx.beans.property.ReadOnlyObjectProperty<TimeInterval> |
selectedTimeIntervalProperty()
A read-only property used to store the currently selected time interval.
|
javafx.beans.property.ObjectProperty<javafx.scene.control.SelectionMode> |
selectionModeProperty()
A property used to store the selection mode applied by the dateline when the user
adds time interval selections.
|
<T extends TemporalUnit> |
setCellFactory(Class<T> temporalUnitType,
javafx.util.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) |
void |
setFirstDayOfWeek(DayOfWeek day)
Sets the value of
firstDayOfWeekProperty() . |
void |
setModel(DatelineModel<? extends TemporalUnit> model)
Sets the value of
modelProperty() . |
void |
setSelectionMode(javafx.scene.control.SelectionMode mode)
Sets the value of
selectionModeProperty() . |
void |
setZoneId(ZoneId zoneId)
Sets the value of
zoneIdProperty() . |
void |
setZoomLassoEnabled(boolean enabled)
Sets the value of
zoomLassoEnabledProperty() . |
javafx.beans.property.ObjectProperty<ZoneId> |
zoneIdProperty()
A property used to store the time zone that is currently shown by the dateline.
|
javafx.beans.property.BooleanProperty |
zoomLassoEnabledProperty()
A property used to control whether the zoom lasso feature will be available to the user
or not.
|
getUserAgentStylesheet
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, 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, snapSize, snapSpace, snapToPixelProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, 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, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
protected Dateline(Timeline timeline)
timeline
- the parent timelineprotected javafx.scene.control.Skin<?> createDefaultSkin()
createDefaultSkin
in class javafx.scene.control.Control
public String getUserAgentStylesheet()
getUserAgentStylesheet
in class javafx.scene.layout.Region
public final javafx.beans.property.ReadOnlyObjectProperty<TimeInterval> selectedTimeIntervalProperty()
public final TimeInterval getSelectedTimeInterval()
selectedTimeIntervalProperty()
.public final javafx.beans.property.BooleanProperty zoomLassoEnabledProperty()
public final boolean isZoomLassoEnabled()
zoomLassoEnabledProperty()
.public final void setZoomLassoEnabled(boolean enabled)
zoomLassoEnabledProperty()
.enabled
- if true then the zoom lasso is enabledpublic final <T extends TemporalUnit> void setCellFactory(Class<T> temporalUnitType, javafx.util.Callback<T,DatelineCell<T>> factory)
T
- the type of the temporal unit (e.g. ChronoUnit)temporalUnitType
- the type of the temporal unit (e.g. ChronoUnit)factory
- the factory used for creating new cellspublic final javafx.util.Callback<TemporalUnit,DatelineCell> getCellFactory(Class<? extends TemporalUnit> temporalUnitType)
temporalUnitType
- the type of the temporal unit (e.g. ChronoUnit)public final Timeline getTimeline()
public final javafx.beans.property.ObjectProperty<DatelineModel<? extends TemporalUnit>> modelProperty()
public final DatelineModel<? extends TemporalUnit> getModel()
modelProperty()
.public final void setModel(DatelineModel<? extends TemporalUnit> model)
modelProperty()
.model
- the dateline modelpublic final javafx.beans.property.ObjectProperty<DayOfWeek> firstDayOfWeekProperty()
public final DayOfWeek getFirstDayOfWeek()
firstDayOfWeekProperty()
.public final void setFirstDayOfWeek(DayOfWeek day)
firstDayOfWeekProperty()
.day
- the first day of weekpublic final javafx.beans.property.ObjectProperty<ZoneId> zoneIdProperty()
public final ZoneId getZoneId()
zoneIdProperty()
.public final void setZoneId(ZoneId zoneId)
zoneIdProperty()
.zoneId
- the time zone IDpublic final javafx.beans.property.ReadOnlyObjectProperty<TemporalUnit> primaryTemporalUnitProperty()
public final TemporalUnit getPrimaryTemporalUnit()
primaryTemporalUnitProperty()
.public final javafx.beans.property.ReadOnlyObjectProperty<TimeInterval> hoverTimeIntervalProperty()
public final TimeInterval getHoverTimeInterval()
hoverTimeIntervalProperty()
.public final javafx.collections.ObservableList<TimeInterval> getSelectedIntervals()
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).public final javafx.beans.property.ObjectProperty<javafx.scene.control.SelectionMode> selectionModeProperty()
public final void setSelectionMode(javafx.scene.control.SelectionMode mode)
selectionModeProperty()
.mode
- the selection mode (single, multi)public final javafx.scene.control.SelectionMode getSelectionMode()
selectionModeProperty()
.public double getDatelineBuffer()
public javafx.beans.property.DoubleProperty datelineBufferProperty()
public void setDatelineBuffer(double datelineBuffer)
public final javafx.collections.ObservableList<Calendar<?>> getCalendars()
public final javafx.collections.ObservableList<Resolution<?>> getScaleResolutions()
DatelineModel.getResolutions()
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.