- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- javafx.scene.layout.Region
-
- javafx.scene.control.Control
-
- javafx.scene.control.Slider
-
- すべての実装されたインタフェース:
Styleable,EventTarget,Skinnable
public class Slider extends Control
Sliderコントロールは、有効な数値の選択肢を連続範囲または離散範囲として表示し、ユーザーに値を選択させるために使用されます。 通常の視覚的表現では、トラックと、トラック内でドラッグされるノブまたはサムがあります。 Sliderは、オプションで様々なスライダ位置の値を示す目盛およびラベルを表示できます。スライダの3つの基本的な変数は、
min、maxおよびvalueです。valueは、常にminとmaxで定義された範囲内の番号でなければなりません。minは常にmax(minとmaxが等しいスライダは意味を持たない縮退ケースです)以下でなければなりません。minのデフォルトは0ですが、maxのデフォルトは100です。この最初の例では、範囲またはスパンが0から1になり、値のデフォルト値が.5であるスライダを作成します:
import javafx.scene.control.Slider; Slider slider = new Slider(0, 1, 0.5);
次の例では、カスタマイズされた目盛および目盛ラベルを持つスライダ(範囲は0から1まで)を示しています。
import javafx.scene.control.Slider; Slider slider = new Slider(0, 1, 0.5); slider.setShowTickMarks(true); slider.setShowTickLabels(true); slider.setMajorTickUnit(0.25f); slider.setBlockIncrement(0.1f);
- 導入されたバージョン:
- JavaFX 2.0
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 DoublePropertyblockIncrementスライダのトラックがクリックされた場合にSliderを調整する量。ObjectProperty<StringConverter<Double>>labelFormatter大目盛のラベルをフォーマットするための関数。DoublePropertymajorTickUnit大目盛の間の単位距離。DoublePropertymaxこのSliderで表される最大値。IntegerPropertyminorTickCount2つの大目盛の間に配置する小目盛の数。DoublePropertyminこのSliderで表される最小値。ObjectProperty<Orientation>orientationSliderの向きに水平または垂直を指定できます。BooleanPropertyshowTickLabels目盛のラベルを表示する必要があることを示します。BooleanPropertyshowTickMarksSkin実装が目盛を表示する必要があるかどうかを指定します。BooleanPropertysnapToTicksSliderのvalueを常に目盛に合せるかどうかを示します。BooleanPropertyvalueChangingtrueの場合、このSliderの現在の値を変更していることを示します。DoublePropertyvalueこのSliderで表される現在の値。-
クラス javafx.scene.control.Controlで宣言されたプロパティ
contextMenu、skin、tooltip
-
クラス javafx.scene.Nodeで宣言されたプロパティ
accessibleHelp, 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, viewOrder, visible
-
クラス javafx.scene.Parentで宣言されたプロパティ
needsLayout
-
クラス javafx.scene.layout.Regionで宣言されたプロパティ
background、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
-
-
フィールドのサマリー
-
クラス javafx.scene.Nodeで宣言されたフィールド
BASELINE_OFFSET_SAME_AS_HEIGHT
-
クラス javafx.scene.layout.Regionで宣言されたフィールド
USE_COMPUTED_SIZE、USE_PREF_SIZE
-
-
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 voidadjustValue(double newValue)newValueに合せてvalueを調整します。DoublePropertyblockIncrementProperty()スライダのトラックがクリックされた場合にSliderを調整する量。voiddecrement()maxを上限として、値をblockIncrementずつ減らします。doublegetBlockIncrement()プロパティblockIncrementの値を取得します。static List<CssMetaData<? extends Styleable,?>>getClassCssMetaData()protected List<CssMetaData<? extends Styleable,?>>getControlCssMetaData()StringConverter<Double>getLabelFormatter()プロパティlabelFormatterの値を取得します。doublegetMajorTickUnit()プロパティmajorTickUnitの値を取得します。doublegetMax()プロパティmaxの値を取得します。doublegetMin()プロパティminの値を取得します。intgetMinorTickCount()プロパティminorTickCountの値を取得します。OrientationgetOrientation()プロパティorientationの値を取得します。doublegetValue()プロパティvalueの値を取得します。voidincrement()maxを上限として、値をblockIncrementずつ増やします。booleanisShowTickLabels()プロパティshowTickLabelsの値を取得します。booleanisShowTickMarks()プロパティshowTickMarksの値を取得します。booleanisSnapToTicks()プロパティsnapToTicksの値を取得します。booleanisValueChanging()プロパティvalueChangingの値を取得します。ObjectProperty<StringConverter<Double>>labelFormatterProperty()大目盛のラベルをフォーマットするための関数。DoublePropertymajorTickUnitProperty()大目盛の間の単位距離。DoublePropertymaxProperty()このSliderで表される最大値。IntegerPropertyminorTickCountProperty()2つの大目盛の間に配置する小目盛の数。DoublePropertyminProperty()このSliderで表される最小値。ObjectProperty<Orientation>orientationProperty()Sliderの向きに水平または垂直を指定できます。voidsetBlockIncrement(double value)プロパティblockIncrementの値を設定します。voidsetLabelFormatter(StringConverter<Double> value)プロパティlabelFormatterの値を設定します。voidsetMajorTickUnit(double value)プロパティmajorTickUnitの値を設定します。voidsetMax(double value)プロパティmaxの値を設定します。voidsetMin(double value)プロパティminの値を設定します。voidsetMinorTickCount(int value)プロパティminorTickCountの値を設定します。voidsetOrientation(Orientation value)プロパティorientationの値を設定します。voidsetShowTickLabels(boolean value)プロパティshowTickLabelsの値を設定します。voidsetShowTickMarks(boolean value)プロパティshowTickMarksの値を設定します。voidsetSnapToTicks(boolean value)プロパティsnapToTicksの値を設定します。voidsetValue(double value)プロパティvalueの値を設定します。voidsetValueChanging(boolean value)プロパティvalueChangingの値を設定します。BooleanPropertyshowTickLabelsProperty()目盛のラベルを表示する必要があることを示します。BooleanPropertyshowTickMarksProperty()Skin実装が目盛を表示する必要があるかどうかを指定します。BooleanPropertysnapToTicksProperty()Sliderのvalueを常に目盛に合せるかどうかを示します。BooleanPropertyvalueChangingProperty()trueの場合、このSliderの現在の値を変更していることを示します。DoublePropertyvalueProperty()このSliderで表される現在の値。-
クラス javafx.scene.control.Controlで宣言されたメソッド
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, contextMenuProperty, createDefaultSkin, getContextMenu, getCssMetaData, getInitialFocusTraversable, getTooltip, isResizable, setContextMenu, setTooltip, skinProperty, tooltipProperty
-
クラス 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, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, 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, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, 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, lookup, 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, queryAccessibleAttribute, 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, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
-
クラス javafx.scene.Parentで宣言されたメソッド
getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
-
クラス javafx.scene.layout.Regionで宣言されたメソッド
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computePrefHeight, computePrefWidth, 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, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
-
インタフェース javafx.css.Styleableで宣言されたメソッド
getStyleableNode, getStyleClass
-
-
-
-
プロパティの詳細
-
max
public final DoubleProperty maxProperty
このSliderで表される最大値。minを超える値である必要があります。- 関連項目:
getMax()、setMax(double)
-
min
public final DoubleProperty minProperty
このSliderで表される最小値。max未満の値である必要があります。- 関連項目:
getMin()、setMin(double)
-
value
public final DoubleProperty valueProperty
このSliderで表される現在の値。 この値は、常にminからmaxまでの間にある必要があります。minまたはmaxが変更されたり、これ自体が変更されたために範囲外になる場合は、常に有効になるように固定されます。- 関連項目:
getValue()、setValue(double)
-
valueChanging
public final BooleanProperty valueChangingProperty
trueの場合、このSliderの現在の値を変更していることを示します。 値が変更されたことを通知します。 値が計算されると、falseにリセットされます。
-
orientation
public final ObjectProperty<Orientation> orientationProperty
Sliderの向きに水平または垂直を指定できます。
-
showTickLabels
public final BooleanProperty showTickLabelsProperty
目盛のラベルを表示する必要があることを示します。 通常、Skin実装は、showTickMarksもtrueである場合にのみラベルを表示します。
-
showTickMarks
public final BooleanProperty showTickMarksProperty
Skin実装が目盛を表示する必要があるかどうかを指定します。
-
majorTickUnit
public final DoubleProperty majorTickUnitProperty
大目盛の間の単位距離。 たとえば、minが0でmaxが100、majorTickUnitが25の場合は、5つの目盛(位置0、位置25、位置50、位置75、最後は位置100)があります。この値は正の整数で、スパン未満の値にする必要があります。 範囲外の値を指定することは、基本的には目盛を無効にすることと同じです。
-
minorTickCount
public final IntegerProperty minorTickCountProperty
2つの大目盛の間に配置する小目盛の数。 この数は、正の整数またはゼロにする必要があります。 範囲外の値を指定すると、値がゼロの場合と同様に、小目盛が無効になります。
-
snapToTicks
public final BooleanProperty snapToTicksProperty
Sliderのvalueを常に目盛に合せるかどうかを示します。 これは、目盛が表示されない場合でも有効です。
-
labelFormatter
public final ObjectProperty<StringConverter<Double>> labelFormatterProperty
-
blockIncrement
public final DoubleProperty blockIncrementProperty
スライダのトラックがクリックされた場合にSliderを調整する量。 これは、キーを使用してスライダ位置を操作する場合に使用されます。snapToTicksがtrueの場合、調整された値に最も近い目盛が使用されます。
-
-
メソッドの詳細
-
setMax
public final void setMax(double value)
プロパティmaxの値を設定します。- プロパティの説明:
- このSliderで表される最大値。
minを超える値である必要があります。
-
getMax
public final double getMax()
プロパティmaxの値を取得します。- プロパティの説明:
- このSliderで表される最大値。
minを超える値である必要があります。
-
maxProperty
public final DoubleProperty maxProperty()
このSliderで表される最大値。minを超える値である必要があります。- 関連項目:
getMax()、setMax(double)
-
setMin
public final void setMin(double value)
プロパティminの値を設定します。- プロパティの説明:
- このSliderで表される最小値。
max未満の値である必要があります。
-
getMin
public final double getMin()
プロパティminの値を取得します。- プロパティの説明:
- このSliderで表される最小値。
max未満の値である必要があります。
-
minProperty
public final DoubleProperty minProperty()
このSliderで表される最小値。max未満の値である必要があります。- 関連項目:
getMin()、setMin(double)
-
setValue
public final void setValue(double value)
プロパティvalueの値を設定します。
-
getValue
public final double getValue()
プロパティvalueの値を取得します。
-
valueProperty
public final DoubleProperty valueProperty()
このSliderで表される現在の値。 この値は、常にminからmaxまでの間にある必要があります。minまたはmaxが変更されたり、これ自体が変更されたために範囲外になる場合は、常に有効になるように固定されます。- 関連項目:
getValue()、setValue(double)
-
setValueChanging
public final void setValueChanging(boolean value)
プロパティvalueChangingの値を設定します。- プロパティの説明:
- trueの場合、このSliderの現在の値を変更していることを示します。 値が変更されたことを通知します。 値が計算されると、falseにリセットされます。
-
isValueChanging
public final boolean isValueChanging()
プロパティvalueChangingの値を取得します。- プロパティの説明:
- trueの場合、このSliderの現在の値を変更していることを示します。 値が変更されたことを通知します。 値が計算されると、falseにリセットされます。
-
valueChangingProperty
public final BooleanProperty valueChangingProperty()
trueの場合、このSliderの現在の値を変更していることを示します。 値が変更されたことを通知します。 値が計算されると、falseにリセットされます。
-
setOrientation
public final void setOrientation(Orientation value)
プロパティorientationの値を設定します。- プロパティの説明:
Sliderの向きに水平または垂直を指定できます。
-
getOrientation
public final Orientation getOrientation()
プロパティorientationの値を取得します。- プロパティの説明:
Sliderの向きに水平または垂直を指定できます。
-
orientationProperty
public final ObjectProperty<Orientation> orientationProperty()
Sliderの向きに水平または垂直を指定できます。
-
setShowTickLabels
public final void setShowTickLabels(boolean value)
プロパティshowTickLabelsの値を設定します。- プロパティの説明:
- 目盛のラベルを表示する必要があることを示します。 通常、
Skin実装は、showTickMarksもtrueである場合にのみラベルを表示します。
-
isShowTickLabels
public final boolean isShowTickLabels()
プロパティshowTickLabelsの値を取得します。- プロパティの説明:
- 目盛のラベルを表示する必要があることを示します。 通常、
Skin実装は、showTickMarksもtrueである場合にのみラベルを表示します。
-
showTickLabelsProperty
public final BooleanProperty showTickLabelsProperty()
目盛のラベルを表示する必要があることを示します。 通常、Skin実装は、showTickMarksもtrueである場合にのみラベルを表示します。
-
setShowTickMarks
public final void setShowTickMarks(boolean value)
プロパティshowTickMarksの値を設定します。- プロパティの説明:
Skin実装が目盛を表示する必要があるかどうかを指定します。
-
isShowTickMarks
public final boolean isShowTickMarks()
プロパティshowTickMarksの値を取得します。- プロパティの説明:
Skin実装が目盛を表示する必要があるかどうかを指定します。
-
showTickMarksProperty
public final BooleanProperty showTickMarksProperty()
Skin実装が目盛を表示する必要があるかどうかを指定します。
-
setMajorTickUnit
public final void setMajorTickUnit(double value)
プロパティmajorTickUnitの値を設定します。- プロパティの説明:
- 大目盛の間の単位距離。 たとえば、
minが0でmaxが100、majorTickUnitが25の場合は、5つの目盛(位置0、位置25、位置50、位置75、最後は位置100)があります。この値は正の整数で、スパン未満の値にする必要があります。 範囲外の値を指定することは、基本的には目盛を無効にすることと同じです。
-
getMajorTickUnit
public final double getMajorTickUnit()
プロパティmajorTickUnitの値を取得します。- プロパティの説明:
- 大目盛の間の単位距離。 たとえば、
minが0でmaxが100、majorTickUnitが25の場合は、5つの目盛(位置0、位置25、位置50、位置75、最後は位置100)があります。この値は正の整数で、スパン未満の値にする必要があります。 範囲外の値を指定することは、基本的には目盛を無効にすることと同じです。
-
majorTickUnitProperty
public final DoubleProperty majorTickUnitProperty()
大目盛の間の単位距離。 たとえば、minが0でmaxが100、majorTickUnitが25の場合は、5つの目盛(位置0、位置25、位置50、位置75、最後は位置100)があります。この値は正の整数で、スパン未満の値にする必要があります。 範囲外の値を指定することは、基本的には目盛を無効にすることと同じです。
-
setMinorTickCount
public final void setMinorTickCount(int value)
プロパティminorTickCountの値を設定します。- プロパティの説明:
- 2つの大目盛の間に配置する小目盛の数。 この数は、正の整数またはゼロにする必要があります。 範囲外の値を指定すると、値がゼロの場合と同様に、小目盛が無効になります。
-
getMinorTickCount
public final int getMinorTickCount()
プロパティminorTickCountの値を取得します。- プロパティの説明:
- 2つの大目盛の間に配置する小目盛の数。 この数は、正の整数またはゼロにする必要があります。 範囲外の値を指定すると、値がゼロの場合と同様に、小目盛が無効になります。
-
minorTickCountProperty
public final IntegerProperty minorTickCountProperty()
2つの大目盛の間に配置する小目盛の数。 この数は、正の整数またはゼロにする必要があります。 範囲外の値を指定すると、値がゼロの場合と同様に、小目盛が無効になります。
-
setSnapToTicks
public final void setSnapToTicks(boolean value)
プロパティsnapToTicksの値を設定します。- プロパティの説明:
Sliderのvalueを常に目盛に合せるかどうかを示します。 これは、目盛が表示されない場合でも有効です。
-
isSnapToTicks
public final boolean isSnapToTicks()
プロパティsnapToTicksの値を取得します。- プロパティの説明:
Sliderのvalueを常に目盛に合せるかどうかを示します。 これは、目盛が表示されない場合でも有効です。
-
snapToTicksProperty
public final BooleanProperty snapToTicksProperty()
Sliderのvalueを常に目盛に合せるかどうかを示します。 これは、目盛が表示されない場合でも有効です。
-
setLabelFormatter
public final void setLabelFormatter(StringConverter<Double> value)
プロパティlabelFormatterの値を設定します。- プロパティの説明:
- 大目盛のラベルをフォーマットするための関数。 大目盛を表す数が関数に渡されます。 この関数が指定されていない場合、デフォルトの関数が
Skin実装で使用されます。
-
getLabelFormatter
public final StringConverter<Double> getLabelFormatter()
プロパティlabelFormatterの値を取得します。- プロパティの説明:
- 大目盛のラベルをフォーマットするための関数。 大目盛を表す数が関数に渡されます。 この関数が指定されていない場合、デフォルトの関数が
Skin実装で使用されます。
-
labelFormatterProperty
public final ObjectProperty<StringConverter<Double>> labelFormatterProperty()
-
setBlockIncrement
public final void setBlockIncrement(double value)
プロパティblockIncrementの値を設定します。- プロパティの説明:
- スライダのトラックがクリックされた場合にSliderを調整する量。 これは、キーを使用してスライダ位置を操作する場合に使用されます。
snapToTicksがtrueの場合、調整された値に最も近い目盛が使用されます。
-
getBlockIncrement
public final double getBlockIncrement()
プロパティblockIncrementの値を取得します。- プロパティの説明:
- スライダのトラックがクリックされた場合にSliderを調整する量。 これは、キーを使用してスライダ位置を操作する場合に使用されます。
snapToTicksがtrueの場合、調整された値に最も近い目盛が使用されます。
-
blockIncrementProperty
public final DoubleProperty blockIncrementProperty()
スライダのトラックがクリックされた場合にSliderを調整する量。 これは、キーを使用してスライダ位置を操作する場合に使用されます。snapToTicksがtrueの場合、調整された値に最も近い目盛が使用されます。
-
adjustValue
public void adjustValue(double newValue)
newValueに合せてvalueを調整します。valueは、minからmaxまでの間の実際の量です。 この関数ではsnapToTicksも考慮されることがadjustValueとsetValue間の主な違いとなります。 また、値がminとmaxの間の有効な数値であることが保証されます。注意: この機能は、主に新しいスキンまたはビヘイビアを実装する者が専門家によって使用されることを意図しています。 開発者や設計者がこの機能に直接アクセスするのは一般的ではありません。- パラメータ:
newValue- 新しい調整値
-
increment
public void increment()
maxを上限として、値をblockIncrementずつ増やします。maxがmin以下の場合、このメソッドは何も行いません。
-
decrement
public void decrement()
maxを上限として、値をblockIncrementずつ減らします。maxがmin以下の場合、このメソッドは何も行いません。
-
getClassCssMetaData
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
- 戻り値:
- このクラスに関連付けられたCssMetaData。スーパークラスのCssMetaDataを含むことがあります。
- 導入されたバージョン:
- JavaFX 8.0
-
getControlCssMetaData
protected List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
- オーバーライド:
getControlCssMetaData、クラス:Control- 戻り値:
- コントロールのCSSでスタイル設定可能なプロパティの変更不可能なリスト
- 導入されたバージョン:
- JavaFX 8.0
-
-