Module com.flexganttfx.view
Package com.flexganttfx.view.graphics
Class ListViewGraphics<R extends Row<?,?,?>>
- 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.graphics.GraphicsBase<R>
-
- com.flexganttfx.view.graphics.ListViewGraphics<R>
-
- Type Parameters:
R
- the type of the rows displayed inside the list view
- All Implemented Interfaces:
Styleable
,EventTarget
,Skinnable
public class ListViewGraphics<R extends Row<?,?,?>> extends GraphicsBase<R>
A specialization ofGraphicsBase
that uses aListView
to display a list of rows. The user can use the arrow up and down keys for scrolling vertically and arrows left and right for scrolling horizontally.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.flexganttfx.view.graphics.GraphicsBase
GraphicsBase.ContextMenuParameter<R extends Row<?,?,?>>, GraphicsBase.DragAndDropFeedback, GraphicsBase.DragAndDropInfo, GraphicsBase.EditingCallbackParameter, GraphicsBase.EditMode, GraphicsBase.EditModeCallbackParameter, GraphicsBase.LassoSelectionBehaviour, GraphicsBase.RowControlsParameter<R extends Row<?,?,?>>, GraphicsBase.RowEditingMode, GraphicsBase.RowEditorParameter<R extends Row<?,?,?>>, GraphicsBase.SelectionMode
-
-
Field Summary
-
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
-
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
-
Constructor Summary
Constructors Constructor Description ListViewGraphics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleProperty
autoscrollProximityProperty()
This property defines the distance from the viewport borders (in pixels) where the viewport will automatically start scrolling, either horizontally or vertically.protected Skin<?>
createDefaultSkin()
protected ListView<R>
createListView()
Creates the list view instance to be used by this graphics view.double
getAutoscrollProximity()
Returns the value ofautoscrollProximityProperty()
.ListView<R>
getListView()
Returns the list view control used by this graphics view.double
getScrollValue()
Returns the value ofscrollValueProperty()
.void
scrollDown()
Makes the list view scroll down.void
scrollUp()
Makes the list view scroll up.DoubleProperty
scrollValueProperty()
Stores the number of pixels that the list view will scroll when the user uses the arrow up and down keys.void
setAutoscrollProximity(double value)
Sets the value ofautoscrollProximityProperty()
.void
setScrollValue(double pixels)
Sets the value ofscrollValueProperty()
.-
Methods inherited from class com.flexganttfx.view.graphics.GraphicsBase
activityFilterProperty, animateRowEditorProperty, autoGridEnabledProperty, autoMarkedTimeIntervalProperty, automaticRedrawProperty, contextMenuCallbackProperty, debugModeProperty, dragAndDropFeedbackProperty, dragAndDropInfoProperty, dragImageProviderProperty, dropLayerProviderProperty, editedActivityProperty, editModeProperty, extraPixelsProperty, fadeInOutVisibilityChangesDurationProperty, fadeInOutVisibilityChangesProperty, fixedCellSizeProperty, getActivityBoundsAt, getActivityEditingCallback, getActivityFilter, getActivityRefAt, getActivityRenderer, getAllActivityBoundsAt, getAllActivityRefsAt, getAllActivityRenderers, getAllCalendarActivitiesAt, getBackgroundSystemLayer, getBackgroundSystemLayers, getCalendars, getClassCssMetaData, getContextMenuCallback, getControlCssMetaData, getDragAndDropFeedback, getDragAndDropInfo, getDragImageProvider, getDropLayerProvider, getEarliestTimeUsed, getEditedActivity, getEditMode, getEditModeCallback, getExtraPixels, getFadeInOutVisibilityChangesDuration, getFixedCellSize, getForegroundSystemLayer, getForegroundSystemLayers, getGridLineColor1, getGridLineColor2, getGridLineColor3, getHighlightDelay, getHighlightedActivities, getHighlightedRows, getHoverActivity, getHoverLayout, getHoverRow, getInnerLinesColor, getLassoSelectionBehaviour, getLatestTimeUsed, getLayers, getLayoutAt, getLinks, getLocalTimeAt, getLocation, getMaxGridLevel, getOnActivityChange, getOnActivityChangeFinished, getOnActivityChangeOngoing, getOnActivityChangeStarted, getOnActivityChartHighValueChangeFinished, getOnActivityChartHighValueChangeOngoing, getOnActivityChartHighValueChangeStarted, getOnActivityChartLowValueChangeFinished, getOnActivityChartLowValueChangeOngoing, getOnActivityChartLowValueChangeStarted, getOnActivityChartValueChangeFinished, getOnActivityChartValueChangeOngoing, getOnActivityChartValueChangeStarted, getOnActivityDeleted, getOnActivityDragDone, getOnActivityDragFinished, getOnActivityDragOngoing, getOnActivityDragStarted, getOnActivityEndTimeChangeFinished, getOnActivityEndTimeChangeOngoing, getOnActivityEndTimeChangeStarted, getOnActivityHorizontalDragFinished, getOnActivityHorizontalDragOngoing, getOnActivityHorizontalDragStarted, getOnActivityPercentageChangeFinished, getOnActivityPercentageChangeOngoing, getOnActivityPercentageChangeStarted, getOnActivityStartTimeChangeFinished, getOnActivityStartTimeChangeOngoing, getOnActivityStartTimeChangeStarted, getOnActivityVerticalDragDone, getOnActivityVerticalDragFinished, getOnActivityVerticalDragOngoing, getOnActivityVerticalDragStarted, getOnLassoSelection, getOnLassoSelectionFinished, getOnLassoSelectionOngoing, getOnLassoSelectionStarted, getPlaceholder, getPressedActivity, getRowAt, getRowControlsFactory, getRowDragAndDropCallback, getRowEditingMode, getRowEditorFactory, getRowFilter, getRowPanes, getRows, getRowsEditing, getSelectedActivities, getSelectionMode, getSystemLayer, getTimeAt, getTimeline, getTimeNowColor, getUserAgentStylesheet, getVirtualGrid, getVirtualGrids, getWeekendColor, gridEnabledProperty, gridLineColor1Property, gridLineColor2Property, gridLineColor3Property, highlightDelayProperty, highlightedProperty, horizontalDragEnabledProperty, hoverActivityProperty, hoverLayoutProperty, hoverRowProperty, innerLinesColorProperty, isAnimateRowEditor, isAutoGridEnabled, isAutoMarkedTimeInterval, isAutomaticRedraw, isDebugMode, isFadeInOutVisibilityChanges, isGridEnabled, isHighlighted, isHorizontalDragEnabled, isLassoActive, isLassoEnabled, isLassoSnapsToGrid, isSafeRendering, isShowAgendaLinesLayer, isShowCalendarLayer, isShowChartLinesLayer, isShowDSTLineLayer, isShowGridLineLayer, isShowHorizontalCursor, isShowHoverTimeIntervalLayer, isShowInnerLinesLayer, isShowLayoutLayer, isShowMarkedTimeInterval, isShowNowLineLayer, isShowRowLayer, isShowScaleLayer, isShowSelectedTimeIntervalsLayer, isShowVerticalCursor, isShowZoneId, isShowZoomTimeIntervalLayer, lassoActiveProperty, lassoEnabledProperty, lassoSelectionBehaviourProperty, lassoSnapsToGridProperty, layoutLinks, maxGridLevelProperty, moveLayerBackward, moveLayerForward, moveLayerToBack, moveLayerToFront, onActivityChangeFinishedProperty, onActivityChangeOngoingProperty, onActivityChangeProperty, onActivityChangeStartedProperty, onActivityChartHighValueChangeFinishedProperty, onActivityChartHighValueChangeOngoingProperty, onActivityChartHighValueChangeStartedProperty, onActivityChartLowValueChangeFinishedProperty, onActivityChartLowValueChangeOngoingProperty, onActivityChartLowValueChangeStartedProperty, onActivityChartValueChangeFinishedProperty, onActivityChartValueChangeOngoingProperty, onActivityChartValueChangeStartedProperty, onActivityDeletedProperty, onActivityDragDoneProperty, onActivityDragFinishedProperty, onActivityDragOngoingProperty, onActivityDragStartedProperty, onActivityEndTimeChangeFinishedProperty, onActivityEndTimeChangeOngoingProperty, onActivityEndTimeChangeStartedProperty, onActivityHorizontalDragFinishedProperty, onActivityHorizontalDragOngoingProperty, onActivityHorizontalDragStartedProperty, onActivityPercentageChangeFinishedProperty, onActivityPercentageChangeOngoingProperty, onActivityPercentageChangeStartedProperty, onActivityStartTimeChangeFinishedProperty, onActivityStartTimeChangeOngoingProperty, onActivityStartTimeChangeStartedProperty, onActivityVerticalDragDoneProperty, onActivityVerticalDragFinishedProperty, onActivityVerticalDragOngoingProperty, onActivityVerticalDragStartedProperty, onLassoSelectionFinishedProperty, onLassoSelectionOngoingProperty, onLassoSelectionProperty, onLassoSelectionStartedProperty, placeholderProperty, pressedActivityProperty, redraw, rowControlsFactoryProperty, rowEditingModeProperty, rowEditorFactoryProperty, rowFilterProperty, rowsProperty, safeRenderingProperty, selectionModeProperty, setActivityEditingCallback, setActivityFilter, setActivityRenderer, setAnimateRowEditor, setAutoGridEnabled, setAutoMarkedTimeInterval, setAutomaticRedraw, setContextMenuCallback, setDebugMode, setDragAndDropFeedback, setDragImageProvider, setDropLayerProvider, setEditModeCallback, setExtraPixels, setFadeInOutVisibilityChanges, setFadeInOutVisibilityChangesDuration, setFixedCellSize, setGridLineColor1, setGridLineColor2, setGridLineColor3, setHighlightDelay, setHorizontalDragEnabled, setInnerLinesColor, setLassoEnabled, setLassoSelectionBehaviour, setLassoSnapsToGrid, setMaxGridLevel, setOnActivityChange, setOnActivityChangeFinished, setOnActivityChangeOngoing, setOnActivityChangeStarted, setOnActivityChartHighValueChangeFinished, setOnActivityChartHighValueChangeOngoing, setOnActivityChartHighValueChangeStarted, setOnActivityChartLowValueChangeFinished, setOnActivityChartLowValueChangeOngoing, setOnActivityChartLowValueChangeStarted, setOnActivityChartValueChangeFinished, setOnActivityChartValueChangeOngoing, setOnActivityChartValueChangeStarted, setOnActivityDeleted, setOnActivityDragDone, setOnActivityDragFinished, setOnActivityDragOngoing, setOnActivityDragStarted, setOnActivityEndTimeChangeFinished, setOnActivityEndTimeChangeOngoing, setOnActivityEndTimeChangeStarted, setOnActivityHorizontalDragFinished, setOnActivityHorizontalDragOngoing, setOnActivityHorizontalDragStarted, setOnActivityPercentageChangeFinished, setOnActivityPercentageChangeOngoing, setOnActivityPercentageChangeStarted, setOnActivityStartTimeChangeFinished, setOnActivityStartTimeChangeOngoing, setOnActivityStartTimeChangeStarted, setOnActivityVerticalDragDone, setOnActivityVerticalDragFinished, setOnActivityVerticalDragOngoing, setOnActivityVerticalDragStarted, setOnLassoSelection, setOnLassoSelectionFinished, setOnLassoSelectionOngoing, setOnLassoSelectionStarted, setPlaceholder, setRowControlsFactory, setRowDragAndDropCallback, setRowEditingMode, setRowEditorFactory, setRowFilter, setRows, setSafeRendering, setSelectionMode, setShowAgendaLinesLayer, setShowCalendarLayer, setShowChartLinesLayer, setShowDSTLineLayer, setShowGridLineLayer, setShowHorizontalCursor, setShowHoverTimeIntervalLayer, setShowInnerLinesLayer, setShowLayoutLayer, setShowMarkedTimeInterval, setShowNowLineLayer, setShowRowLayer, setShowScaleLayer, setShowSelectedTimeIntervalsLayer, setShowVerticalCursor, setShowZoneId, setShowZoomTimeIntervalLayer, setTimeline, setTimeNowColor, setVirtualGrid, setWeekendColor, showAgendaLinesLayerProperty, showAllActivities, showCalendarLayerProperty, showChartLinesLayerProperty, showDSTLineLayerProperty, showEarliestActivities, showGridLineLayerProperty, showHorizontalCursorProperty, showHoverTimeIntervalLayerProperty, showInnerLinesLayerProperty, showLatestActivities, showLayoutLayerProperty, showMarkedTimeIntervalProperty, showNowLineLayerProperty, showRowLayerProperty, showScaleLayerProperty, showSelectedTimeIntervalsLayerProperty, showVerticalCursorProperty, showZoneIdProperty, showZoomTimeIntervalLayerProperty, startRowEditing, stopRowEditing, stopRowEditing, timelineProperty, timeNowColorProperty, updatePropertySheet, virtualGridProperty, weekendColorProperty
-
Methods inherited from class com.flexganttfx.view.util.FlexGanttFXControl
getUserAgentStylesheet
-
Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
-
-
-
Method Detail
-
createDefaultSkin
protected Skin<?> createDefaultSkin()
- Overrides:
createDefaultSkin
in classControl
-
getListView
public final ListView<R> getListView()
Returns the list view control used by this graphics view.- Returns:
- the list view
- Since:
- 1.0
-
createListView
protected ListView<R> createListView()
Creates the list view instance to be used by this graphics view. This method can be overridden to return a specialization ofListView
.- Returns:
- a list view
- Since:
- 1.0
-
autoscrollProximityProperty
public final DoubleProperty autoscrollProximityProperty()
This property defines the distance from the viewport borders (in pixels) where the viewport will automatically start scrolling, either horizontally or vertically. This behaviour is needed when the user performs a drag operation and needs to reach an area inside the graphics that is currently not visible. Setting this value to 0 disables the automatic scrolling feature.- Returns:
- the property used to control the autoscroll proximity
- Since:
- 1.3
-
getAutoscrollProximity
public final double getAutoscrollProximity()
Returns the value ofautoscrollProximityProperty()
.- Returns:
- the distance in pixels to the viewport borders
- Since:
- 1.3
-
setAutoscrollProximity
public final void setAutoscrollProximity(double value)
Sets the value ofautoscrollProximityProperty()
.- Parameters:
value
- the distance in pixels to the viewport borders- Since:
- 1.3
-
scrollValueProperty
public final DoubleProperty scrollValueProperty()
Stores the number of pixels that the list view will scroll when the user uses the arrow up and down keys.- Returns:
- the scroll value
- Since:
- 1.3
- See Also:
scrollDown()
,scrollUp()
-
getScrollValue
public final double getScrollValue()
Returns the value ofscrollValueProperty()
.- Returns:
- the scroll value (in pixels)
- Since:
- 1.3
-
setScrollValue
public final void setScrollValue(double pixels)
Sets the value ofscrollValueProperty()
.- Parameters:
pixels
- the scroll value (in pixels)- Since:
- 1.3
-
scrollUp
public final void scrollUp()
Makes the list view scroll up.- Since:
- 1.3
- See Also:
setScrollValue(double)
,scrollValueProperty()
-
scrollDown
public final void scrollDown()
Makes the list view scroll down.- Since:
- 1.3
- See Also:
setScrollValue(double)
,scrollValueProperty()
-
-