public class Timeline extends FlexGanttFXControl
Dateline
and the
Eventline
. It is displayed above the GraphicsBase
and
provides several methods for scrolling and zooming, both of which can be done
in an animated way (default) or not. The timeline also keeps track of the
time interval currently selected by the user (see
getSelectedTimeInterval()
) and the current time (see
setTimeTracker(TimeTracker)
).GanttChart.getTimeline()
,
setMoveAnimated(boolean)
,
setZoomAnimated(boolean)
contextMenu, skinClassName, skin, tooltip
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
impl_traversalEngine, needsLayout
blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, impl_showMnemonics, impl_treeVisible, 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, visible
Modifier and Type | Class and Description |
---|---|
static class |
Timeline.ZoomMode
An enum used to control the way that zooming operations will happen.
|
Modifier and Type | Field and Description |
---|---|
BooleanProperty |
moveAnimated |
BooleanProperty |
zoomAnimated |
USE_COMPUTED_SIZE, USE_PREF_SIZE
BASELINE_OFFSET_SAME_AS_HEIGHT
Constructor and Description |
---|
Timeline()
Constructs a new timeline control that is using the
ChronoUnitTimelineModel . |
Modifier and Type | Method and Description |
---|---|
protected Skin<?> |
createDefaultSkin() |
Dateline |
getDateline() |
Eventline |
getEventline() |
TimelineModel<?> |
getModel()
Gets the value of the property model.
|
Duration |
getMoveDuration()
Gets the value of the property moveDuration.
|
List<org.controlsfx.control.PropertySheet.Item> |
getPropertySheetItems() |
TimeInterval |
getSelectedTimeInterval()
Gets the value of the property selectedTimeInterval.
|
TimeTracker |
getTimeTracker()
Gets the value of the property timeTracker.
|
Duration |
getVisibleDuration() |
Instant |
getVisibleEndTime()
Gets the value of the property visibleEndTime.
|
Instant |
getVisibleStartTime()
Gets the value of the property visibleStartTime.
|
Duration |
getZoomDuration()
Gets the value of the property zoomDuration.
|
double |
getZoomFactor()
Gets the value of the property zoomFactor.
|
Timeline.ZoomMode |
getZoomMode()
Gets the value of the property zoomMode.
|
boolean |
isMoveAnimated()
Gets the value of the property moveAnimated.
|
boolean |
isZoomAnimated()
Gets the value of the property zoomAnimated.
|
boolean |
isZoomLassoEnabled()
Gets the value of the property zoomLassoEnabled.
|
ObjectProperty<TimelineModel<?>> |
modelProperty() |
BooleanProperty |
moveAnimatedProperty() |
ObjectProperty<Duration> |
moveDurationProperty() |
void |
scrollLeft() |
void |
scrollLeftFast() |
void |
scrollRight() |
void |
scrollRightFast() |
ReadOnlyObjectProperty<TimeInterval> |
selectedTimeIntervalProperty() |
void |
setModel(TimelineModel<?> timelineModel)
Sets the value of the property model.
|
void |
setMoveAnimated(boolean animated)
Sets the value of the property moveAnimated.
|
void |
setMoveDuration(Duration duration)
Sets the value of the property moveDuration.
|
void |
setTimeTracker(TimeTracker tracker)
Sets the value of the property timeTracker.
|
void |
setZoomAnimated(boolean animated)
Sets the value of the property zoomAnimated.
|
void |
setZoomDuration(Duration duration)
Sets the value of the property zoomDuration.
|
void |
setZoomFactor(double zoomFactor)
Sets the value of the property zoomFactor.
|
void |
setZoomLassoEnabled(boolean enabled)
Sets the value of the property zoomLassoEnabled.
|
void |
setZoomMode(Timeline.ZoomMode mode)
Sets the value of the property zoomMode.
|
void |
showNow() |
void |
showNow(boolean center) |
void |
showRange(Instant startTime,
Duration duration) |
void |
showRange(Instant startTime,
Instant endTime) |
void |
showRange(TimeInterval interval) |
void |
showTemporalUnit(TemporalUnit temporalUnit,
double width) |
void |
showTime(Instant time) |
void |
showTime(Instant time,
boolean center) |
void |
startTimeTracking() |
void |
stopTimeTracking() |
ObjectProperty<TimeTracker> |
timeTrackerProperty() |
ReadOnlyObjectProperty<Instant> |
visibleEndTimeProperty() |
ReadOnlyObjectProperty<Instant> |
visibleStartTimeProperty() |
void |
zoom(double factor,
boolean zoomIn,
Instant frozenTime) |
BooleanProperty |
zoomAnimatedProperty() |
ObjectProperty<Duration> |
zoomDurationProperty() |
DoubleProperty |
zoomFactorProperty() |
void |
zoomIn() |
BooleanProperty |
zoomLassoEnabledProperty() |
ObjectProperty<Timeline.ZoomMode> |
zoomModeProperty() |
void |
zoomOut() |
getUserAgentStylesheet
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, 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
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, 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, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, screenToLocal, screenToLocal, screenToLocal, 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
public final ReadOnlyObjectProperty<Instant> visibleStartTimeProperty
getVisibleStartTime()
public final ReadOnlyObjectProperty<Instant> visibleEndTimeProperty
getVisibleEndTime()
public final ObjectProperty<Duration> moveDurationProperty
getMoveDuration()
,
setMoveDuration(Duration)
public final BooleanProperty moveAnimatedProperty
isMoveAnimated()
,
setMoveAnimated(boolean)
public final ObjectProperty<TimelineModel<?>> modelProperty
getModel()
,
setModel(TimelineModel)
public final ReadOnlyObjectProperty<TimeInterval> selectedTimeIntervalProperty
getSelectedTimeInterval()
public final ObjectProperty<Duration> zoomDurationProperty
getZoomDuration()
,
setZoomDuration(Duration)
public final BooleanProperty zoomAnimatedProperty
isZoomAnimated()
,
setZoomAnimated(boolean)
public final BooleanProperty zoomLassoEnabledProperty
isZoomLassoEnabled()
,
setZoomLassoEnabled(boolean)
public final ObjectProperty<Timeline.ZoomMode> zoomModeProperty
getZoomMode()
,
setZoomMode(ZoomMode)
public final DoubleProperty zoomFactorProperty
getZoomFactor()
,
setZoomFactor(double)
public final ObjectProperty<TimeTracker> timeTrackerProperty
getTimeTracker()
,
setTimeTracker(TimeTracker)
public final BooleanProperty moveAnimated
public final BooleanProperty zoomAnimated
public Timeline()
ChronoUnitTimelineModel
.protected Skin<?> createDefaultSkin()
createDefaultSkin
in class Control
public final Dateline getDateline()
public final Eventline getEventline()
public final ReadOnlyObjectProperty<Instant> visibleStartTimeProperty()
getVisibleStartTime()
public final Instant getVisibleStartTime()
public final ReadOnlyObjectProperty<Instant> visibleEndTimeProperty()
getVisibleEndTime()
public final Instant getVisibleEndTime()
public final Duration getVisibleDuration()
public final ObjectProperty<Duration> moveDurationProperty()
getMoveDuration()
,
setMoveDuration(Duration)
public final void setMoveDuration(Duration duration)
public final Duration getMoveDuration()
public final BooleanProperty moveAnimatedProperty()
isMoveAnimated()
,
setMoveAnimated(boolean)
public final boolean isMoveAnimated()
public final void setMoveAnimated(boolean animated)
public final void showNow()
public final void showNow(boolean center)
public final void showTime(Instant time)
public final void showTime(Instant time, boolean center)
public final void showTemporalUnit(TemporalUnit temporalUnit, double width)
public final TimelineModel<?> getModel()
public final void setModel(TimelineModel<?> timelineModel)
public final ObjectProperty<TimelineModel<?>> modelProperty()
getModel()
,
setModel(TimelineModel)
public final ReadOnlyObjectProperty<TimeInterval> selectedTimeIntervalProperty()
getSelectedTimeInterval()
public final TimeInterval getSelectedTimeInterval()
public final ObjectProperty<Duration> zoomDurationProperty()
getZoomDuration()
,
setZoomDuration(Duration)
public final void setZoomDuration(Duration duration)
public final Duration getZoomDuration()
public final BooleanProperty zoomAnimatedProperty()
isZoomAnimated()
,
setZoomAnimated(boolean)
public final boolean isZoomAnimated()
public final BooleanProperty zoomLassoEnabledProperty()
isZoomLassoEnabled()
,
setZoomLassoEnabled(boolean)
public final boolean isZoomLassoEnabled()
public final void setZoomLassoEnabled(boolean enabled)
public final ObjectProperty<Timeline.ZoomMode> zoomModeProperty()
getZoomMode()
,
setZoomMode(ZoomMode)
public final Timeline.ZoomMode getZoomMode()
public final void setZoomMode(Timeline.ZoomMode mode)
public final DoubleProperty zoomFactorProperty()
getZoomFactor()
,
setZoomFactor(double)
public final double getZoomFactor()
public final void setZoomFactor(double zoomFactor)
public final void setZoomAnimated(boolean animated)
public final void zoomIn()
public final void zoomOut()
public final void zoom(double factor, boolean zoomIn, Instant frozenTime)
public final void showRange(TimeInterval interval)
public final ObjectProperty<TimeTracker> timeTrackerProperty()
getTimeTracker()
,
setTimeTracker(TimeTracker)
public final void setTimeTracker(TimeTracker tracker)
public final TimeTracker getTimeTracker()
public final void startTimeTracking()
public final void stopTimeTracking()
public final void scrollRight()
public final void scrollRightFast()
public final void scrollLeft()
public final void scrollLeftFast()
public final List<org.controlsfx.control.PropertySheet.Item> getPropertySheetItems()
Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.