public class ScrollBar extends Control
ScrollBarは、focusTraversableをfalseに設定します。
この例では、垂直スクロール・バーを作成します。
import javafx.scene.control.ScrollBar;
ScrollBar s1 = new ScrollBar();
s1.setOrientation(Orientation.VERTICAL);
JavaFX UIコントロールAPI仕様に従ったScrollBarの実装| Type | プロパティと説明 |
|---|---|
DoubleProperty |
blockIncrement
バーのトラックがクリックされた場合にScrollBarを調整する量。
|
DoubleProperty |
max
この
ScrollBarで表される最大値。 |
DoubleProperty |
min
この
ScrollBarで表される最小値。 |
ObjectProperty<Orientation> |
orientation
ScrollBarの向きにHORIZONTALまたはVERTICALを指定できます。 |
DoubleProperty |
unitIncrement
|
DoubleProperty |
value
この
ScrollBarで表される現在の値。 |
DoubleProperty |
visibleAmount
一般にスクロール・バーのサムのサイズで表されるスクロール・バーの範囲の可視量。
|
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, visibleUSE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| コンストラクタと説明 |
|---|
ScrollBar()
新しい水平スクロール・バー(つまり、getOrientation() == Orientation.HORIZONTAL)を作成します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
adjustValue(double position)
blockIncrementでvalueプロパティを調整します。 |
DoubleProperty |
blockIncrementProperty()
バーのトラックがクリックされた場合にScrollBarを調整する量。
|
protected Skin<?> |
createDefaultSkin()
このコントロールのデフォルト・スキンの新しいインスタンスを作成します。
|
void |
decrement()
ScrollBarの値をunitIncrementだけ減分します。 |
void |
executeAccessibleAction(AccessibleAction action, Object... parameters)
このメソッドは、引数で指定されたアクションの実行をリクエストするためにアシスティブ・テクノロジによって呼び出されます。
|
double |
getBlockIncrement()
プロパティblockIncrementの値を取得します。
|
static List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
List<CssMetaData<? extends Styleable,?>> |
getControlCssMetaData() |
double |
getMax()
プロパティmaxの値を取得します。
|
double |
getMin()
プロパティminの値を取得します。
|
Orientation |
getOrientation()
プロパティorientationの値を取得します。
|
double |
getUnitIncrement()
プロパティunitIncrementの値を取得します。
|
double |
getValue()
プロパティvalueの値を取得します。
|
double |
getVisibleAmount()
プロパティvisibleAmountの値を取得します。
|
void |
increment()
ScrollBarの値をunitIncrementだけ増分します。 |
DoubleProperty |
maxProperty()
この
ScrollBarで表される最大値。 |
DoubleProperty |
minProperty()
この
ScrollBarで表される最小値。 |
ObjectProperty<Orientation> |
orientationProperty()
ScrollBarの向きにHORIZONTALまたはVERTICALを指定できます。 |
Object |
queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
*アクセシビリティ処理* *
|
void |
setBlockIncrement(double value)
プロパティblockIncrementの値を設定します。
|
void |
setMax(double value)
プロパティmaxの値を設定します。
|
void |
setMin(double value)
プロパティminの値を設定します。
|
void |
setOrientation(Orientation value)
プロパティorientationの値を設定します。
|
void |
setUnitIncrement(double value)
プロパティunitIncrementの値を設定します。
|
void |
setValue(double value)
プロパティvalueの値を設定します。
|
void |
setVisibleAmount(double value)
プロパティvisibleAmountの値を設定します。
|
DoubleProperty |
unitIncrementProperty()
|
DoubleProperty |
valueProperty()
この
ScrollBarで表される現在の値。 |
DoubleProperty |
visibleAmountProperty()
一般にスクロール・バーのサムのサイズで表されるスクロール・バーの範囲の可視量。
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, 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 DoubleProperty minProperty
getMin()、setMin(double)public final DoubleProperty maxProperty
getMax()、setMax(double)public final DoubleProperty valueProperty
getValue()、setValue(double)public final ObjectProperty<Orientation> orientationProperty
ScrollBarの向きにHORIZONTALまたはVERTICALを指定できます。public final DoubleProperty unitIncrementProperty
public final DoubleProperty blockIncrementProperty
public final DoubleProperty visibleAmountProperty
public ScrollBar()
public final void setMin(double value)
ScrollBarで表される最小値。 これは、max以下の値である必要があります。 デフォルト値は0です。 public final double getMin()
ScrollBarで表される最小値。 これは、max以下の値である必要があります。 デフォルト値は0です。 public final DoubleProperty minProperty()
getMin()、setMin(double)public final void setMax(double value)
ScrollBarで表される最大値。 これは、min以上の値である必要があります。 デフォルト値は100です。 public final double getMax()
ScrollBarで表される最大値。 これは、min以上の値である必要があります。 デフォルト値は100です。 public final DoubleProperty maxProperty()
getMax()、setMax(double)public final void setValue(double value)
public final double getValue()
public final DoubleProperty valueProperty()
getValue()、setValue(double)public final void setOrientation(Orientation value)
ScrollBarの向きにHORIZONTALまたはVERTICALを指定できます。public final Orientation getOrientation()
ScrollBarの向きにHORIZONTALまたはVERTICALを指定できます。public final ObjectProperty<Orientation> orientationProperty()
ScrollBarの向きにHORIZONTALまたはVERTICALを指定できます。public final void setUnitIncrement(double value)
public final double getUnitIncrement()
public final DoubleProperty unitIncrementProperty()
public final void setBlockIncrement(double value)
public final double getBlockIncrement()
public final DoubleProperty blockIncrementProperty()
public final void setVisibleAmount(double value)
public final double getVisibleAmount()
public final DoubleProperty visibleAmountProperty()
public void adjustValue(double position)
blockIncrementでvalueプロパティを調整します。 positionは、minからmaxまでの小数値です。 たとえば、50%などです。 #minProperty minが0、#maxProperty maxが100、valueが25の場合、.5というpositionはvalueをblockIncrementだけ増分することを示します。 valueが75の場合、.5というpositionはvalueをblockIncrementだけ減分することを示します。 public void increment()
ScrollBarの値をunitIncrementだけ増分します。public void decrement()
ScrollBarの値をunitIncrementだけ減分します。protected Skin<?> createDefaultSkin()
-fx-skinを介してスキンが提供されていない場合にコントロール用のスキンを作成するために、またはsetSkin(...)を使用してサブクラスで明示的に設定するために呼び出されます。 createDefaultSkin、クラスControlpublic static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
getControlCssMetaData、クラスControlpublic Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
queryAccessibleAttribute、クラスControlattribute - リクエストされた属性parameters - オプションのパラメータ・リストAccessibleAttributepublic void executeAccessibleAction(AccessibleAction action, Object... parameters)
Node
このメソッドは一般に、特定の役割に必要なアクションを実装するためにサブクラスによってオーバーライドされます。
特定のアクションが処理されない場合、スーパー・クラス実装を呼び出す必要があります。
executeAccessibleAction、クラスControlaction - 実行するアクションparameters - オプションのパラメータ・リストAccessibleActionCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.