Package javafx.scene.control
Class ScrollPane
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
javafx.scene.control.ScrollPane
- All Implemented Interfaces:
LayoutMeasurable
,LayoutMeasurableMixin
,HasBackgroundProperty
,HasBlendModeProperty
,HasBorderProperty
,HasClipProperty
,HasEffectProperty
,HasHeightProperty
,HasLayoutXProperty
,HasLayoutYProperty
,HasManagedProperty
,HasMaxHeightProperty
,HasMaxWidthProperty
,HasMinHeightProperty
,HasMinWidthProperty
,HasMouseTransparentProperty
,HasOnMouseClickedProperty
,HasOpacityProperty
,HasPaddingProperty
,HasParentProperty
,HasPrefHeightProperty
,HasPrefWidthProperty
,HasSnapToPixelProperty
,HasVisibleProperty
,HasWidthProperty
,Styleable
,EventTarget
,Skinnable
,INode
,PreferenceResizableNode
- Author:
- Bruno Salmon
-
Property Summary
TypePropertyDescriptionfinal ObjectProperty<Node>
The node used as the content of this ScrollPane.final DoubleProperty
The maximum allowablehvalue
for this ScrollPane.final DoubleProperty
The minimum allowablehvalue
for this ScrollPane.final DoubleProperty
The current horizontal scroll position of the ScrollPane.final ObjectProperty<Bounds>
The actual Bounds of the ScrollPane Viewport.final DoubleProperty
The maximum allowablevvalue
for this ScrollPane.final DoubleProperty
The minimum allowablevvalue
for this ScrollPane.final DoubleProperty
The current vertical scroll position of the ScrollPane.Properties inherited from class javafx.scene.control.Control
contextMenu, skin
Properties inherited from class javafx.scene.layout.Region
background, border, height, insets, maxHeight, maxWidth, minHeight, minWidth, padding, prefHeight, prefWidth, snapToPixel, width
Properties inherited from class javafx.scene.Parent
needsLayout
Properties inherited from class javafx.scene.Node
blendMode, cacheHint, cache, clip, cursor, disabled, disable, effect, eventDispatcher, focused, focusTraversable, hover, id, layoutBounds, layoutX, layoutY, managed, mouseTransparent, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onScroll, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, opacity, parent, pressed, rotate, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, visible
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBlendModeProperty
blendMode
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasClipProperty
clip
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasEffectProperty
effect
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutXProperty
layoutX
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutYProperty
layoutY
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasManagedProperty
managed
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMouseTransparentProperty
mouseTransparent
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOnMouseClickedProperty
onMouseClicked
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOpacityProperty
opacity
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasParentProperty
parent
Properties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasVisibleProperty
visible
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
An enumeration denoting the policy to be used by a scrollable Control in deciding whether to show a scroll bar. -
Field Summary
Fields inherited from interface javafx.scene.INode
BASELINE_OFFSET_SAME_AS_HEIGHT
Fields inherited from interface javafx.scene.layout.PreferenceResizableNode
USE_COMPUTED_SIZE, USE_PREF_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
computeMaxHeight
(double width) Computes the maximum allowable height of the Control, based on the provided width.protected double
computeMaxWidth
(double height) Computes the maximum allowable width of the Control, based on the provided height.protected double
computeMinHeight
(double width) Computes the minimum allowable height of the Control, based on the provided width.protected double
computeMinWidth
(double height) Computes the minimum allowable width of the Control, based on the provided height.protected double
computePrefHeight
(double width) Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy.protected double
computePrefWidth
(double height) Computes the preferred width of this region for the given height.final ObjectProperty<Node>
The node used as the content of this ScrollPane.final Node
Gets the value of thecontent
property.Gets the value of thehbarPolicy
property.final double
getHmax()
Gets the value of thehmax
property.final double
getHmin()
Gets the value of thehmin
property.final double
Gets the value of thehvalue
property.final Bounds
Gets the value of theviewportBounds
property.final double
getVmax()
Gets the value of thevmax
property.final double
getVmin()
Gets the value of thevmin
property.final double
Gets the value of thevvalue
property.final DoubleProperty
The maximum allowablehvalue
for this ScrollPane.final DoubleProperty
The minimum allowablehvalue
for this ScrollPane.final DoubleProperty
The current horizontal scroll position of the ScrollPane.boolean
Gets the value of thefitToHeight
property.boolean
Gets the value of thefitToWidth
property.protected void
Invoked during the layout pass to layout the children in thisParent
.protected void
localToScene
(Point2D pt) protected void
sceneToLocal
(Point2D pt) final void
setContent
(Node value) Sets the value of thecontent
property.void
setFitToHeight
(boolean fitHeight) Sets the value of thefitToHeight
property.void
setFitToWidth
(boolean fitWidth) Sets the value of thefitToWidth
property.final void
Sets the value of thehbarPolicy
property.final void
setHmax
(double value) Sets the value of thehmax
property.final void
setHmin
(double value) Sets the value of thehmin
property.final void
setHvalue
(double value) Sets the value of thehvalue
property.void
setOnChildrenLayout
(Runnable onChildrenLayout) final void
final void
setViewportBounds
(Bounds value) Sets the value of theviewportBounds
property.final void
setVmax
(double value) Sets the value of thevmax
property.final void
setVmin
(double value) Sets the value of thevmin
property.final void
setVvalue
(double value) Sets the value of thevvalue
property.boolean
final ObjectProperty<Bounds>
The actual Bounds of the ScrollPane Viewport.final DoubleProperty
The maximum allowablevvalue
for this ScrollPane.final DoubleProperty
The minimum allowablevvalue
for this ScrollPane.final DoubleProperty
The current vertical scroll position of the ScrollPane.Methods inherited from class javafx.scene.control.Control
contextMenuProperty, createDefaultSkin, getBaselineOffset, getContextMenu, getSkin, setContextMenu, setSkin, skinProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, boundedSize, getInsets, heightProperty, impl_computeGeomBounds, impl_computeLayoutBounds, impl_maxHeight, impl_maxWidth, impl_minHeight, impl_minWidth, impl_prefHeight, impl_prefWidth, insetsProperty, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, paddingProperty, positionInArea, positionInArea, prefHeightProperty, prefWidthProperty, resize, setMaxSize, setMinSize, setPrefSize, 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, isNeedsLayout, layout, needsLayoutProperty, requestLayout, requestParentLayout, setLayoutFlag, setNeedsLayout, setSceneRoot
Methods inherited from class javafx.scene.Node
addEventFilter, addEventHandler, autosize, blendModeProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, createLayoutMeasurable, cursorProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAllNodeTransforms, getBoundsInLocal, getCacheHint, getCursor, getEventDispatcher, getId, getLayoutMeasurable, getNodePeer, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseDragged, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnScroll, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOrCreateAndBindNodePeer, getProperties, getRotate, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getUserData, hasProperties, hoverProperty, idProperty, impl_getLayoutBounds, impl_isTreeVisible, impl_traverse, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isPressed, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScreen, localToScreen, localToScreen, localToScreen, managedProperty, mouseTransparentProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onNodePeerReady, onPeerSizeChanged, onScrollProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, opacityProperty, parentProperty, parentToLocal, pressedProperty, removeEventFilter, removeEventHandler, requestFocus, requestPeerFocus, rotateProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, setCache, setCacheHint, setCursor, setDisable, setDisabled, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setNodePeer, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseDragged, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setPressed, setRotate, setScaleX, setScaleY, setScaleZ, setScene, setStyle, setTranslateX, setTranslateY, setUserData, snapshot, startDragAndDrop, styleProperty, toBack, toFront, translateXProperty, translateYProperty, visibleProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBackgroundProperty
getBackground, setBackground
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBlendModeProperty
blendModeProperty, getBlendMode, setBlendMode
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBorderProperty
getBorder, setBorder
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasClipProperty
clipProperty, getClip, setClip
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasEffectProperty
effectProperty, getEffect, setEffect
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasHeightProperty
getHeight, setHeight
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutXProperty
getLayoutX, layoutXProperty, setLayoutX
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutYProperty
getLayoutY, layoutYProperty, setLayoutY
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasManagedProperty
isManaged, managedProperty, setManaged
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMaxHeightProperty
getMaxHeight, setMaxHeight
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMaxWidthProperty
getMaxWidth, setMaxWidth
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMinHeightProperty
getMinHeight, setMinHeight
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMinWidthProperty
getMinWidth, setMinWidth
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMouseTransparentProperty
isMouseTransparent, mouseTransparentProperty, setMouseTransparent
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOnMouseClickedProperty
getOnMouseClicked, onMouseClickedProperty, setOnMouseClicked
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOpacityProperty
getOpacity, opacityProperty, setOpacity
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPaddingProperty
getPadding, setPadding
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasParentProperty
getParent, parentProperty, setParent
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPrefHeightProperty
getPrefHeight, setPrefHeight
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPrefWidthProperty
getPrefWidth, setPrefWidth
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasSnapToPixelProperty
isSnapToPixel, setSnapToPixel
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasVisibleProperty
isVisible, setVisible, visibleProperty
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasWidthProperty
getWidth, setWidth
Methods inherited from interface javafx.scene.INode
autosize, getAllNodeTransforms, getContentBias, getNodePeer, getOrCreateAndBindNodePeer, getProperties, getScene, getTransforms, hasProperties, relocate, resizeRelocate
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.LayoutMeasurableMixin
clearCache, getLayoutBounds, getLayoutMeasurable, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth
Methods inherited from interface javafx.scene.layout.PreferenceResizableNode
isResizable
-
Property Details
-
hbarPolicy
-
vbarPolicy
- See Also:
-
content
The node used as the content of this ScrollPane.- See Also:
-
hvalue
The current horizontal scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofhmin
tohmax
. Whenhvalue
equalshmin
, the contained node is positioned so that its layoutBoundsminX
is visible. Whenhvalue
equalshmax
, the contained node is positioned so that its layoutBoundsmaxX
is visible. Whenhvalue
is betweenhmin
andhmax
, the contained node is positioned proportionally between layoutBoundsminX
and layoutBoundsmaxX
.- See Also:
-
vvalue
The current vertical scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofvmin
tovmax
. Whenvvalue
equalsvmin
, the contained node is positioned so that its layoutBoundsminY
is visible. Whenvvalue
equalsvmax
, the contained node is positioned so that its layoutBoundsmaxY
is visible. Whenvvalue
is betweenvmin
andvmax
, the contained node is positioned proportionally between layoutBoundsminY
and layoutBoundsmaxY
.- See Also:
-
hmin
The minimum allowablehvalue
for this ScrollPane. Default value is 0.- See Also:
-
vmin
The minimum allowablevvalue
for this ScrollPane. Default value is 0.- See Also:
-
hmax
The maximum allowablehvalue
for this ScrollPane. Default value is 1.- See Also:
-
vmax
The maximum allowablevvalue
for this ScrollPane. Default value is 1.- See Also:
-
viewportBounds
The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node. -
fitToWidth
-
fitToHeight
-
-
Constructor Details
-
ScrollPane
public ScrollPane() -
ScrollPane
-
-
Method Details
-
shouldUseLayoutMeasurable
public boolean shouldUseLayoutMeasurable()- Overrides:
shouldUseLayoutMeasurable
in classControl
-
computeMinWidth
protected double computeMinWidth(double height) Description copied from class:Control
Computes the minimum allowable width of the Control, based on the provided height. The minimum width is not calculated within the Control, instead the calculation is delegated to theLayoutMeasurableMixin.minWidth(double)
method of theSkin
. If the Skin is null, the returned value is 0.- Overrides:
computeMinWidth
in classControl
- Parameters:
height
- The height of the Control, in case this value might dictate the minimum width.- Returns:
- A double representing the minimum width of this control.
-
computePrefWidth
protected double computePrefWidth(double height) Description copied from class:Control
Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.- Overrides:
computePrefWidth
in classControl
- Parameters:
height
- the height that should be used if preferred width depends on it- Returns:
- the computed preferred width for this region
-
computeMaxWidth
protected double computeMaxWidth(double height) Description copied from class:Control
Computes the maximum allowable width of the Control, based on the provided height. The maximum width is not calculated within the Control, instead the calculation is delegated to theLayoutMeasurableMixin.maxWidth(double)
method of theSkin
. If the Skin is null, the returned value is 0.- Overrides:
computeMaxWidth
in classControl
- Parameters:
height
- The height of the Control, in case this value might dictate the maximum width.- Returns:
- A double representing the maximum width of this control.
-
computeMinHeight
protected double computeMinHeight(double width) Description copied from class:Control
Computes the minimum allowable height of the Control, based on the provided width. The minimum height is not calculated within the Control, instead the calculation is delegated to theLayoutMeasurableMixin.minHeight(double)
method of theSkin
. If the Skin is null, the returned value is 0.- Overrides:
computeMinHeight
in classControl
- Parameters:
width
- The width of the Control, in case this value might dictate the minimum height.- Returns:
- A double representing the minimum height of this control.
-
computePrefHeight
protected double computePrefHeight(double width) Description copied from class:Control
Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.- Overrides:
computePrefHeight
in classControl
- Parameters:
width
- the width that should be used if preferred height depends on it- Returns:
- the computed preferred height for this region
-
computeMaxHeight
protected double computeMaxHeight(double width) Description copied from class:Control
Computes the maximum allowable height of the Control, based on the provided width. The maximum height is not calculated within the Control, instead the calculation is delegated to theLayoutMeasurableMixin.maxHeight(double)
method of theSkin
. If the Skin is null, the returned value is 0.- Overrides:
computeMaxHeight
in classControl
- Parameters:
width
- The width of the Control, in case this value might dictate the maximum height.- Returns:
- A double representing the maximum height of this control.
-
sceneToLocal
- Overrides:
sceneToLocal
in classNode
-
localToScene
- Overrides:
localToScene
in classNode
-
hbarPolicyProperty
- Returns:
- the
hbarPolicy
property - See Also:
-
setHbarPolicy
Sets the value of thehbarPolicy
property.- Property description:
- Parameters:
value
- the value for thehbarPolicy
property- See Also:
-
getHbarPolicy
Gets the value of thehbarPolicy
property.- Property description:
- Returns:
- the value of the
hbarPolicy
property - See Also:
-
vbarPolicyProperty
- Returns:
- the
vbarPolicy
property
-
setvbarPolicy
-
getvbarPolicy
-
setContent
Sets the value of thecontent
property.- Property description:
- The node used as the content of this ScrollPane.
- Parameters:
value
- the value for thecontent
property- See Also:
-
getContent
Gets the value of thecontent
property.- Property description:
- The node used as the content of this ScrollPane.
- Returns:
- the value of the
content
property - See Also:
-
contentProperty
The node used as the content of this ScrollPane.- Returns:
- the
content
property - See Also:
-
setHvalue
public final void setHvalue(double value) Sets the value of thehvalue
property.- Property description:
- The current horizontal scroll position of the ScrollPane. This value
may be set by the application to scroll the view programatically.
The ScrollPane will update this value whenever the viewport is
scrolled or panned by the user. This value must always be within
the range of
hmin
tohmax
. Whenhvalue
equalshmin
, the contained node is positioned so that its layoutBoundsminX
is visible. Whenhvalue
equalshmax
, the contained node is positioned so that its layoutBoundsmaxX
is visible. Whenhvalue
is betweenhmin
andhmax
, the contained node is positioned proportionally between layoutBoundsminX
and layoutBoundsmaxX
. - Parameters:
value
- the value for thehvalue
property- See Also:
-
getHvalue
public final double getHvalue()Gets the value of thehvalue
property.- Property description:
- The current horizontal scroll position of the ScrollPane. This value
may be set by the application to scroll the view programatically.
The ScrollPane will update this value whenever the viewport is
scrolled or panned by the user. This value must always be within
the range of
hmin
tohmax
. Whenhvalue
equalshmin
, the contained node is positioned so that its layoutBoundsminX
is visible. Whenhvalue
equalshmax
, the contained node is positioned so that its layoutBoundsmaxX
is visible. Whenhvalue
is betweenhmin
andhmax
, the contained node is positioned proportionally between layoutBoundsminX
and layoutBoundsmaxX
. - Returns:
- the value of the
hvalue
property - See Also:
-
hvalueProperty
The current horizontal scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofhmin
tohmax
. Whenhvalue
equalshmin
, the contained node is positioned so that its layoutBoundsminX
is visible. Whenhvalue
equalshmax
, the contained node is positioned so that its layoutBoundsmaxX
is visible. Whenhvalue
is betweenhmin
andhmax
, the contained node is positioned proportionally between layoutBoundsminX
and layoutBoundsmaxX
.- Returns:
- the
hvalue
property - See Also:
-
setVvalue
public final void setVvalue(double value) Sets the value of thevvalue
property.- Property description:
- The current vertical scroll position of the ScrollPane. This value
may be set by the application to scroll the view programatically.
The ScrollPane will update this value whenever the viewport is
scrolled or panned by the user. This value must always be within
the range of
vmin
tovmax
. Whenvvalue
equalsvmin
, the contained node is positioned so that its layoutBoundsminY
is visible. Whenvvalue
equalsvmax
, the contained node is positioned so that its layoutBoundsmaxY
is visible. Whenvvalue
is betweenvmin
andvmax
, the contained node is positioned proportionally between layoutBoundsminY
and layoutBoundsmaxY
. - Parameters:
value
- the value for thevvalue
property- See Also:
-
getVvalue
public final double getVvalue()Gets the value of thevvalue
property.- Property description:
- The current vertical scroll position of the ScrollPane. This value
may be set by the application to scroll the view programatically.
The ScrollPane will update this value whenever the viewport is
scrolled or panned by the user. This value must always be within
the range of
vmin
tovmax
. Whenvvalue
equalsvmin
, the contained node is positioned so that its layoutBoundsminY
is visible. Whenvvalue
equalsvmax
, the contained node is positioned so that its layoutBoundsmaxY
is visible. Whenvvalue
is betweenvmin
andvmax
, the contained node is positioned proportionally between layoutBoundsminY
and layoutBoundsmaxY
. - Returns:
- the value of the
vvalue
property - See Also:
-
vvalueProperty
The current vertical scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofvmin
tovmax
. Whenvvalue
equalsvmin
, the contained node is positioned so that its layoutBoundsminY
is visible. Whenvvalue
equalsvmax
, the contained node is positioned so that its layoutBoundsmaxY
is visible. Whenvvalue
is betweenvmin
andvmax
, the contained node is positioned proportionally between layoutBoundsminY
and layoutBoundsmaxY
.- Returns:
- the
vvalue
property - See Also:
-
setHmin
public final void setHmin(double value) Sets the value of thehmin
property.- Property description:
- The minimum allowable
hvalue
for this ScrollPane. Default value is 0. - Parameters:
value
- the value for thehmin
property- See Also:
-
getHmin
public final double getHmin()Gets the value of thehmin
property.- Property description:
- The minimum allowable
hvalue
for this ScrollPane. Default value is 0. - Returns:
- the value of the
hmin
property - See Also:
-
hminProperty
The minimum allowablehvalue
for this ScrollPane. Default value is 0.- Returns:
- the
hmin
property - See Also:
-
setVmin
public final void setVmin(double value) Sets the value of thevmin
property.- Property description:
- The minimum allowable
vvalue
for this ScrollPane. Default value is 0. - Parameters:
value
- the value for thevmin
property- See Also:
-
getVmin
public final double getVmin()Gets the value of thevmin
property.- Property description:
- The minimum allowable
vvalue
for this ScrollPane. Default value is 0. - Returns:
- the value of the
vmin
property - See Also:
-
vminProperty
The minimum allowablevvalue
for this ScrollPane. Default value is 0.- Returns:
- the
vmin
property - See Also:
-
setHmax
public final void setHmax(double value) Sets the value of thehmax
property.- Property description:
- The maximum allowable
hvalue
for this ScrollPane. Default value is 1. - Parameters:
value
- the value for thehmax
property- See Also:
-
getHmax
public final double getHmax()Gets the value of thehmax
property.- Property description:
- The maximum allowable
hvalue
for this ScrollPane. Default value is 1. - Returns:
- the value of the
hmax
property - See Also:
-
hmaxProperty
The maximum allowablehvalue
for this ScrollPane. Default value is 1.- Returns:
- the
hmax
property - See Also:
-
setVmax
public final void setVmax(double value) Sets the value of thevmax
property.- Property description:
- The maximum allowable
vvalue
for this ScrollPane. Default value is 1. - Parameters:
value
- the value for thevmax
property- See Also:
-
getVmax
public final double getVmax()Gets the value of thevmax
property.- Property description:
- The maximum allowable
vvalue
for this ScrollPane. Default value is 1. - Returns:
- the value of the
vmax
property - See Also:
-
vmaxProperty
The maximum allowablevvalue
for this ScrollPane. Default value is 1.- Returns:
- the
vmax
property - See Also:
-
setViewportBounds
Sets the value of theviewportBounds
property.- Property description:
- The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
- Parameters:
value
- the value for theviewportBounds
property- See Also:
-
getViewportBounds
Gets the value of theviewportBounds
property.- Property description:
- The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
- Returns:
- the value of the
viewportBounds
property - See Also:
-
viewportBoundsProperty
The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.- Returns:
- the
viewportBounds
property - See Also:
-
fitToWidthProperty
- Returns:
- the
fitToWidth
property - See Also:
-
isFitToWidth
public boolean isFitToWidth()Gets the value of thefitToWidth
property.- Property description:
- Returns:
- the value of the
fitToWidth
property - See Also:
-
setFitToWidth
public void setFitToWidth(boolean fitWidth) Sets the value of thefitToWidth
property.- Property description:
- Parameters:
fitWidth
- the value for thefitToWidth
property- See Also:
-
fitToHeightProperty
- Returns:
- the
fitToHeight
property - See Also:
-
isFitToHeight
public boolean isFitToHeight()Gets the value of thefitToHeight
property.- Property description:
- Returns:
- the value of the
fitToHeight
property - See Also:
-
setFitToHeight
public void setFitToHeight(boolean fitHeight) Sets the value of thefitToHeight
property.- Property description:
- Parameters:
fitHeight
- the value for thefitToHeight
property- See Also:
-
layoutChildren
protected void layoutChildren()Description copied from class:Control
Invoked during the layout pass to layout the children in thisParent
. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.Subclasses should override this function to layout content as needed.
- Overrides:
layoutChildren
in classControl
-
setOnChildrenLayout
-