Class ZoomableScrollPane

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:

  • Property Summary

    Properties
    Type
    Property
    Description
    @NonNull javafx.beans.property.DoubleProperty
     
    @NonNull javafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform>
     
    @NonNull javafx.beans.property.DoubleProperty
     
    final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy>
     
    final javafx.css.StyleableBooleanProperty
    Specifies 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 @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    final @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds>
     
    final @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyDoubleProperty
     
    final @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds>
     
    final @NonNull javafx.beans.property.DoubleProperty
     

    Properties inherited from class javafx.scene.layout.GridPane

    alignment, gridLinesVisible, hgap, vgap

    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
    Modifier and Type
    Field
    Description
    static final String
    The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-background".
    static final String
    The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-foreground".
    static final String
    The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane".
    static final String
    The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-subscene".
    static final String
    The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane-viewpprt".

    Fields inherited from class javafx.scene.layout.GridPane

    REMAINING

    Fields inherited from class javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull javafx.beans.property.DoubleProperty
     
    @NonNull javafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform>
     
    @NonNull javafx.beans.property.DoubleProperty
     
     
    @NonNull javafx.collections.ObservableList<javafx.scene.Node>
     
    @NonNull javafx.collections.ObservableList<javafx.scene.Node>
     
    double
    Gets the value of the contentHeight property.
    @NonNull javafx.scene.transform.Transform
    Gets the value of the contentToView property.
    double
    Gets the value of the contentWidth property.
    @NonNull javafx.collections.ObservableList<javafx.scene.Node>
     
    static @Nullable URL
     
    final javafx.scene.control.ScrollPane.ScrollBarPolicy
    Gets the value of the hbarPolicy property.
    javafx.scene.Node
     
    Gets the value of the subSceneUserAgentStylesheet property.
    final javafx.scene.control.ScrollPane.ScrollBarPolicy
    Gets the value of the vbarPolicy property.
    final @NonNull javafx.geometry.Bounds
     
    double
    Gets the value of the viewportHeight property.
    @NonNull javafx.geometry.Bounds
    Gets the value of the viewportRect property.
    double
    Gets the value of the viewportWidth property.
    @NonNull javafx.geometry.Bounds
     
    @NonNull javafx.scene.transform.Transform
     
    @NonNull javafx.geometry.Bounds
    Returns the rectangle of the content which is currently visible in the viewport in content coordinates.
    double
    Gets the value of the zoomFactor property.
    final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy>
     
    final boolean
    Gets the value of the pannable property.
    final javafx.css.StyleableBooleanProperty
    Specifies whether the user should be able to pan the viewport by using the mouse.
    void
    scrollContentRectToVisible(double x, double y, double w, double h)
     
    void
    scrollContentRectToVisible(@NonNull javafx.geometry.Bounds boundsInWorld)
     
    void
    scrollViewRectToVisible(double x, double y, double w, double h)
     
    void
    scrollViewRectToVisible(@NonNull javafx.geometry.Bounds b)
     
    void
    setContentHeight(double w)
    Sets the value of the contentHeight property.
    void
    setContentSize(double w, double h)
     
    void
    setContentWidth(double w)
    Sets the value of the contentWidth property.
    final void
    setHbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value)
    Sets the value of the hbarPolicy property.
    final void
    setPannable(boolean value)
    Sets the value of the pannable property.
    void
    Sets the value of the subSceneUserAgentStylesheet property.
    final void
    setVbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value)
    Sets the value of the vbarPolicy property.
    void
    setZoomFactor(double newValue)
    Sets the value of the zoomFactor property.
    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 @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    final @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds>
     
    final @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyDoubleProperty
     
    final @NonNull javafx.beans.property.ReadOnlyDoubleProperty
     
    javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds>
     
    final @NonNull javafx.beans.property.DoubleProperty
     

    Methods 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, vgapProperty

    Methods inherited from class javafx.scene.layout.Pane

    getChildren

    Methods 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, widthProperty

    Methods inherited from class javafx.scene.Parent

    getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, 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, 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, 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

  • Field Details

    • ZOOMABLE_SCROLL_PANE_STYLE_CLASS

      public static final String ZOOMABLE_SCROLL_PANE_STYLE_CLASS
      The style class of the ZoomableScrollPane is "jhotdraw8-zoomable-scroll-pane".
      See Also:
    • ZOOMABLE_SCROLL_PANE_VIEWPORT_STYLE_CLASS

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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 viewportRect property
      See Also:
    • getFxmlResource

      public static @Nullable URL getFxmlResource()
    • viewportWidthProperty

      public final @NonNull javafx.beans.property.ReadOnlyDoubleProperty viewportWidthProperty()
      Returns:
      the viewportWidth property
      See Also:
    • viewportHeightProperty

      public final @NonNull javafx.beans.property.ReadOnlyDoubleProperty viewportHeightProperty()
      Returns:
      the viewportHeight property
      See Also:
    • zoomFactorProperty

      public final @NonNull javafx.beans.property.DoubleProperty zoomFactorProperty()
      Returns:
      the zoomFactor property
      See Also:
    • getZoomFactor

      public double getZoomFactor()
      Gets the value of the zoomFactor property.
      Property description:
      Returns:
      the value of the zoomFactor property
      See Also:
    • viewWidthProperty

      public final @NonNull javafx.beans.property.ReadOnlyDoubleProperty viewWidthProperty()
      Returns:
      the viewWidth property
    • viewHeightProperty

      public final @NonNull javafx.beans.property.ReadOnlyDoubleProperty viewHeightProperty()
      Returns:
      the viewHeight property
    • getViewportWidth

      public double getViewportWidth()
      Gets the value of the viewportWidth property.
      Property description:
      Returns:
      the value of the viewportWidth property
      See Also:
    • getViewportHeight

      public double getViewportHeight()
      Gets the value of the viewportHeight property.
      Property description:
      Returns:
      the value of the viewportHeight property
      See Also:
    • getContentChildren

      public @NonNull javafx.collections.ObservableList<javafx.scene.Node> getContentChildren()
    • getBackgroundChildren

      public @NonNull javafx.collections.ObservableList<javafx.scene.Node> getBackgroundChildren()
    • getForegroundChildren

      public @NonNull javafx.collections.ObservableList<javafx.scene.Node> getForegroundChildren()
    • getVisibleContentRect

      public @NonNull 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 @NonNull javafx.geometry.Bounds getViewRect()
    • getViewportRect

      public @NonNull javafx.geometry.Bounds getViewportRect()
      Gets the value of the viewportRect property.
      Property description:
      Returns:
      the value of the viewportRect property
      See Also:
    • visibleContentRectProperty

      public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Bounds> visibleContentRectProperty()
      Returns:
      the visibleContentRect property
      See Also:
    • setZoomFactor

      public void setZoomFactor(double newValue)
      Sets the value of the zoomFactor property.
      Property description:
      Parameters:
      newValue - the value for the zoomFactor property
      See Also:
    • getViewportBounds

      public final @NonNull javafx.geometry.Bounds getViewportBounds()
    • scrollViewRectToVisible

      public void scrollViewRectToVisible(@NonNull 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(@NonNull javafx.geometry.Bounds boundsInWorld)
    • getContentToView

      public @NonNull javafx.scene.transform.Transform getContentToView()
      Gets the value of the contentToView property.
      Property description:
      Returns:
      the value of the contentToView property
      See Also:
    • getViewToContent

      public @NonNull javafx.scene.transform.Transform getViewToContent()
    • contentToViewProperty

      public @NonNull javafx.beans.property.ReadOnlyProperty<javafx.scene.transform.Transform> contentToViewProperty()
      Returns:
      the contentToView property
      See Also:
    • contentWidthProperty

      public @NonNull javafx.beans.property.DoubleProperty contentWidthProperty()
      Returns:
      the contentWidth property
      See Also:
    • contentHeightProperty

      public @NonNull javafx.beans.property.DoubleProperty contentHeightProperty()
      Returns:
      the contentHeight property
      See Also:
    • setContentSize

      public void setContentSize(double w, double h)
    • setContentWidth

      public void setContentWidth(double w)
      Sets the value of the contentWidth property.
      Property description:
      Parameters:
      w - the value for the contentWidth property
      See Also:
    • setContentHeight

      public void setContentHeight(double w)
      Sets the value of the contentHeight property.
      Property description:
      Parameters:
      w - the value for the contentHeight property
      See Also:
    • getContentWidth

      public double getContentWidth()
      Gets the value of the contentWidth property.
      Property description:
      Returns:
      the value of the contentWidth property
      See Also:
    • getContentHeight

      public double getContentHeight()
      Gets the value of the contentHeight property.
      Property description:
      Returns:
      the value of the contentHeight property
      See Also:
    • getSubSceneUserAgentStylesheet

      public String getSubSceneUserAgentStylesheet()
      Gets the value of the subSceneUserAgentStylesheet property.
      Property description:
      Returns:
      the value of the subSceneUserAgentStylesheet property
      See Also:
    • setSubSceneUserAgentStylesheet

      public void setSubSceneUserAgentStylesheet(String newValue)
      Sets the value of the subSceneUserAgentStylesheet property.
      Property description:
      Parameters:
      newValue - the value for the subSceneUserAgentStylesheet property
      See Also:
    • subSceneUserAgentStylesheetProperty

      public javafx.beans.property.ObjectProperty<String> subSceneUserAgentStylesheetProperty()
      Returns:
      the subSceneUserAgentStylesheet property
      See Also:
    • getNode

      public javafx.scene.Node getNode()
    • create

      public static ZoomableScrollPane create()
    • viewRectWidthProperty

      public javafx.beans.property.ReadOnlyDoubleProperty viewRectWidthProperty()
      Returns:
      the viewRectWidth property
    • viewRectHeightProperty

      public javafx.beans.property.ReadOnlyDoubleProperty viewRectHeightProperty()
      Returns:
      the viewRectHeight property
    • setHbarPolicy

      public final void setHbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value)
      Sets the value of the hbarPolicy property.
      Property description:
      Parameters:
      value - the value for the hbarPolicy property
      See Also:
    • getHbarPolicy

      public final javafx.scene.control.ScrollPane.ScrollBarPolicy getHbarPolicy()
      Gets the value of the hbarPolicy property.
      Property description:
      Returns:
      the value of the hbarPolicy property
      See Also:
    • hbarPolicyProperty

      public final javafx.beans.property.ObjectProperty<javafx.scene.control.ScrollPane.ScrollBarPolicy> hbarPolicyProperty()
      Returns:
      the hbarPolicy property
      See Also:
    • setVbarPolicy

      public final void setVbarPolicy(javafx.scene.control.ScrollPane.ScrollBarPolicy value)
      Sets the value of the vbarPolicy property.
      Property description:
      Specifies the policy for showing the vertical scroll bar.
      Parameters:
      value - the value for the vbarPolicy property
      See Also:
    • getVbarPolicy

      public final javafx.scene.control.ScrollPane.ScrollBarPolicy getVbarPolicy()
      Gets the value of the vbarPolicy property.
      Property description:
      Specifies the policy for showing the vertical scroll bar.
      Returns:
      the value of the vbarPolicy property
      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 vbarPolicy property
      See Also:
    • setPannable

      public final void setPannable(boolean value)
      Sets the value of the pannable property.
      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 pannable is consulted to determine if the events should be used for panning.
      Parameters:
      value - the value for the pannable property
      See Also:
    • isPannable

      public final boolean isPannable()
      Gets the value of the pannable property.
      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 pannable is consulted to determine if the events should be used for panning.
      Returns:
      the value of the pannable property
      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) then pannable is consulted to determine if the events should be used for panning.
      Returns:
      the pannable property
      See Also: