- All Implemented Interfaces:
Styleable,EventTarget,Skinnable
Control rather than Slider, this has been made completely from scratch,
the code is much more clean, documented, and implements many new features.
The thumb and the popup can be changed by setting the corresponding suppliers
(the popup can also be removed by setting a null supplier or by returning null).
You can also specify the extra gap between the popup and the thumb, see popupPaddingProperty(),
and the popup position, see popupSideProperty().
MFXSlider can operate on decimal values too, up to two decimal places. By default it is set to 0,
see decimalPrecisionProperty().
- DEFAULT, the thumb can be moved freely
- SNAP_TO_TICKS, the thumb always snaps to the closest tick (even if they're hidden)
Note that the snapping is ignored if the value is adjusted with the keyboard.
The properties to customize the ticks are: tickUnitProperty(), showMajorTicksProperty(),
showMinorTicksProperty(), showTicksAtEdgesProperty(), minorTicksCountProperty().
Also note that by default (implemented in the skin), the major ticks have two different style classes according to their index position, "tick-even" or "tick-odd", just to add an extra customization.
TheunitIncrementProperty() and alternativeUnitIncrementProperty() properties specify the
value increment on arrow keys press (left/right when slider is Horizontal, up/down when slider is Vertical).
The alternate unit increment is used when Shift or Ctrl are pressed too.
The keyboard behavior can be also disabled by setting enableKeyboardProperty() to false.
animateOnPressProperty().
MFXSlider offers a brand new feature: the progress bar is bidirectional (can be disabled). This means
that if the minimum value is negative the bar will progress on the opposite side to zero.
MFXSlider introduces three new css pseudo classes:
- ":range1", activated when the slider value is contained in any of the ranges specified in here getRanges1()
- ":range2", activated when the slider value is contained in any of the ranges specified in here getRanges2()
- ":range3", activated when the slider value is contained in any of the ranges specified in here getRanges3()
I know this may seem a strange approach, but it is much more flexible and allows for a lot more customization.
WARNING!
If you are changing the min, max, and initial value properties of the slider programmatically be sure
to respect this order, setMin(...), setMax(...), setValue(...).
This is needed for several reasons: min cannot be greater than max otherwise an exception is thrown;
max cannot be lesser than min otherwise an exception is thrown; the slider's value never throws an exception if
it is invalid but rather the value is clamped between the specified min and max values using NumberUtils.clamp(double, double, double).
If you don't respect the order you'll end with an inconsistent state and most likely with a messed layout.
-
Property Summary
PropertiesTypePropertyDescriptionSpecifies the value to add/subtract to the slider's value when an arrow key and Shift or Ctrl are pressed.When pressing on the slider's track the value is adjusted according to the mouse event coordinates.If the slider is set to be bidirectional the progress bar will always start from 0.Specifies the number of decimal places for the slider's value.Specifies if the value can be adjusted with the keyboard or not.Specifies the maximum value the slider can reach.Specifies how many minor ticks should be added between two major ticks.Specifies the minimum value the slider can reach.Specifies the slider's orientation.Specifies the extra gap between the thumb and the popup.Specifies the popup side.Specifies the supplier used to build the slider's popup.Specifies if the major ticks should be displayed or not.Specifies if the minor ticks should be displayed or not.Specifies if the major ticks at the edge of the slider should be displayed or not.Specifies the slider mode.Specifies the supplier used to build the slider's thumb.The value between each major tick mark in data units.Specifies the value to add/subtract to the slider's value when an arrow key is pressed.Specifies the slider's actual value.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties 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, 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 TypeFieldDescriptionprotected final PseudoClassprotected final PseudoClassprotected final PseudoClassFields 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 TypeMethodDescriptionSpecifies the value to add/subtract to the slider's value when an arrow key and Shift or Ctrl are pressed.When pressing on the slider's track the value is adjusted according to the mouse event coordinates.If the slider is set to be bidirectional the progress bar will always start from 0.protected Skin<?>Specifies the number of decimal places for the slider's value.protected voidSets the default popup supplier.protected voidSets the default thumb supplier.Specifies if the value can be adjusted with the keyboard or not.doubleGets the value of the property alternativeUnitIncrement.protected List<CssMetaData<? extends Styleable,?>> static List<CssMetaData<? extends Styleable,?>> intGets the value of the property decimalPrecision.doublegetMax()Gets the value of the property max.doublegetMin()Gets the value of the property min.intGets the value of the property minorTicksCount.Gets the value of the property orientation.doubleGets the value of the property popupPadding.Gets the value of the property popupSide.Gets the value of the property popupSupplier.Returns the first list of ranges.Returns the second list of ranges.Returns the third list of ranges.Gets the value of the property sliderMode.Gets the value of the property thumbSupplier.doubleGets the value of the property tickUnit.doubleGets the value of the property unitIncrement.doublegetValue()Gets the value of the property value.booleanGets the value of the property animateOnPress.booleanGets the value of the property bidirectional.booleanGets the value of the property enableKeyboard.booleanGets the value of the property showMajorTicks.booleanGets the value of the property showMinorTicks.booleanGets the value of the property showTicksAtEdges.Specifies the maximum value the slider can reach.Specifies how many minor ticks should be added between two major ticks.Specifies the minimum value the slider can reach.Specifies the slider's orientation.Specifies the extra gap between the thumb and the popup.Specifies the popup side.Specifies the supplier used to build the slider's popup.voidsetAlternativeUnitIncrement(double alternativeUnitIncrement) Sets the value of the property alternativeUnitIncrement.voidsetAnimateOnPress(boolean animateOnPress) Sets the value of the property animateOnPress.voidsetBidirectional(boolean bidirectional) Sets the value of the property bidirectional.voidsetDecimalPrecision(int decimalPrecision) Sets the value of the property decimalPrecision.voidsetEnableKeyboard(boolean enableKeyboard) Sets the value of the property enableKeyboard.voidsetMax(double max) Sets the value of the property max.voidsetMin(double min) Sets the value of the property min.voidsetMinorTicksCount(int minorTicksCount) Sets the value of the property minorTicksCount.voidsetOrientation(Orientation orientation) Sets the value of the property orientation.voidsetPopupPadding(double popupPadding) Sets the value of the property popupPadding.voidsetPopupSide(SliderEnums.SliderPopupSide popupSide) Sets the value of the property popupSide.voidsetPopupSupplier(Supplier<Region> popupSupplier) Sets the value of the property popupSupplier.voidsetShowMajorTicks(boolean showMajorTicks) Sets the value of the property showMajorTicks.voidsetShowMinorTicks(boolean showMinorTicks) Sets the value of the property showMinorTicks.voidsetShowTicksAtEdges(boolean showTicksAtEdges) Sets the value of the property showTicksAtEdges.voidsetSliderMode(SliderEnums.SliderMode sliderMode) Sets the value of the property sliderMode.voidsetThumbSupplier(Supplier<Node> thumbSupplier) Sets the value of the property thumbSupplier.voidsetTickUnit(double tickUnit) Sets the value of the property tickUnit.voidsetUnitIncrement(double unitIncrement) Sets the value of the property unitIncrement.voidsetValue(double value) Sets the value of the property value.Specifies if the major ticks should be displayed or not.Specifies if the minor ticks should be displayed or not.Specifies if the major ticks at the edge of the slider should be displayed or not.Specifies the slider mode.Specifies the supplier used to build the slider's thumb.The value between each major tick mark in data units.Specifies the value to add/subtract to the slider's value when an arrow key is pressed.Specifies the slider's actual value.Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, 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, 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, getStyleClass, 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, 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, toString, 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
-
min
Specifies the minimum value the slider can reach.- See Also:
-
max
Specifies the maximum value the slider can reach.- See Also:
-
value
Specifies the slider's actual value.- See Also:
-
thumbSupplier
Specifies the supplier used to build the slider's thumb.Attempting to set or return a null value will fallback to the
defaultThumbSupplier().- See Also:
-
popupSupplier
Specifies the supplier used to build the slider's popup.You can also set or return null to remove the popup.
- See Also:
-
popupPadding
Specifies the extra gap between the thumb and the popup.- See Also:
-
decimalPrecision
Specifies the number of decimal places for the slider's value. -
enableKeyboard
Specifies if the value can be adjusted with the keyboard or not.- See Also:
-
sliderMode
Specifies the slider mode. Can be DEFAULT (freely adjust the thumb) or SNAP_TO_TICKS (the thumb will always snap to ticks). -
unitIncrement
Specifies the value to add/subtract to the slider's value when an arrow key is pressed. The arrow keys depend on the slider orientation:- HORIZONTAL: right, left
- VERTICAL: up, down
- See Also:
-
alternativeUnitIncrement
Specifies the value to add/subtract to the slider's value when an arrow key and Shift or Ctrl are pressed. The arrow keys depend on the slider orientation:- HORIZONTAL: right, left
- VERTICAL: up, down
-
tickUnit
The value between each major tick mark in data units.- See Also:
-
showMajorTicks
Specifies if the major ticks should be displayed or not.- See Also:
-
showMinorTicks
Specifies if the minor ticks should be displayed or not.- See Also:
-
showTicksAtEdges
Specifies if the major ticks at the edge of the slider should be displayed or not.The ticks at the edge are those ticks which represent the min and max values.
-
minorTicksCount
Specifies how many minor ticks should be added between two major ticks.- See Also:
-
animateOnPress
When pressing on the slider's track the value is adjusted according to the mouse event coordinates. This property specifies if the progress bar adjustment should be animated or not.- See Also:
-
bidirectional
If the slider is set to be bidirectional the progress bar will always start from 0. When the value is negative the progress bar grows in the opposite direction to 0. This works only if min is negative and max is positive, otherwise this option in ignored during layout. See the warning in the control documentation.- See Also:
-
orientation
Specifies the slider's orientation.- See Also:
-
popupSide
Specifies the popup side.DEFAULT is above for horizontal orientation and left for vertical orientation.
OTHER_SIDE is below for horizontal orientation and right for vertical orientation.
-
-
Field Details
-
RANGE1_PSEUDO_CLASS
-
RANGE2_PSEUDO_CLASS
-
RANGE3_PSEUDO_CLASS
-
-
Constructor Details
-
MFXSlider
public MFXSlider() -
MFXSlider
public MFXSlider(double initialValue) -
MFXSlider
public MFXSlider(double min, double max, double initialValue)
-
-
Method Details
-
defaultThumbSupplier
protected void defaultThumbSupplier()Sets the default thumb supplier. It is basically a StackPane which contains two MFXFontIcons (both are circles). The innermost is the thumb and the outermost is the circle that indicates if the mouse is hover or pressed on the thumb.Note: since the outermost circle is larger that the thumb, the StackPane's layout bounds are set to be at most the thumb's width and height, otherwise it would cause layout and behavior issues.
Also, both the thumb and the other circle are transparent to mouse events as the node returned by the supplier is the StackPane and this is the node that should respond to events.
-
defaultPopupSupplier
protected void defaultPopupSupplier()Sets the default popup supplier. It is basically a VBox which contains a Label for the slider's value and a MFXFontIcon which is the caret. Note: The supplier should also deal with changes ofpopupSideProperty()as the text and the caret should be rotated and positioned accordingly. Also note that the so called "popup" is not really a JavaFX popup but a node (Region to be precise) because this makes handling it's position way easier (with a real popup we must deal with screen coordinates and it's a real pita). -
getMin
public double getMin()Gets the value of the property min.- Property description:
- Specifies the minimum value the slider can reach.
-
minProperty
Specifies the minimum value the slider can reach.- See Also:
-
setMin
public void setMin(double min) Sets the value of the property min.- Property description:
- Specifies the minimum value the slider can reach.
-
getMax
public double getMax()Gets the value of the property max.- Property description:
- Specifies the maximum value the slider can reach.
-
maxProperty
Specifies the maximum value the slider can reach.- See Also:
-
setMax
public void setMax(double max) Sets the value of the property max.- Property description:
- Specifies the maximum value the slider can reach.
-
getValue
public double getValue()Gets the value of the property value.- Property description:
- Specifies the slider's actual value.
-
valueProperty
Specifies the slider's actual value.- See Also:
-
setValue
public void setValue(double value) Sets the value of the property value.- Property description:
- Specifies the slider's actual value.
-
getThumbSupplier
Gets the value of the property thumbSupplier.- Property description:
- Specifies the supplier used to build the slider's thumb.
Attempting to set or return a null value will fallback to the
defaultThumbSupplier().
-
thumbSupplierProperty
Specifies the supplier used to build the slider's thumb.Attempting to set or return a null value will fallback to the
defaultThumbSupplier().- See Also:
-
setThumbSupplier
Sets the value of the property thumbSupplier.- Property description:
- Specifies the supplier used to build the slider's thumb.
Attempting to set or return a null value will fallback to the
defaultThumbSupplier().
-
getPopupSupplier
Gets the value of the property popupSupplier.- Property description:
- Specifies the supplier used to build the slider's popup.
You can also set or return null to remove the popup.
-
popupSupplierProperty
Specifies the supplier used to build the slider's popup.You can also set or return null to remove the popup.
- See Also:
-
setPopupSupplier
Sets the value of the property popupSupplier.- Property description:
- Specifies the supplier used to build the slider's popup.
You can also set or return null to remove the popup.
-
getPopupPadding
public double getPopupPadding()Gets the value of the property popupPadding.- Property description:
- Specifies the extra gap between the thumb and the popup.
-
popupPaddingProperty
Specifies the extra gap between the thumb and the popup.- See Also:
-
setPopupPadding
public void setPopupPadding(double popupPadding) Sets the value of the property popupPadding.- Property description:
- Specifies the extra gap between the thumb and the popup.
-
getDecimalPrecision
public int getDecimalPrecision()Gets the value of the property decimalPrecision.- Property description:
- Specifies the number of decimal places for the slider's value.
-
decimalPrecisionProperty
Specifies the number of decimal places for the slider's value. -
setDecimalPrecision
public void setDecimalPrecision(int decimalPrecision) Sets the value of the property decimalPrecision.- Property description:
- Specifies the number of decimal places for the slider's value.
-
isEnableKeyboard
public boolean isEnableKeyboard()Gets the value of the property enableKeyboard.- Property description:
- Specifies if the value can be adjusted with the keyboard or not.
-
enableKeyboardProperty
Specifies if the value can be adjusted with the keyboard or not.- See Also:
-
setEnableKeyboard
public void setEnableKeyboard(boolean enableKeyboard) Sets the value of the property enableKeyboard.- Property description:
- Specifies if the value can be adjusted with the keyboard or not.
-
getRanges1
Returns the first list of ranges. -
getRanges2
Returns the second list of ranges. -
getRanges3
Returns the third list of ranges. -
getSliderMode
Gets the value of the property sliderMode.- Property description:
- Specifies the slider mode. Can be DEFAULT (freely adjust the thumb) or SNAP_TO_TICKS (the thumb will always snap to ticks).
-
sliderModeProperty
Specifies the slider mode. Can be DEFAULT (freely adjust the thumb) or SNAP_TO_TICKS (the thumb will always snap to ticks). -
setSliderMode
Sets the value of the property sliderMode.- Property description:
- Specifies the slider mode. Can be DEFAULT (freely adjust the thumb) or SNAP_TO_TICKS (the thumb will always snap to ticks).
-
getUnitIncrement
public double getUnitIncrement()Gets the value of the property unitIncrement.- Property description:
- Specifies the value to add/subtract to the slider's value when an arrow key is pressed.
The arrow keys depend on the slider orientation:
- HORIZONTAL: right, left
- VERTICAL: up, down
-
unitIncrementProperty
Specifies the value to add/subtract to the slider's value when an arrow key is pressed. The arrow keys depend on the slider orientation:- HORIZONTAL: right, left
- VERTICAL: up, down
- See Also:
-
setUnitIncrement
public void setUnitIncrement(double unitIncrement) Sets the value of the property unitIncrement.- Property description:
- Specifies the value to add/subtract to the slider's value when an arrow key is pressed.
The arrow keys depend on the slider orientation:
- HORIZONTAL: right, left
- VERTICAL: up, down
-
getAlternativeUnitIncrement
public double getAlternativeUnitIncrement()Gets the value of the property alternativeUnitIncrement.- Property description:
- Specifies the value to add/subtract to the slider's value when an arrow key and Shift or Ctrl are pressed.
The arrow keys depend on the slider orientation:
- HORIZONTAL: right, left
- VERTICAL: up, down
-
alternativeUnitIncrementProperty
Specifies the value to add/subtract to the slider's value when an arrow key and Shift or Ctrl are pressed. The arrow keys depend on the slider orientation:- HORIZONTAL: right, left
- VERTICAL: up, down
-
setAlternativeUnitIncrement
public void setAlternativeUnitIncrement(double alternativeUnitIncrement) Sets the value of the property alternativeUnitIncrement.- Property description:
- Specifies the value to add/subtract to the slider's value when an arrow key and Shift or Ctrl are pressed.
The arrow keys depend on the slider orientation:
- HORIZONTAL: right, left
- VERTICAL: up, down
-
getTickUnit
public double getTickUnit()Gets the value of the property tickUnit.- Property description:
- The value between each major tick mark in data units.
-
tickUnitProperty
The value between each major tick mark in data units.- See Also:
-
setTickUnit
public void setTickUnit(double tickUnit) Sets the value of the property tickUnit.- Property description:
- The value between each major tick mark in data units.
-
isShowMajorTicks
public boolean isShowMajorTicks()Gets the value of the property showMajorTicks.- Property description:
- Specifies if the major ticks should be displayed or not.
-
showMajorTicksProperty
Specifies if the major ticks should be displayed or not.- See Also:
-
setShowMajorTicks
public void setShowMajorTicks(boolean showMajorTicks) Sets the value of the property showMajorTicks.- Property description:
- Specifies if the major ticks should be displayed or not.
-
isShowMinorTicks
public boolean isShowMinorTicks()Gets the value of the property showMinorTicks.- Property description:
- Specifies if the minor ticks should be displayed or not.
-
showMinorTicksProperty
Specifies if the minor ticks should be displayed or not.- See Also:
-
setShowMinorTicks
public void setShowMinorTicks(boolean showMinorTicks) Sets the value of the property showMinorTicks.- Property description:
- Specifies if the minor ticks should be displayed or not.
-
isShowTicksAtEdges
public boolean isShowTicksAtEdges()Gets the value of the property showTicksAtEdges.- Property description:
- Specifies if the major ticks at the edge of the slider should be displayed or not.
The ticks at the edge are those ticks which represent the min and max values.
-
showTicksAtEdgesProperty
Specifies if the major ticks at the edge of the slider should be displayed or not.The ticks at the edge are those ticks which represent the min and max values.
-
setShowTicksAtEdges
public void setShowTicksAtEdges(boolean showTicksAtEdges) Sets the value of the property showTicksAtEdges.- Property description:
- Specifies if the major ticks at the edge of the slider should be displayed or not.
The ticks at the edge are those ticks which represent the min and max values.
-
getMinorTicksCount
public int getMinorTicksCount()Gets the value of the property minorTicksCount.- Property description:
- Specifies how many minor ticks should be added between two major ticks.
-
minorTicksCountProperty
Specifies how many minor ticks should be added between two major ticks.- See Also:
-
setMinorTicksCount
public void setMinorTicksCount(int minorTicksCount) Sets the value of the property minorTicksCount.- Property description:
- Specifies how many minor ticks should be added between two major ticks.
-
isAnimateOnPress
public boolean isAnimateOnPress()Gets the value of the property animateOnPress.- Property description:
- When pressing on the slider's track the value is adjusted according to the mouse event coordinates. This property specifies if the progress bar adjustment should be animated or not.
-
animateOnPressProperty
When pressing on the slider's track the value is adjusted according to the mouse event coordinates. This property specifies if the progress bar adjustment should be animated or not.- See Also:
-
setAnimateOnPress
public void setAnimateOnPress(boolean animateOnPress) Sets the value of the property animateOnPress.- Property description:
- When pressing on the slider's track the value is adjusted according to the mouse event coordinates. This property specifies if the progress bar adjustment should be animated or not.
-
isBidirectional
public boolean isBidirectional()Gets the value of the property bidirectional.- Property description:
- If the slider is set to be bidirectional the progress bar will always start from 0. When the value is negative the progress bar grows in the opposite direction to 0. This works only if min is negative and max is positive, otherwise this option in ignored during layout. See the warning in the control documentation.
-
bidirectionalProperty
If the slider is set to be bidirectional the progress bar will always start from 0. When the value is negative the progress bar grows in the opposite direction to 0. This works only if min is negative and max is positive, otherwise this option in ignored during layout. See the warning in the control documentation.- See Also:
-
setBidirectional
public void setBidirectional(boolean bidirectional) Sets the value of the property bidirectional.- Property description:
- If the slider is set to be bidirectional the progress bar will always start from 0. When the value is negative the progress bar grows in the opposite direction to 0. This works only if min is negative and max is positive, otherwise this option in ignored during layout. See the warning in the control documentation.
-
getOrientation
Gets the value of the property orientation.- Property description:
- Specifies the slider's orientation.
-
orientationProperty
Specifies the slider's orientation.- See Also:
-
setOrientation
Sets the value of the property orientation.- Property description:
- Specifies the slider's orientation.
-
getPopupSide
Gets the value of the property popupSide.- Property description:
- Specifies the popup side.
DEFAULT is above for horizontal orientation and left for vertical orientation.
OTHER_SIDE is below for horizontal orientation and right for vertical orientation.
-
popupSideProperty
Specifies the popup side.DEFAULT is above for horizontal orientation and left for vertical orientation.
OTHER_SIDE is below for horizontal orientation and right for vertical orientation.
-
setPopupSide
Sets the value of the property popupSide.- Property description:
- Specifies the popup side.
DEFAULT is above for horizontal orientation and left for vertical orientation.
OTHER_SIDE is below for horizontal orientation and right for vertical orientation.
-
getControlCssMetaDataList
-
createDefaultSkin
- Overrides:
createDefaultSkinin classControl
-
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classControl
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheetin classRegion
-