java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.layout.GridPane
org.jhotdraw8.draw.gui.ZoomableScrollPane
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget
public class ZoomableScrollPane
extends javafx.scene.layout.GridPane
A ScrollPane that also supports zooming.
The ZoomScrollPane can zoom and scroll its content.
It also supports a background and a foreground that scroll with the content, but that do not zoom on their own.
You can not set the background, foreground and content objects, you can only access their children list.
The ZoomScrollPane has the following scene structure:
- "jhotdraw8-zoomable-scroll-pane" –
GridPane- "scroll-bar:vertical" –
ScrollBar - "scroll-bar:horizontal" –
ScrollBar - "jhotdraw8-zoomable-scroll-pane-viewpprt" –
StackPane- "jhotdraw8-zoomable-scroll-pane-background" –
StackPane- background - getBackgroundChildren().add(...)
- "jhotdraw8-zoomable-scroll-pane-subscene" –
SubSceneStackPane- content - getContentChildren().add(...)
- "jhotdraw8-zoomable-scroll-pane-foreground" –
StackPane- foreground - getForegroundChildren().add(...)
- "jhotdraw8-zoomable-scroll-pane-background" –
- "scroll-bar:vertical" –
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.DoublePropertyjavafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform> javafx.beans.property.DoublePropertyfinal javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> final javafx.css.StyleableBooleanPropertySpecifies whether the user should be able to pan the viewport by using the mouse.javafx.beans.property.ObjectProperty<String> final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> Specifies the policy for showing the vertical scroll bar.final javafx.beans.property.ReadOnlyDoublePropertyfinal javafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> final javafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyDoublePropertyfinal javafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> final javafx.beans.property.DoublePropertyProperties inherited from class javafx.scene.layout.GridPane
alignment, gridLinesVisible, hgap, vgapProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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
FieldsModifier and TypeFieldDescriptionstatic final StringThe style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-background".static final StringThe style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-foreground".static final StringThe style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane".static final StringThe style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-subscene".static final StringThe style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-viewpprt".Fields inherited from class javafx.scene.layout.GridPane
REMAININGFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.DoublePropertyjavafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform> javafx.beans.property.DoublePropertystatic ZoomableScrollPanecreate()javafx.collections.ObservableList<javafx.scene.Node> javafx.collections.ObservableList<javafx.scene.Node> doubleGets the value of thecontentHeightproperty.javafx.scene.transform.TransformGets the value of thecontentToViewproperty.doubleGets the value of thecontentWidthproperty.javafx.collections.ObservableList<javafx.scene.Node> static @Nullable URLfinal javafx.scene.control.ScrollPane.ScrollBarPolicyGets the value of thehbarPolicyproperty.javafx.scene.NodegetNode()Gets the value of thesubSceneUserAgentStylesheetproperty.final javafx.scene.control.ScrollPane.ScrollBarPolicyGets the value of thevbarPolicyproperty.final javafx.geometry.BoundsdoubleGets the value of theviewportHeightproperty.javafx.geometry.BoundsGets the value of theviewportRectproperty.doubleGets the value of theviewportWidthproperty.javafx.geometry.Boundsjavafx.scene.transform.Transformjavafx.geometry.BoundsReturns the rectangle of the content which is currently visible in the viewport in content coordinates.doubleGets the value of thezoomFactorproperty.final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> final booleanGets the value of thepannableproperty.final javafx.css.StyleableBooleanPropertySpecifies whether the user should be able to pan the viewport by using the mouse.voidscrollContentRectToVisible(double x, double y, double w, double h) voidscrollContentRectToVisible(javafx.geometry.Bounds boundsInWorld) voidscrollViewRectToVisible(double x, double y, double w, double h) voidscrollViewRectToVisible(javafx.geometry.Bounds b) voidsetContentHeight(double w) Sets the value of thecontentHeightproperty.voidsetContentSize(double w, double h) voidsetContentWidth(double w) Sets the value of thecontentWidthproperty.final voidsetHbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value) Sets the value of thehbarPolicyproperty.final voidsetPannable(boolean value) Sets the value of thepannableproperty.voidsetSubSceneUserAgentStylesheet(String newValue) Sets the value of thesubSceneUserAgentStylesheetproperty.final voidsetVbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value) Sets the value of thevbarPolicyproperty.voidsetZoomFactor(double newValue) Sets the value of thezoomFactorproperty.javafx.beans.property.ObjectProperty<String> final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> Specifies the policy for showing the vertical scroll bar.final javafx.beans.property.ReadOnlyDoublePropertyfinal javafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> final javafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyDoublePropertyfinal javafx.beans.property.ReadOnlyDoublePropertyjavafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> final javafx.beans.property.DoublePropertyMethods inherited from class javafx.scene.layout.GridPane
add, add, addColumn, addRow, alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getCellBounds, getClassCssMetaData, getColumnConstraints, getColumnCount, getColumnIndex, getColumnSpan, getContentBias, getCssMetaData, getHalignment, getHgap, getHgrow, getMargin, getRowConstraints, getRowCount, getRowIndex, getRowSpan, getValignment, getVgap, getVgrow, gridLinesVisibleProperty, hgapProperty, isFillHeight, isFillWidth, isGridLinesVisible, layoutChildren, requestLayout, setAlignment, setColumnIndex, setColumnSpan, setConstraints, setConstraints, setConstraints, setConstraints, setConstraints, setFillHeight, setFillWidth, setGridLinesVisible, setHalignment, setHgap, setHgrow, setMargin, setRowIndex, setRowSpan, setValignment, setVgap, setVgrow, toString, vgapPropertyMethods inherited from class javafx.scene.layout.Pane
getChildrenMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, 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, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, 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, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
viewportRect
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> viewportRectProperty- See Also:
-
viewportWidth
public final javafx.beans.property.ReadOnlyDoubleProperty viewportWidthProperty- See Also:
-
viewportHeight
public final javafx.beans.property.ReadOnlyDoubleProperty viewportHeightProperty- See Also:
-
zoomFactor
public final javafx.beans.property.DoubleProperty zoomFactorProperty- See Also:
-
viewWidth
public final javafx.beans.property.ReadOnlyDoubleProperty viewWidthProperty- See Also:
-
viewHeight
public final javafx.beans.property.ReadOnlyDoubleProperty viewHeightProperty- See Also:
-
visibleContentRect
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> visibleContentRectProperty- See Also:
-
contentToView
public javafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform> contentToViewProperty- See Also:
-
contentWidth
public javafx.beans.property.DoubleProperty contentWidthProperty- See Also:
-
contentHeight
public javafx.beans.property.DoubleProperty contentHeightProperty- See Also:
-
subSceneUserAgentStylesheet
- See Also:
-
viewRectWidth
public javafx.beans.property.ReadOnlyDoubleProperty viewRectWidthProperty- See Also:
-
viewRectHeight
public javafx.beans.property.ReadOnlyDoubleProperty viewRectHeightProperty- See Also:
-
hbarPolicy
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> hbarPolicyProperty- See Also:
-
vbarPolicy
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> vbarPolicyPropertySpecifies the policy for showing the vertical scroll bar.- See Also:
-
pannable
public final javafx.css.StyleableBooleanProperty pannablePropertySpecifies whether the user should be able to pan the viewport by using the mouse. If mouse events reach the ZoomableScrollPane (that is, if mouse events are not blocked by the contained node or one of its children) thenpannableis consulted to determine if the events should be used for panning.- See Also:
-
-
Field Details
-
ZOOMABLE_SCROLL_PANE_STYLE_CLASS
The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane".- See Also:
-
ZOOMABLE_SCROLL_PANE_VIEWPORT_STYLE_CLASS
The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-viewpprt".- See Also:
-
ZOOMABLE_SCROLL_PANE_BACKGROUND_STYLE_CLASS
The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-background".- See Also:
-
ZOOMABLE_SCROLL_PANE_SUBSCENE_STYLE_CLASS
The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-subscene".- See Also:
-
ZOOMABLE_SCROLL_PANE_FOREGROUND_STYLE_CLASS
The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-foreground".- See Also:
-
-
Constructor Details
-
ZoomableScrollPane
public ZoomableScrollPane()
-
-
Method Details
-
viewportRectProperty
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> viewportRectProperty()- Returns:
- the
viewportRectproperty - See Also:
-
getFxmlResource
-
viewportWidthProperty
public final javafx.beans.property.ReadOnlyDoubleProperty viewportWidthProperty()- Returns:
- the
viewportWidthproperty - See Also:
-
viewportHeightProperty
public final javafx.beans.property.ReadOnlyDoubleProperty viewportHeightProperty()- Returns:
- the
viewportHeightproperty - See Also:
-
zoomFactorProperty
public final javafx.beans.property.DoubleProperty zoomFactorProperty()- Returns:
- the
zoomFactorproperty - See Also:
-
getZoomFactor
public double getZoomFactor()Gets the value of thezoomFactorproperty.- Property description:
- Returns:
- the value of the
zoomFactorproperty - See Also:
-
viewWidthProperty
public final javafx.beans.property.ReadOnlyDoubleProperty viewWidthProperty()- Returns:
- the
viewWidthproperty
-
viewHeightProperty
public final javafx.beans.property.ReadOnlyDoubleProperty viewHeightProperty()- Returns:
- the
viewHeightproperty
-
getViewportWidth
public double getViewportWidth()Gets the value of theviewportWidthproperty.- Property description:
- Returns:
- the value of the
viewportWidthproperty - See Also:
-
getViewportHeight
public double getViewportHeight()Gets the value of theviewportHeightproperty.- Property description:
- Returns:
- the value of the
viewportHeightproperty - See Also:
-
getContentChildren
public javafx.collections.ObservableList<javafx.scene.Node> getContentChildren() -
getBackgroundChildren
public javafx.collections.ObservableList<javafx.scene.Node> getBackgroundChildren() -
getForegroundChildren
public javafx.collections.ObservableList<javafx.scene.Node> getForegroundChildren() -
getVisibleContentRect
public javafx.geometry.Bounds getVisibleContentRect()Returns the rectangle of the content which is currently visible in the viewport in content coordinates.- Returns:
- visible content rectangle in content coordinates
-
getViewRect
public javafx.geometry.Bounds getViewRect() -
getViewportRect
public javafx.geometry.Bounds getViewportRect()Gets the value of theviewportRectproperty.- Property description:
- Returns:
- the value of the
viewportRectproperty - See Also:
-
visibleContentRectProperty
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> visibleContentRectProperty()- Returns:
- the
visibleContentRectproperty - See Also:
-
setZoomFactor
public void setZoomFactor(double newValue) Sets the value of thezoomFactorproperty.- Property description:
- Parameters:
newValue- the value for thezoomFactorproperty- See Also:
-
getViewportBounds
public final javafx.geometry.Bounds getViewportBounds() -
scrollViewRectToVisible
public void scrollViewRectToVisible(javafx.geometry.Bounds b) -
scrollViewRectToVisible
public void scrollViewRectToVisible(double x, double y, double w, double h) -
scrollContentRectToVisible
public void scrollContentRectToVisible(double x, double y, double w, double h) -
scrollContentRectToVisible
public void scrollContentRectToVisible(javafx.geometry.Bounds boundsInWorld) -
getContentToView
public javafx.scene.transform.Transform getContentToView()Gets the value of thecontentToViewproperty.- Property description:
- Returns:
- the value of the
contentToViewproperty - See Also:
-
getViewToContent
public javafx.scene.transform.Transform getViewToContent() -
contentToViewProperty
public javafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform> contentToViewProperty()- Returns:
- the
contentToViewproperty - See Also:
-
contentWidthProperty
public javafx.beans.property.DoubleProperty contentWidthProperty()- Returns:
- the
contentWidthproperty - See Also:
-
contentHeightProperty
public javafx.beans.property.DoubleProperty contentHeightProperty()- Returns:
- the
contentHeightproperty - See Also:
-
setContentSize
public void setContentSize(double w, double h) -
setContentWidth
public void setContentWidth(double w) Sets the value of thecontentWidthproperty.- Property description:
- Parameters:
w- the value for thecontentWidthproperty- See Also:
-
setContentHeight
public void setContentHeight(double w) Sets the value of thecontentHeightproperty.- Property description:
- Parameters:
w- the value for thecontentHeightproperty- See Also:
-
getContentWidth
public double getContentWidth()Gets the value of thecontentWidthproperty.- Property description:
- Returns:
- the value of the
contentWidthproperty - See Also:
-
getContentHeight
public double getContentHeight()Gets the value of thecontentHeightproperty.- Property description:
- Returns:
- the value of the
contentHeightproperty - See Also:
-
getSubSceneUserAgentStylesheet
Gets the value of thesubSceneUserAgentStylesheetproperty.- Property description:
- Returns:
- the value of the
subSceneUserAgentStylesheetproperty - See Also:
-
setSubSceneUserAgentStylesheet
Sets the value of thesubSceneUserAgentStylesheetproperty.- Property description:
- Parameters:
newValue- the value for thesubSceneUserAgentStylesheetproperty- See Also:
-
subSceneUserAgentStylesheetProperty
- Returns:
- the
subSceneUserAgentStylesheetproperty - See Also:
-
getNode
public javafx.scene.Node getNode() -
create
-
viewRectWidthProperty
public javafx.beans.property.ReadOnlyDoubleProperty viewRectWidthProperty()- Returns:
- the
viewRectWidthproperty
-
viewRectHeightProperty
public javafx.beans.property.ReadOnlyDoubleProperty viewRectHeightProperty()- Returns:
- the
viewRectHeightproperty
-
setHbarPolicy
public final void setHbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value) Sets the value of thehbarPolicyproperty.- Property description:
- Parameters:
value- the value for thehbarPolicyproperty- See Also:
-
getHbarPolicy
public final javafx.scene.control.ScrollPane.ScrollBarPolicy getHbarPolicy()Gets the value of thehbarPolicyproperty.- Property description:
- Returns:
- the value of the
hbarPolicyproperty - See Also:
-
hbarPolicyProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> hbarPolicyProperty()- Returns:
- the
hbarPolicyproperty - See Also:
-
setVbarPolicy
public final void setVbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value) Sets the value of thevbarPolicyproperty.- Property description:
- Specifies the policy for showing the vertical scroll bar.
- Parameters:
value- the value for thevbarPolicyproperty- See Also:
-
getVbarPolicy
public final javafx.scene.control.ScrollPane.ScrollBarPolicy getVbarPolicy()Gets the value of thevbarPolicyproperty.- Property description:
- Specifies the policy for showing the vertical scroll bar.
- Returns:
- the value of the
vbarPolicyproperty - See Also:
-
vbarPolicyProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> vbarPolicyProperty()Specifies the policy for showing the vertical scroll bar.- Returns:
- the
vbarPolicyproperty - See Also:
-
setPannable
public final void setPannable(boolean value) Sets the value of thepannableproperty.- Property description:
- Specifies whether the user should be able to pan the viewport by using
the mouse. If mouse events reach the ZoomableScrollPane (that is, if mouse
events are not blocked by the contained node or one of its children)
then
pannableis consulted to determine if the events should be used for panning. - Parameters:
value- the value for thepannableproperty- See Also:
-
isPannable
public final boolean isPannable()Gets the value of thepannableproperty.- Property description:
- Specifies whether the user should be able to pan the viewport by using
the mouse. If mouse events reach the ZoomableScrollPane (that is, if mouse
events are not blocked by the contained node or one of its children)
then
pannableis consulted to determine if the events should be used for panning. - Returns:
- the value of the
pannableproperty - See Also:
-
pannableProperty
public final javafx.css.StyleableBooleanProperty pannableProperty()Specifies whether the user should be able to pan the viewport by using the mouse. If mouse events reach the ZoomableScrollPane (that is, if mouse events are not blocked by the contained node or one of its children) thenpannableis consulted to determine if the events should be used for panning.- Returns:
- the
pannableproperty - See Also:
-