@DefaultProperty(value="content") public class ScrollPane extends Control
The ScrollPane allows the application to set the current, minimum, and
maximum values for positioning the contents in the horizontal and
vertical directions. These values are mapped proportionally onto the
layoutBounds of the contained node.
ScrollPane layout calculations are based on the layoutBounds rather than the boundsInParent (visual bounds) of the scroll node. If an application wants the scrolling to be based on the visual bounds of the node (for scaled content etc.), they need to wrap the scroll node in a Group.
ScrollPane sets focusTraversable to false.
This example creates a ScrollPane, which contains a Rectangle :
import javafx.scene.control.ScrollPane;
import javafx.scene.shape.Rectangle;
Rectangle rect = new Rectangle(200, 200, Color.RED);
ScrollPane s1 = new ScrollPane();
s1.setPrefSize(120, 120);
s1.setContent(rect);
Implementation of ScrollPane According to JavaFX UI Control API Specification| Type | Property and Description |
|---|---|
ObjectProperty<Node> |
content
The node used as the content of this ScrollPane.
|
BooleanProperty |
fitToHeight
If true and if the contained node is a Resizable, then the node will be
kept resized to match the height of the ScrollPane's viewport.
|
BooleanProperty |
fitToWidth
If true and if the contained node is a Resizable, then the node will be
kept resized to match the width of the ScrollPane's viewport.
|
ObjectProperty<ScrollPane.ScrollBarPolicy> |
hbarPolicy
Specifies the policy for showing the horizontal scroll bar.
|
DoubleProperty |
hmax
The maximum allowable
hvalue for this ScrollPane. |
DoubleProperty |
hmin
The minimum allowable
hvalue for this ScrollPane. |
DoubleProperty |
hvalue
The current horizontal scroll position of the ScrollPane.
|
DoubleProperty |
minViewportHeight
Specify the minimum height of the ScrollPane Viewport.
|
DoubleProperty |
minViewportWidth
Specify the minimum width of the ScrollPane Viewport.
|
BooleanProperty |
pannable
Specifies whether the user should be able to pan the viewport by using
the mouse.
|
DoubleProperty |
prefViewportHeight
Specify the preferred height of the ScrollPane Viewport.
|
DoubleProperty |
prefViewportWidth
Specify the perferred width of the ScrollPane Viewport.
|
ObjectProperty<ScrollPane.ScrollBarPolicy> |
vbarPolicy
Specifies the policy for showing the vertical scroll bar.
|
ObjectProperty<Bounds> |
viewportBounds
The actual Bounds of the ScrollPane Viewport.
|
DoubleProperty |
vmax
The maximum allowable
vvalue for this ScrollPane. |
DoubleProperty |
vmin
The minimum allowable
vvalue for this ScrollPane. |
DoubleProperty |
vvalue
The current vertical scroll position of the ScrollPane.
|
contextMenu, skin, tooltipbackground, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthneedsLayoutaccessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, 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, visible| Modifier and Type | Class and Description |
|---|---|
static class |
ScrollPane.ScrollBarPolicy
An enumeration denoting the policy to be used by a scrollable
Control in deciding whether to show a scroll bar.
|
USE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| Constructor and Description |
|---|
ScrollPane()
Creates a new ScrollPane.
|
ScrollPane(Node content)
Creates a new ScrollPane.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectProperty<Node> |
contentProperty()
The node used as the content of this ScrollPane.
|
protected Skin<?> |
createDefaultSkin()
Create a new instance of the default skin for this control.
|
BooleanProperty |
fitToHeightProperty()
If true and if the contained node is a Resizable, then the node will be
kept resized to match the height of the ScrollPane's viewport.
|
BooleanProperty |
fitToWidthProperty()
If true and if the contained node is a Resizable, then the node will be
kept resized to match the width of the ScrollPane's viewport.
|
static List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
Node |
getContent()
Gets the value of the property content.
|
List<CssMetaData<? extends Styleable,?>> |
getControlCssMetaData() |
ScrollPane.ScrollBarPolicy |
getHbarPolicy()
Gets the value of the property hbarPolicy.
|
double |
getHmax()
Gets the value of the property hmax.
|
double |
getHmin()
Gets the value of the property hmin.
|
double |
getHvalue()
Gets the value of the property hvalue.
|
double |
getMinViewportHeight()
Gets the value of the property minViewportHeight.
|
double |
getMinViewportWidth()
Gets the value of the property minViewportWidth.
|
double |
getPrefViewportHeight()
Gets the value of the property prefViewportHeight.
|
double |
getPrefViewportWidth()
Gets the value of the property prefViewportWidth.
|
ScrollPane.ScrollBarPolicy |
getVbarPolicy()
Gets the value of the property vbarPolicy.
|
Bounds |
getViewportBounds()
Gets the value of the property viewportBounds.
|
double |
getVmax()
Gets the value of the property vmax.
|
double |
getVmin()
Gets the value of the property vmin.
|
double |
getVvalue()
Gets the value of the property vvalue.
|
ObjectProperty<ScrollPane.ScrollBarPolicy> |
hbarPolicyProperty()
Specifies the policy for showing the horizontal scroll bar.
|
DoubleProperty |
hmaxProperty()
The maximum allowable
hvalue for this ScrollPane. |
DoubleProperty |
hminProperty()
The minimum allowable
hvalue for this ScrollPane. |
DoubleProperty |
hvalueProperty()
The current horizontal scroll position of the ScrollPane.
|
boolean |
isFitToHeight()
Gets the value of the property fitToHeight.
|
boolean |
isFitToWidth()
Gets the value of the property fitToWidth.
|
boolean |
isPannable()
Gets the value of the property pannable.
|
DoubleProperty |
minViewportHeightProperty()
Specify the minimum height of the ScrollPane Viewport.
|
DoubleProperty |
minViewportWidthProperty()
Specify the minimum width of the ScrollPane Viewport.
|
BooleanProperty |
pannableProperty()
Specifies whether the user should be able to pan the viewport by using
the mouse.
|
DoubleProperty |
prefViewportHeightProperty()
Specify the preferred height of the ScrollPane Viewport.
|
DoubleProperty |
prefViewportWidthProperty()
Specify the perferred width of the ScrollPane Viewport.
|
Object |
queryAccessibleAttribute(AccessibleAttribute attribute,
Object... parameters)
*
Accessibility handling *
*
|
void |
setContent(Node value)
Sets the value of the property content.
|
void |
setFitToHeight(boolean value)
Sets the value of the property fitToHeight.
|
void |
setFitToWidth(boolean value)
Sets the value of the property fitToWidth.
|
void |
setHbarPolicy(ScrollPane.ScrollBarPolicy value)
Sets the value of the property hbarPolicy.
|
void |
setHmax(double value)
Sets the value of the property hmax.
|
void |
setHmin(double value)
Sets the value of the property hmin.
|
void |
setHvalue(double value)
Sets the value of the property hvalue.
|
void |
setMinViewportHeight(double value)
Sets the value of the property minViewportHeight.
|
void |
setMinViewportWidth(double value)
Sets the value of the property minViewportWidth.
|
void |
setPannable(boolean value)
Sets the value of the property pannable.
|
void |
setPrefViewportHeight(double value)
Sets the value of the property prefViewportHeight.
|
void |
setPrefViewportWidth(double value)
Sets the value of the property prefViewportWidth.
|
void |
setVbarPolicy(ScrollPane.ScrollBarPolicy value)
Sets the value of the property vbarPolicy.
|
void |
setViewportBounds(Bounds value)
Sets the value of the property viewportBounds.
|
void |
setVmax(double value)
Sets the value of the property vmax.
|
void |
setVmin(double value)
Sets the value of the property vmin.
|
void |
setVvalue(double value)
Sets the value of the property vvalue.
|
ObjectProperty<ScrollPane.ScrollBarPolicy> |
vbarPolicyProperty()
Specifies the policy for showing the vertical scroll bar.
|
ObjectProperty<Bounds> |
viewportBoundsProperty()
The actual Bounds of the ScrollPane Viewport.
|
DoubleProperty |
vmaxProperty()
The maximum allowable
vvalue for this ScrollPane. |
DoubleProperty |
vminProperty()
The minimum allowable
vvalue for this ScrollPane. |
DoubleProperty |
vvalueProperty()
The current vertical scroll position of the ScrollPane.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getSkin, getTooltip, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, 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, snapSize, snapSpace, snapToPixelProperty, widthPropertygetChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, 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, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic final ObjectProperty<ScrollPane.ScrollBarPolicy> hbarPolicyProperty
getHbarPolicy(),
setHbarPolicy(ScrollBarPolicy)public final ObjectProperty<ScrollPane.ScrollBarPolicy> vbarPolicyProperty
getVbarPolicy(),
setVbarPolicy(ScrollBarPolicy)public final ObjectProperty<Node> contentProperty
getContent(),
setContent(Node)public final DoubleProperty hvalueProperty
hmin to hmax. When hvalue
equals hmin, the contained node is positioned so that
its layoutBounds minX is visible. When hvalue
equals hmax, the contained node is positioned so that its
layoutBounds maxX is visible. When hvalue is between
hmin and hmax, the contained node is positioned
proportionally between layoutBounds minX and
layoutBounds maxX.getHvalue(),
setHvalue(double)public final DoubleProperty vvalueProperty
vmin to vmax. When vvalue
equals vmin, the contained node is positioned so that
its layoutBounds minY is visible. When vvalue
equals vmax, the contained node is positioned so that its
layoutBounds maxY is visible. When vvalue is between
vmin and vmax, the contained node is positioned
proportionally between layoutBounds minY and
layoutBounds maxY.getVvalue(),
setVvalue(double)public final DoubleProperty hminProperty
hvalue for this ScrollPane.
Default value is 0.getHmin(),
setHmin(double)public final DoubleProperty vminProperty
vvalue for this ScrollPane.
Default value is 0.getVmin(),
setVmin(double)public final DoubleProperty hmaxProperty
hvalue for this ScrollPane.
Default value is 1.getHmax(),
setHmax(double)public final DoubleProperty vmaxProperty
vvalue for this ScrollPane.
Default value is 1.getVmax(),
setVmax(double)public final BooleanProperty fitToWidthProperty
isFitToWidth(),
setFitToWidth(boolean)public final BooleanProperty fitToHeightProperty
isFitToHeight(),
setFitToHeight(boolean)public final BooleanProperty pannableProperty
pannable is consulted to determine if the events should be
used for panning.isPannable(),
setPannable(boolean)public final DoubleProperty prefViewportWidthProperty
public final DoubleProperty prefViewportHeightProperty
public final DoubleProperty minViewportWidthProperty
getMinViewportWidth(),
setMinViewportWidth(double)public final DoubleProperty minViewportHeightProperty
getMinViewportHeight(),
setMinViewportHeight(double)public final ObjectProperty<Bounds> viewportBoundsProperty
getViewportBounds(),
setViewportBounds(Bounds)public ScrollPane()
public ScrollPane(Node content)
content - the initial content for the ScrollPanepublic final void setHbarPolicy(ScrollPane.ScrollBarPolicy value)
public final ScrollPane.ScrollBarPolicy getHbarPolicy()
public final ObjectProperty<ScrollPane.ScrollBarPolicy> hbarPolicyProperty()
getHbarPolicy(),
setHbarPolicy(ScrollBarPolicy)public final void setVbarPolicy(ScrollPane.ScrollBarPolicy value)
public final ScrollPane.ScrollBarPolicy getVbarPolicy()
public final ObjectProperty<ScrollPane.ScrollBarPolicy> vbarPolicyProperty()
getVbarPolicy(),
setVbarPolicy(ScrollBarPolicy)public final void setContent(Node value)
public final Node getContent()
public final ObjectProperty<Node> contentProperty()
getContent(),
setContent(Node)public final void setHvalue(double value)
hmin to hmax. When hvalue
equals hmin, the contained node is positioned so that
its layoutBounds minX is visible. When hvalue
equals hmax, the contained node is positioned so that its
layoutBounds maxX is visible. When hvalue is between
hmin and hmax, the contained node is positioned
proportionally between layoutBounds minX and
layoutBounds maxX.public final double getHvalue()
hmin to hmax. When hvalue
equals hmin, the contained node is positioned so that
its layoutBounds minX is visible. When hvalue
equals hmax, the contained node is positioned so that its
layoutBounds maxX is visible. When hvalue is between
hmin and hmax, the contained node is positioned
proportionally between layoutBounds minX and
layoutBounds maxX.public final DoubleProperty hvalueProperty()
hmin to hmax. When hvalue
equals hmin, the contained node is positioned so that
its layoutBounds minX is visible. When hvalue
equals hmax, the contained node is positioned so that its
layoutBounds maxX is visible. When hvalue is between
hmin and hmax, the contained node is positioned
proportionally between layoutBounds minX and
layoutBounds maxX.getHvalue(),
setHvalue(double)public final void setVvalue(double value)
vmin to vmax. When vvalue
equals vmin, the contained node is positioned so that
its layoutBounds minY is visible. When vvalue
equals vmax, the contained node is positioned so that its
layoutBounds maxY is visible. When vvalue is between
vmin and vmax, the contained node is positioned
proportionally between layoutBounds minY and
layoutBounds maxY.public final double getVvalue()
vmin to vmax. When vvalue
equals vmin, the contained node is positioned so that
its layoutBounds minY is visible. When vvalue
equals vmax, the contained node is positioned so that its
layoutBounds maxY is visible. When vvalue is between
vmin and vmax, the contained node is positioned
proportionally between layoutBounds minY and
layoutBounds maxY.public final DoubleProperty vvalueProperty()
vmin to vmax. When vvalue
equals vmin, the contained node is positioned so that
its layoutBounds minY is visible. When vvalue
equals vmax, the contained node is positioned so that its
layoutBounds maxY is visible. When vvalue is between
vmin and vmax, the contained node is positioned
proportionally between layoutBounds minY and
layoutBounds maxY.getVvalue(),
setVvalue(double)public final void setHmin(double value)
hvalue for this ScrollPane.
Default value is 0.public final double getHmin()
hvalue for this ScrollPane.
Default value is 0.public final DoubleProperty hminProperty()
hvalue for this ScrollPane.
Default value is 0.getHmin(),
setHmin(double)public final void setVmin(double value)
vvalue for this ScrollPane.
Default value is 0.public final double getVmin()
vvalue for this ScrollPane.
Default value is 0.public final DoubleProperty vminProperty()
vvalue for this ScrollPane.
Default value is 0.getVmin(),
setVmin(double)public final void setHmax(double value)
hvalue for this ScrollPane.
Default value is 1.public final double getHmax()
hvalue for this ScrollPane.
Default value is 1.public final DoubleProperty hmaxProperty()
hvalue for this ScrollPane.
Default value is 1.getHmax(),
setHmax(double)public final void setVmax(double value)
vvalue for this ScrollPane.
Default value is 1.public final double getVmax()
vvalue for this ScrollPane.
Default value is 1.public final DoubleProperty vmaxProperty()
vvalue for this ScrollPane.
Default value is 1.getVmax(),
setVmax(double)public final void setFitToWidth(boolean value)
public final boolean isFitToWidth()
public final BooleanProperty fitToWidthProperty()
isFitToWidth(),
setFitToWidth(boolean)public final void setFitToHeight(boolean value)
public final boolean isFitToHeight()
public final BooleanProperty fitToHeightProperty()
isFitToHeight(),
setFitToHeight(boolean)public final void setPannable(boolean value)
pannable is consulted to determine if the events should be
used for panning.public final boolean isPannable()
pannable is consulted to determine if the events should be
used for panning.public final BooleanProperty pannableProperty()
pannable is consulted to determine if the events should be
used for panning.isPannable(),
setPannable(boolean)public final void setPrefViewportWidth(double value)
public final double getPrefViewportWidth()
public final DoubleProperty prefViewportWidthProperty()
public final void setPrefViewportHeight(double value)
public final double getPrefViewportHeight()
public final DoubleProperty prefViewportHeightProperty()
public final void setMinViewportWidth(double value)
public final double getMinViewportWidth()
public final DoubleProperty minViewportWidthProperty()
getMinViewportWidth(),
setMinViewportWidth(double)public final void setMinViewportHeight(double value)
public final double getMinViewportHeight()
public final DoubleProperty minViewportHeightProperty()
getMinViewportHeight(),
setMinViewportHeight(double)public final void setViewportBounds(Bounds value)
public final Bounds getViewportBounds()
public final ObjectProperty<Bounds> viewportBoundsProperty()
getViewportBounds(),
setViewportBounds(Bounds)protected Skin<?> createDefaultSkin()
-fx-skin or set explicitly in a sub-class with setSkin(...).createDefaultSkin in class Controlpublic static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
getControlCssMetaData in class Controlpublic Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
queryAccessibleAttribute in class Controlattribute - the requested attributeparameters - optional list of parametersAccessibleAttributeCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.