- All Implemented Interfaces:
Styleable
,EventTarget
,Skinnable
The thing is, usually, virtualized controls do not expose the real bounds of the content because they are virtual bounds.
For this reason a scroll pane would have no way to determine its content bounds.
This scroll pane allows to specify the Bounds
object to use to determine the content bounds, the scrollable area
length.
MFXScrollBar
s the values are also clamped between 0.0 and 1.0, see MFXScrollBar
for a better explanation.
Listing all the features of this scroll pane we have:
- The possibility to change the layout strategy for the scroll bars, see ScrollPaneEnums.LayoutMode
and VirtualScrollPaneSkin
- The possibility of auto hide the scroll bars after a certain amount of time
- The scroll bars policy, which differs from the JavaFX's one
- The possibility to change the position of the scroll bars, see ScrollPaneEnums.HBarPos
and ScrollPaneEnums.VBarPos
- The possibility to specify extra padding for the scroll bars
- The possibility to scroll with the mouse (not called pannable anymore but dragToScroll, dragToScrollProperty()
)
- Ports all the new features of MFXScrollBar
which they'll be bound to, such as:
MFXScrollBar.buttonsVisibleProperty()
, MFXScrollBar.buttonsGapProperty()
,
MFXScrollBar.trackIncrementProperty()
, MFXScrollBar.unitIncrementProperty()
,
MFXScrollBar.smoothScrollProperty()
and MFXScrollBar.trackSmoothScrollProperty()
.
- ":compact": active when the layoutModeProperty()
is set to ScrollPaneEnums.LayoutMode.COMPACT
- ":drag-to-scroll": active when the dragToScrollProperty()
is set to true
MFXScrollBar
s, it also allows to change
their behavior with hBarBehaviorProperty()
and vBarBehaviorProperty()
.-
Property Summary
PropertiesTypePropertyDescriptionio.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether to auto hide the scroll bars after a certain amount of time.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the gap between the scroll bars' thumb and their buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether to show or not the scroll bars' buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Used by the viewport's clip to set its border radius.Specifies the content bounds, this cannot be ignored to make the scroll pane work as intended.Specifies the current scroll pane's content.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether the content can be scrolled with mouse dragging.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,
MFXScrollBarBehavior> Specifies the function used to build the horizontal scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies a value by which the horizontal scroll bar will be "shifted" on the x-axis.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets>
Specifies the extra padding for the horizontal scroll bar.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy>
Specifies the horizontal scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos>
Specifies the position of the horizontal scroll bar.Specifies the horizontal scroll bar's maximum value.Specifies the horizontal scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.Specifies the horizontal scroll bar's value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode>
Specifies the layout strategy for the scroll bars, seeScrollPaneEnums.LayoutMode
orVirtualScrollPaneSkin
for an explanation.Specifies the main orientation of the scroll pane.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether the scrolling should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies if the scrolling made by the track should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,
MFXScrollBarBehavior> Specifies the function used to build the vertical scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies a value by which the vertical scroll bar will be "shifted" on the y-axis.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets>
Specifies the extra padding for the vertical scroll bar.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy>
Specifies the vertical scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos>
Specifies the position of the vertical scroll bar.Specifies the vertical scroll bar's maximum value.Specifies the vertical scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.Specifies the vertical scroll bar's value.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltip
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.Parent
needsLayout
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, focusVisible, focusWithin, 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
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 -
Method Summary
Modifier and TypeMethodDescriptionio.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether to auto hide the scroll bars after a certain amount of time.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the gap between the scroll bars' thumb and their buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether to show or not the scroll bars' buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Used by the viewport's clip to set its border radius.Specifies the content bounds, this cannot be ignored to make the scroll pane work as intended.Specifies the current scroll pane's content.protected Skin<?>
io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether the content can be scrolled with mouse dragging.double
Gets the value of thebuttonsGap
property.static List<CssMetaData<? extends Styleable,
?>> double
Gets the value of theclipBorderRadius
property.Gets the value of thecontent
property.Gets the value of thecontentBounds
property.protected List<CssMetaData<? extends Styleable,
?>> Gets the value of thehBarBehavior
property.double
Gets the value of thehBarOffset
property.Gets the value of thehBarPadding
property.Gets the value of thehBarPolicy
property.Gets the value of thehBarPos
property.double
getHMax()
Gets the value of thehMax
property.double
getHMin()
Gets the value of thehMin
property.double
Gets the value of thehTrackIncrement
property.double
Gets the value of thehUnitIncrement
property.double
getHVal()
Gets the value of thehVal
property.Gets the value of thelayoutMode
property.Gets the value of theorientation
property.Gets the value of thevBarBehavior
property.double
Gets the value of thevBarOffset
property.Gets the value of thevBarPadding
property.Gets the value of thevBarPolicy
property.Gets the value of thevBarPos
property.double
getVMax()
Gets the value of thevMax
property.double
getVMin()
Gets the value of thevMin
property.double
Gets the value of thevTrackIncrement
property.double
Gets the value of thevUnitIncrement
property.double
getVVal()
Gets the value of thevVal
property.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,
MFXScrollBarBehavior> Specifies the function used to build the horizontal scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies a value by which the horizontal scroll bar will be "shifted" on the x-axis.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets>
Specifies the extra padding for the horizontal scroll bar.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy>
Specifies the horizontal scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos>
Specifies the position of the horizontal scroll bar.Specifies the horizontal scroll bar's maximum value.Specifies the horizontal scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.Specifies the horizontal scroll bar's value.boolean
Gets the value of theautoHideBars
property.boolean
Gets the value of thebuttonsVisible
property.boolean
Gets the value of thedragToScroll
property.boolean
Gets the value of thesmoothScroll
property.boolean
Gets the value of thetrackSmoothScroll
property.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode>
Specifies the layout strategy for the scroll bars, seeScrollPaneEnums.LayoutMode
orVirtualScrollPaneSkin
for an explanation.Specifies the main orientation of the scroll pane.void
setAutoHideBars
(boolean autoHideBars) Sets the value of theautoHideBars
property.void
setButtonsGap
(double buttonsGap) Sets the value of thebuttonsGap
property.void
setButtonsVisible
(boolean buttonsVisible) Sets the value of thebuttonsVisible
property.void
setClipBorderRadius
(double clipBorderRadius) Sets the value of theclipBorderRadius
property.void
setContent
(Node content) Sets the value of thecontent
property.void
setContentBounds
(VirtualBounds contentBounds) Sets the value of thecontentBounds
property.void
setDragToScroll
(boolean dragToScroll) Sets the value of thedragToScroll
property.void
setHBarBehavior
(Function<MFXScrollBar, MFXScrollBarBehavior> hBarBehavior) Sets the value of thehBarBehavior
property.void
setHBarOffset
(double hBarOffset) Sets the value of thehBarOffset
property.void
setHBarPadding
(Insets hBarPadding) Sets the value of thehBarPadding
property.void
setHBarPolicy
(ScrollPaneEnums.ScrollBarPolicy hBarPolicy) Sets the value of thehBarPolicy
property.void
setHBarPos
(ScrollPaneEnums.HBarPos hBarPos) Sets the value of thehBarPos
property.void
setHMax
(double hMax) Sets the value of thehMax
property.void
setHMin
(double hMin) Sets the value of thehMin
property.void
setHTrackIncrement
(double hTrackIncrement) Sets the value of thehTrackIncrement
property.void
setHUnitIncrement
(double hUnitIncrement) Sets the value of thehUnitIncrement
property.void
setHVal
(double hVal) Sets the value of thehVal
property.void
setLayoutMode
(ScrollPaneEnums.LayoutMode layoutMode) Sets the value of thelayoutMode
property.void
setOrientation
(Orientation orientation) Sets the value of theorientation
property.void
setSmoothScroll
(boolean smoothScroll) Sets the value of thesmoothScroll
property.void
setTrackSmoothScroll
(boolean trackSmoothScroll) Sets the value of thetrackSmoothScroll
property.void
setVBarBehavior
(Function<MFXScrollBar, MFXScrollBarBehavior> vBarBehavior) Sets the value of thevBarBehavior
property.void
setVBarOffset
(double vBarOffset) Sets the value of thevBarOffset
property.void
setVBarPadding
(Insets vBarPadding) Sets the value of thevBarPadding
property.void
setVBarPolicy
(ScrollPaneEnums.ScrollBarPolicy vBarPolicy) Sets the value of thevBarPolicy
property.void
setVBarPos
(ScrollPaneEnums.VBarPos vBarPos) Sets the value of thevBarPos
property.void
setVMax
(double vMax) Sets the value of thevMax
property.void
setVMin
(double vMin) Sets the value of thevMin
property.void
setVTrackIncrement
(double trackIncrement) Sets the value of thevTrackIncrement
property.void
setVUnitIncrement
(double unitIncrement) Sets the value of thevUnitIncrement
property.void
setVVal
(double vVal) Sets the value of thevVal
property.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies whether the scrolling should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty
Specifies if the scrolling made by the track should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,
MFXScrollBarBehavior> Specifies the function used to build the vertical scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies a value by which the vertical scroll bar will be "shifted" on the y-axis.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets>
Specifies the extra padding for the vertical scroll bar.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy>
Specifies the vertical scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos>
Specifies the position of the vertical scroll bar.Specifies the vertical scroll bar's maximum value.Specifies the vertical scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty
Specifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.Specifies the vertical scroll bar's value.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, focusVisibleProperty, focusWithinProperty, 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, isFocusVisible, isFocusWithin, 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
-
Property Details
-
layoutMode
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> layoutModePropertySpecifies the layout strategy for the scroll bars, seeScrollPaneEnums.LayoutMode
orVirtualScrollPaneSkin
for an explanation. -
autoHideBars
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty autoHideBarsPropertySpecifies whether to auto hide the scroll bars after a certain amount of time. -
hBarPolicy
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> hBarPolicyPropertySpecifies the horizontal scroll bar visibility policy. -
vBarPolicy
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> vBarPolicyPropertySpecifies the vertical scroll bar visibility policy. -
hBarPos
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos> hBarPosPropertySpecifies the position of the horizontal scroll bar. -
vBarPos
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos> vBarPosPropertySpecifies the position of the vertical scroll bar. -
hBarPadding
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets> hBarPaddingPropertySpecifies the extra padding for the horizontal scroll bar. -
vBarPadding
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets> vBarPaddingPropertySpecifies the extra padding for the vertical scroll bar. -
hBarOffset
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hBarOffsetPropertySpecifies a value by which the horizontal scroll bar will be "shifted" on the x-axis.Note that as a consequence this will also reduce the width of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
-
vBarOffset
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vBarOffsetPropertySpecifies a value by which the vertical scroll bar will be "shifted" on the y-axis.Note that as a consequence this will also reduce the height of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
-
dragToScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty dragToScrollPropertySpecifies whether the content can be scrolled with mouse dragging. -
buttonsVisible
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty buttonsVisiblePropertySpecifies whether to show or not the scroll bars' buttons. -
buttonsGap
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty buttonsGapPropertySpecifies the gap between the scroll bars' thumb and their buttons. -
hTrackIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hTrackIncrementPropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track. -
hUnitIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hUnitIncrementPropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling. -
vTrackIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vTrackIncrementPropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track. -
vUnitIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vUnitIncrementPropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling. -
smoothScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty smoothScrollPropertySpecifies whether the scrolling should be smooth, done by animations. -
trackSmoothScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty trackSmoothScrollPropertySpecifies if the scrolling made by the track should be smooth, done by animations. The default behavior considers this feature an addition to thesmoothScrollProperty()
, meaning that for this to work the aforementioned feature must be enabled too. -
clipBorderRadius
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty clipBorderRadiusPropertyUsed by the viewport's clip to set its border radius. This is useful when you want to make a rounded scroll pane, this prevents the content from going outside the view. Side note: the clip is aRectangle
, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13. -
content
Specifies the current scroll pane's content.- See Also:
-
contentBounds
Specifies the content bounds, this cannot be ignored to make the scroll pane work as intended. -
hMin
Specifies the horizontal scroll bar's minimum value.- See Also:
-
hVal
Specifies the horizontal scroll bar's value.- See Also:
-
hMax
Specifies the horizontal scroll bar's maximum value.- See Also:
-
vMin
Specifies the vertical scroll bar's minimum value.- See Also:
-
vVal
Specifies the vertical scroll bar's value.- See Also:
-
vMax
Specifies the vertical scroll bar's maximum value.- See Also:
-
orientation
Specifies the main orientation of the scroll pane.This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
-
hBarBehavior
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,MFXScrollBarBehavior> hBarBehaviorPropertySpecifies the function used to build the horizontal scroll bar's behavior. -
vBarBehavior
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,MFXScrollBarBehavior> vBarBehaviorPropertySpecifies the function used to build the vertical scroll bar's behavior.
-
-
Constructor Details
-
VirtualScrollPane
public VirtualScrollPane() -
VirtualScrollPane
-
-
Method Details
-
createDefaultSkin
- Overrides:
createDefaultSkin
in classControl
-
getControlCssMetaData
- Overrides:
getControlCssMetaData
in classControl
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheet
in classRegion
-
getLayoutMode
Gets the value of thelayoutMode
property.- Property description:
- Specifies the layout strategy for the scroll bars, see
ScrollPaneEnums.LayoutMode
orVirtualScrollPaneSkin
for an explanation. - Returns:
- the value of the
layoutMode
property - See Also:
-
layoutModeProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> layoutModeProperty()Specifies the layout strategy for the scroll bars, seeScrollPaneEnums.LayoutMode
orVirtualScrollPaneSkin
for an explanation.- Returns:
- the
layoutMode
property - See Also:
-
setLayoutMode
Sets the value of thelayoutMode
property.- Property description:
- Specifies the layout strategy for the scroll bars, see
ScrollPaneEnums.LayoutMode
orVirtualScrollPaneSkin
for an explanation. - Parameters:
layoutMode
- the value for thelayoutMode
property- See Also:
-
isAutoHideBars
public boolean isAutoHideBars()Gets the value of theautoHideBars
property.- Property description:
- Specifies whether to auto hide the scroll bars after a certain amount of time.
- Returns:
- the value of the
autoHideBars
property - See Also:
-
autoHideBarsProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty autoHideBarsProperty()Specifies whether to auto hide the scroll bars after a certain amount of time.- Returns:
- the
autoHideBars
property - See Also:
-
setAutoHideBars
public void setAutoHideBars(boolean autoHideBars) Sets the value of theautoHideBars
property.- Property description:
- Specifies whether to auto hide the scroll bars after a certain amount of time.
- Parameters:
autoHideBars
- the value for theautoHideBars
property- See Also:
-
getHBarPolicy
Gets the value of thehBarPolicy
property.- Property description:
- Specifies the horizontal scroll bar visibility policy.
- Returns:
- the value of the
hBarPolicy
property - See Also:
-
hBarPolicyProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> hBarPolicyProperty()Specifies the horizontal scroll bar visibility policy.- Returns:
- the
hBarPolicy
property - See Also:
-
setHBarPolicy
Sets the value of thehBarPolicy
property.- Property description:
- Specifies the horizontal scroll bar visibility policy.
- Parameters:
hBarPolicy
- the value for thehBarPolicy
property- See Also:
-
getVBarPolicy
Gets the value of thevBarPolicy
property.- Property description:
- Specifies the vertical scroll bar visibility policy.
- Returns:
- the value of the
vBarPolicy
property - See Also:
-
vBarPolicyProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> vBarPolicyProperty()Specifies the vertical scroll bar visibility policy.- Returns:
- the
vBarPolicy
property - See Also:
-
setVBarPolicy
Sets the value of thevBarPolicy
property.- Property description:
- Specifies the vertical scroll bar visibility policy.
- Parameters:
vBarPolicy
- the value for thevBarPolicy
property- See Also:
-
getHBarPos
Gets the value of thehBarPos
property.- Property description:
- Specifies the position of the horizontal scroll bar.
- Returns:
- the value of the
hBarPos
property - See Also:
-
hBarPosProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos> hBarPosProperty()Specifies the position of the horizontal scroll bar.- Returns:
- the
hBarPos
property - See Also:
-
setHBarPos
Sets the value of thehBarPos
property.- Property description:
- Specifies the position of the horizontal scroll bar.
- Parameters:
hBarPos
- the value for thehBarPos
property- See Also:
-
getVBarPos
Gets the value of thevBarPos
property.- Property description:
- Specifies the position of the vertical scroll bar.
- Returns:
- the value of the
vBarPos
property - See Also:
-
vBarPosProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos> vBarPosProperty()Specifies the position of the vertical scroll bar.- Returns:
- the
vBarPos
property - See Also:
-
setVBarPos
Sets the value of thevBarPos
property.- Property description:
- Specifies the position of the vertical scroll bar.
- Parameters:
vBarPos
- the value for thevBarPos
property- See Also:
-
getHBarPadding
Gets the value of thehBarPadding
property.- Property description:
- Specifies the extra padding for the horizontal scroll bar.
- Returns:
- the value of the
hBarPadding
property - See Also:
-
hBarPaddingProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets> hBarPaddingProperty()Specifies the extra padding for the horizontal scroll bar.- Returns:
- the
hBarPadding
property - See Also:
-
setHBarPadding
Sets the value of thehBarPadding
property.- Property description:
- Specifies the extra padding for the horizontal scroll bar.
- Parameters:
hBarPadding
- the value for thehBarPadding
property- See Also:
-
getVBarPadding
Gets the value of thevBarPadding
property.- Property description:
- Specifies the extra padding for the vertical scroll bar.
- Returns:
- the value of the
vBarPadding
property - See Also:
-
vBarPaddingProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Insets> vBarPaddingProperty()Specifies the extra padding for the vertical scroll bar.- Returns:
- the
vBarPadding
property - See Also:
-
setVBarPadding
Sets the value of thevBarPadding
property.- Property description:
- Specifies the extra padding for the vertical scroll bar.
- Parameters:
vBarPadding
- the value for thevBarPadding
property- See Also:
-
getHBarOffset
public double getHBarOffset()Gets the value of thehBarOffset
property.- Property description:
- Specifies a value by which the horizontal scroll bar will be "shifted" on the x-axis.
Note that as a consequence this will also reduce the width of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
- Returns:
- the value of the
hBarOffset
property - See Also:
-
hBarOffsetProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hBarOffsetProperty()Specifies a value by which the horizontal scroll bar will be "shifted" on the x-axis.Note that as a consequence this will also reduce the width of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
- Returns:
- the
hBarOffset
property - See Also:
-
setHBarOffset
public void setHBarOffset(double hBarOffset) Sets the value of thehBarOffset
property.- Property description:
- Specifies a value by which the horizontal scroll bar will be "shifted" on the x-axis.
Note that as a consequence this will also reduce the width of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
- Parameters:
hBarOffset
- the value for thehBarOffset
property- See Also:
-
getVBarOffset
public double getVBarOffset()Gets the value of thevBarOffset
property.- Property description:
- Specifies a value by which the vertical scroll bar will be "shifted" on the y-axis.
Note that as a consequence this will also reduce the height of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
- Returns:
- the value of the
vBarOffset
property - See Also:
-
vBarOffsetProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vBarOffsetProperty()Specifies a value by which the vertical scroll bar will be "shifted" on the y-axis.Note that as a consequence this will also reduce the height of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
- Returns:
- the
vBarOffset
property - See Also:
-
setVBarOffset
public void setVBarOffset(double vBarOffset) Sets the value of thevBarOffset
property.- Property description:
- Specifies a value by which the vertical scroll bar will be "shifted" on the y-axis.
Note that as a consequence this will also reduce the height of the bar.
This can be useful if wrapping content which has headers or extra nodes of some sort and the bar ends up covering them.
- Parameters:
vBarOffset
- the value for thevBarOffset
property- See Also:
-
isDragToScroll
public boolean isDragToScroll()Gets the value of thedragToScroll
property.- Property description:
- Specifies whether the content can be scrolled with mouse dragging.
- Returns:
- the value of the
dragToScroll
property - See Also:
-
dragToScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty dragToScrollProperty()Specifies whether the content can be scrolled with mouse dragging.- Returns:
- the
dragToScroll
property - See Also:
-
setDragToScroll
public void setDragToScroll(boolean dragToScroll) Sets the value of thedragToScroll
property.- Property description:
- Specifies whether the content can be scrolled with mouse dragging.
- Parameters:
dragToScroll
- the value for thedragToScroll
property- See Also:
-
isButtonsVisible
public boolean isButtonsVisible()Gets the value of thebuttonsVisible
property.- Property description:
- Specifies whether to show or not the scroll bars' buttons.
- Returns:
- the value of the
buttonsVisible
property - See Also:
-
buttonsVisibleProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty buttonsVisibleProperty()Specifies whether to show or not the scroll bars' buttons.- Returns:
- the
buttonsVisible
property - See Also:
-
setButtonsVisible
public void setButtonsVisible(boolean buttonsVisible) Sets the value of thebuttonsVisible
property.- Property description:
- Specifies whether to show or not the scroll bars' buttons.
- Parameters:
buttonsVisible
- the value for thebuttonsVisible
property- See Also:
-
getButtonsGap
public double getButtonsGap()Gets the value of thebuttonsGap
property.- Property description:
- Specifies the gap between the scroll bars' thumb and their buttons.
- Returns:
- the value of the
buttonsGap
property - See Also:
-
buttonsGapProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty buttonsGapProperty()Specifies the gap between the scroll bars' thumb and their buttons.- Returns:
- the
buttonsGap
property - See Also:
-
setButtonsGap
public void setButtonsGap(double buttonsGap) Sets the value of thebuttonsGap
property.- Property description:
- Specifies the gap between the scroll bars' thumb and their buttons.
- Parameters:
buttonsGap
- the value for thebuttonsGap
property- See Also:
-
getHTrackIncrement
public double getHTrackIncrement()Gets the value of thehTrackIncrement
property.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.
- Returns:
- the value of the
hTrackIncrement
property - See Also:
-
hTrackIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hTrackIncrementProperty()Specifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.- Returns:
- the
hTrackIncrement
property - See Also:
-
setHTrackIncrement
public void setHTrackIncrement(double hTrackIncrement) Sets the value of thehTrackIncrement
property.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.
- Parameters:
hTrackIncrement
- the value for thehTrackIncrement
property- See Also:
-
getHUnitIncrement
public double getHUnitIncrement()Gets the value of thehUnitIncrement
property.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.
- Returns:
- the value of the
hUnitIncrement
property - See Also:
-
hUnitIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hUnitIncrementProperty()Specifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.- Returns:
- the
hUnitIncrement
property - See Also:
-
setHUnitIncrement
public void setHUnitIncrement(double hUnitIncrement) Sets the value of thehUnitIncrement
property.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.
- Parameters:
hUnitIncrement
- the value for thehUnitIncrement
property- See Also:
-
getVTrackIncrement
public double getVTrackIncrement()Gets the value of thevTrackIncrement
property.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.
- Returns:
- the value of the
vTrackIncrement
property - See Also:
-
vTrackIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vTrackIncrementProperty()Specifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.- Returns:
- the
vTrackIncrement
property - See Also:
-
setVTrackIncrement
public void setVTrackIncrement(double trackIncrement) Sets the value of thevTrackIncrement
property.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.
- Parameters:
trackIncrement
- the value for thevTrackIncrement
property- See Also:
-
getVUnitIncrement
public double getVUnitIncrement()Gets the value of thevUnitIncrement
property.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.
- Returns:
- the value of the
vUnitIncrement
property - See Also:
-
vUnitIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vUnitIncrementProperty()Specifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.- Returns:
- the
vUnitIncrement
property - See Also:
-
setVUnitIncrement
public void setVUnitIncrement(double unitIncrement) Sets the value of thevUnitIncrement
property.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.
- Parameters:
unitIncrement
- the value for thevUnitIncrement
property- See Also:
-
isSmoothScroll
public boolean isSmoothScroll()Gets the value of thesmoothScroll
property.- Property description:
- Specifies whether the scrolling should be smooth, done by animations.
- Returns:
- the value of the
smoothScroll
property - See Also:
-
smoothScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty smoothScrollProperty()Specifies whether the scrolling should be smooth, done by animations.- Returns:
- the
smoothScroll
property - See Also:
-
setSmoothScroll
public void setSmoothScroll(boolean smoothScroll) Sets the value of thesmoothScroll
property.- Property description:
- Specifies whether the scrolling should be smooth, done by animations.
- Parameters:
smoothScroll
- the value for thesmoothScroll
property- See Also:
-
isTrackSmoothScroll
public boolean isTrackSmoothScroll()Gets the value of thetrackSmoothScroll
property.- Property description:
- Specifies if the scrolling made by the track should be smooth, done by animations.
The default behavior considers this feature an addition to the
smoothScrollProperty()
, meaning that for this to work the aforementioned feature must be enabled too. - Returns:
- the value of the
trackSmoothScroll
property - See Also:
-
trackSmoothScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty trackSmoothScrollProperty()Specifies if the scrolling made by the track should be smooth, done by animations. The default behavior considers this feature an addition to thesmoothScrollProperty()
, meaning that for this to work the aforementioned feature must be enabled too.- Returns:
- the
trackSmoothScroll
property - See Also:
-
setTrackSmoothScroll
public void setTrackSmoothScroll(boolean trackSmoothScroll) Sets the value of thetrackSmoothScroll
property.- Property description:
- Specifies if the scrolling made by the track should be smooth, done by animations.
The default behavior considers this feature an addition to the
smoothScrollProperty()
, meaning that for this to work the aforementioned feature must be enabled too. - Parameters:
trackSmoothScroll
- the value for thetrackSmoothScroll
property- See Also:
-
getClipBorderRadius
public double getClipBorderRadius()Gets the value of theclipBorderRadius
property.- Property description:
- Used by the viewport's clip to set its border radius.
This is useful when you want to make a rounded scroll pane, this
prevents the content from going outside the view.
Side note: the clip is a
Rectangle
, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13. - Returns:
- the value of the
clipBorderRadius
property - See Also:
-
clipBorderRadiusProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty clipBorderRadiusProperty()Used by the viewport's clip to set its border radius. This is useful when you want to make a rounded scroll pane, this prevents the content from going outside the view. Side note: the clip is aRectangle
, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13.- Returns:
- the
clipBorderRadius
property - See Also:
-
setClipBorderRadius
public void setClipBorderRadius(double clipBorderRadius) Sets the value of theclipBorderRadius
property.- Property description:
- Used by the viewport's clip to set its border radius.
This is useful when you want to make a rounded scroll pane, this
prevents the content from going outside the view.
Side note: the clip is a
Rectangle
, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13. - Parameters:
clipBorderRadius
- the value for theclipBorderRadius
property- See Also:
-
getClassCssMetaData
-
getContent
Gets the value of thecontent
property.- Property description:
- Specifies the current scroll pane's content.
- Returns:
- the value of the
content
property - See Also:
-
contentProperty
Specifies the current scroll pane's content.- Returns:
- the
content
property - See Also:
-
setContent
Sets the value of thecontent
property.- Property description:
- Specifies the current scroll pane's content.
- Parameters:
content
- the value for thecontent
property- See Also:
-
getContentBounds
Gets the value of thecontentBounds
property.- Property description:
- Specifies the content bounds, this cannot be ignored to make the scroll pane work as intended.
- Returns:
- the value of the
contentBounds
property - See Also:
-
contentBoundsProperty
Specifies the content bounds, this cannot be ignored to make the scroll pane work as intended.- Returns:
- the
contentBounds
property - See Also:
-
setContentBounds
Sets the value of thecontentBounds
property.- Property description:
- Specifies the content bounds, this cannot be ignored to make the scroll pane work as intended.
- Parameters:
contentBounds
- the value for thecontentBounds
property- See Also:
-
getHMin
public double getHMin()Gets the value of thehMin
property.- Property description:
- Specifies the horizontal scroll bar's minimum value.
- Returns:
- the value of the
hMin
property - See Also:
-
hMinProperty
Specifies the horizontal scroll bar's minimum value.- Returns:
- the
hMin
property - See Also:
-
setHMin
public void setHMin(double hMin) Sets the value of thehMin
property.- Property description:
- Specifies the horizontal scroll bar's minimum value.
- Parameters:
hMin
- the value for thehMin
property- See Also:
-
getHVal
public double getHVal()Gets the value of thehVal
property.- Property description:
- Specifies the horizontal scroll bar's value.
- Returns:
- the value of the
hVal
property - See Also:
-
hValProperty
Specifies the horizontal scroll bar's value.- Returns:
- the
hVal
property - See Also:
-
setHVal
public void setHVal(double hVal) Sets the value of thehVal
property.- Property description:
- Specifies the horizontal scroll bar's value.
- Parameters:
hVal
- the value for thehVal
property- See Also:
-
getHMax
public double getHMax()Gets the value of thehMax
property.- Property description:
- Specifies the horizontal scroll bar's maximum value.
- Returns:
- the value of the
hMax
property - See Also:
-
hMaxProperty
Specifies the horizontal scroll bar's maximum value.- Returns:
- the
hMax
property - See Also:
-
setHMax
public void setHMax(double hMax) Sets the value of thehMax
property.- Property description:
- Specifies the horizontal scroll bar's maximum value.
- Parameters:
hMax
- the value for thehMax
property- See Also:
-
getVMin
public double getVMin()Gets the value of thevMin
property.- Property description:
- Specifies the vertical scroll bar's minimum value.
- Returns:
- the value of the
vMin
property - See Also:
-
vMinProperty
Specifies the vertical scroll bar's minimum value.- Returns:
- the
vMin
property - See Also:
-
setVMin
public void setVMin(double vMin) Sets the value of thevMin
property.- Property description:
- Specifies the vertical scroll bar's minimum value.
- Parameters:
vMin
- the value for thevMin
property- See Also:
-
getVVal
public double getVVal()Gets the value of thevVal
property.- Property description:
- Specifies the vertical scroll bar's value.
- Returns:
- the value of the
vVal
property - See Also:
-
vValProperty
Specifies the vertical scroll bar's value.- Returns:
- the
vVal
property - See Also:
-
setVVal
public void setVVal(double vVal) Sets the value of thevVal
property.- Property description:
- Specifies the vertical scroll bar's value.
- Parameters:
vVal
- the value for thevVal
property- See Also:
-
getVMax
public double getVMax()Gets the value of thevMax
property.- Property description:
- Specifies the vertical scroll bar's maximum value.
- Returns:
- the value of the
vMax
property - See Also:
-
vMaxProperty
Specifies the vertical scroll bar's maximum value.- Returns:
- the
vMax
property - See Also:
-
setVMax
public void setVMax(double vMax) Sets the value of thevMax
property.- Property description:
- Specifies the vertical scroll bar's maximum value.
- Parameters:
vMax
- the value for thevMax
property- See Also:
-
getOrientation
Gets the value of theorientation
property.- Property description:
- Specifies the main orientation of the scroll pane.
This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
- Returns:
- the value of the
orientation
property - See Also:
-
orientationProperty
Specifies the main orientation of the scroll pane.This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
- Returns:
- the
orientation
property - See Also:
-
setOrientation
Sets the value of theorientation
property.- Property description:
- Specifies the main orientation of the scroll pane.
This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
- Parameters:
orientation
- the value for theorientation
property- See Also:
-
getHBarBehavior
Gets the value of thehBarBehavior
property.- Property description:
- Specifies the function used to build the horizontal scroll bar's behavior.
- Returns:
- the value of the
hBarBehavior
property - See Also:
-
hBarBehaviorProperty
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,MFXScrollBarBehavior> hBarBehaviorProperty()Specifies the function used to build the horizontal scroll bar's behavior.- Returns:
- the
hBarBehavior
property - See Also:
-
setHBarBehavior
Sets the value of thehBarBehavior
property.- Property description:
- Specifies the function used to build the horizontal scroll bar's behavior.
- Parameters:
hBarBehavior
- the value for thehBarBehavior
property- See Also:
-
getVBarBehavior
Gets the value of thevBarBehavior
property.- Property description:
- Specifies the function used to build the vertical scroll bar's behavior.
- Returns:
- the value of the
vBarBehavior
property - See Also:
-
vBarBehaviorProperty
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<MFXScrollBar,MFXScrollBarBehavior> vBarBehaviorProperty()Specifies the function used to build the vertical scroll bar's behavior.- Returns:
- the
vBarBehavior
property - See Also:
-
setVBarBehavior
Sets the value of thevBarBehavior
property.- Property description:
- Specifies the function used to build the vertical scroll bar's behavior.
- Parameters:
vBarBehavior
- the value for thevBarBehavior
property- See Also:
-