java.lang.Object
javafx.scene.control.SkinBase<RangeSlider>
com.tlcsdm.core.javafx.control.skin.RangeSliderSkin
- 所有已实现的接口:
javafx.scene.control.Skin<RangeSlider>
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private RangeSliderSkin.FocusedChildprivate RangeSliderSkin.ThumbPaneprivate RangeSliderSkin.ThumbPaneprivate doubleprivate javafx.geometry.Orientationprivate doubleprivate javafx.geometry.Point2Dprivate javafx.scene.layout.StackPaneprivate doubleprivate doubleprivate javafx.util.Callback<Void, RangeSliderSkin.FocusedChild> State and Functions *private booleanprivate doubleprivate doubleprivate javafx.scene.chart.NumberAxisTrack if slider is vertical/horizontal and cause re layoutprivate javafx.scene.layout.StackPaneprivate doubleprivate doubleprivate final double -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private doubleclamp(double min, double value, double max) private doubleprotected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) private voidprivate voidprivate voidend()private voidfocusNextSibling(javafx.scene.Node node) private voidfocusPreviousSibling(javafx.scene.Node node) private doubleprivate voidhighThumbDragged(javafx.scene.input.MouseEvent e, double position) private voidhighThumbPressed(javafx.scene.input.MouseEvent e, double position) private voidhighThumbReleased(javafx.scene.input.MouseEvent e) (专用程序包) voidhome()private voidprivate voidprivate voidprivate voidprivate booleanprotected voidlayoutChildren(double x, double y, double w, double h) voidlowThumbDragged(javafx.scene.input.MouseEvent e, double position) voidlowThumbPressed(javafx.scene.input.MouseEvent e, double position) voidlowThumbReleased(javafx.scene.input.MouseEvent e) When lowThumb is released lowValueChanging should be set to false.private doubleprivate voidmoveRange(double position) private doublenearest(double less, double value, double more) private voidCalled when ever either min, max or highValue changes, so highthumb's layoutX, Y is recomputed.private voidCalled when ever either min, max or lowValue changes, so lowthumb's layoutX, Y is recomputed.private voidrtl(RangeSlider node, Runnable rtlMethod, Runnable nonRtlMethod) voidsetSelectedValue(javafx.util.Callback<Void, RangeSliderSkin.FocusedChild> c) private voidsetShowTickMarks(boolean ticksVisible, boolean labelsVisible) When ticks or labels are changing of visibility, we compute the new visibility and add the necessary objets.private doublesnapValueToTicks(double d) private voidtrackPress(javafx.scene.input.MouseEvent e, double position) Invoked by the RangeSliderSkinimplementation whenever a mouse press occurs on the "track" of the slider.voidtrackRelease(javafx.scene.input.MouseEvent e, double position) 从类继承的方法 javafx.scene.control.SkinBase
computeBaselineOffset, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 javafx.scene.control.Skin
install
-
字段详细资料
-
tickLine
private javafx.scene.chart.NumberAxis tickLineTrack if slider is vertical/horizontal and cause re layout -
trackToTickGap
private final double trackToTickGap- 另请参阅:
-
showTickMarks
private boolean showTickMarks -
thumbWidth
private double thumbWidth -
thumbHeight
private double thumbHeight -
orientation
private javafx.geometry.Orientation orientation -
track
private javafx.scene.layout.StackPane track -
trackStart
private double trackStart -
trackLength
private double trackLength -
lowThumbPos
private double lowThumbPos -
rangeEnd
private double rangeEnd -
rangeStart
private double rangeStart -
lowThumb
-
highThumb
-
rangeBar
private javafx.scene.layout.StackPane rangeBar -
preDragPos
private double preDragPos -
preDragThumbPoint
private javafx.geometry.Point2D preDragThumbPoint -
currentFocus
-
selectedValue
State and Functions *
-
-
构造器详细资料
-
RangeSliderSkin
-
-
方法详细资料
-
initFirstThumb
private void initFirstThumb() -
initSecondThumb
private void initSecondThumb() -
initRangeBar
private void initRangeBar() -
setShowTickMarks
private void setShowTickMarks(boolean ticksVisible, boolean labelsVisible) When ticks or labels are changing of visibility, we compute the new visibility and add the necessary objets. After this method, we must be sure to add the high Thumb and the rangeBar.- 参数:
ticksVisible-labelsVisible-
-
getMaxMinusMinNoZero
private double getMaxMinusMinNoZero()- 返回:
- the difference between max and min, but if they have the same value, 1 is returned instead of 0 because otherwise the division where it can be used will return Nan.
-
positionLowThumb
private void positionLowThumb()Called when ever either min, max or lowValue changes, so lowthumb's layoutX, Y is recomputed. -
positionHighThumb
private void positionHighThumb()Called when ever either min, max or highValue changes, so highthumb's layoutX, Y is recomputed. -
layoutChildren
protected void layoutChildren(double x, double y, double w, double h) - 覆盖:
layoutChildren在类中javafx.scene.control.SkinBase<RangeSlider>
-
minTrackLength
private double minTrackLength() -
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - 覆盖:
computeMinWidth在类中javafx.scene.control.SkinBase<RangeSlider>
-
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - 覆盖:
computeMinHeight在类中javafx.scene.control.SkinBase<RangeSlider>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - 覆盖:
computePrefWidth在类中javafx.scene.control.SkinBase<RangeSlider>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - 覆盖:
computePrefHeight在类中javafx.scene.control.SkinBase<RangeSlider>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - 覆盖:
computeMaxWidth在类中javafx.scene.control.SkinBase<RangeSlider>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - 覆盖:
computeMaxHeight在类中javafx.scene.control.SkinBase<RangeSlider>
-
isHorizontal
private boolean isHorizontal() -
setSelectedValue
-
highThumbReleased
private void highThumbReleased(javafx.scene.input.MouseEvent e) -
highThumbPressed
private void highThumbPressed(javafx.scene.input.MouseEvent e, double position) -
highThumbDragged
private void highThumbDragged(javafx.scene.input.MouseEvent e, double position) -
moveRange
private void moveRange(double position) -
confirmRange
private void confirmRange() -
trackPress
private void trackPress(javafx.scene.input.MouseEvent e, double position) Invoked by the RangeSliderSkinimplementation whenever a mouse press occurs on the "track" of the slider. This will cause the thumb to be moved by some amount.- 参数:
position- The mouse position on track with 0.0 being beginning of track and 1.0 being the end
-
trackRelease
public void trackRelease(javafx.scene.input.MouseEvent e, double position) -
lowThumbPressed
public void lowThumbPressed(javafx.scene.input.MouseEvent e, double position) - 参数:
position- The mouse position on track with 0.0 being beginning of track and 1.0 being the end
-
lowThumbDragged
public void lowThumbDragged(javafx.scene.input.MouseEvent e, double position) - 参数:
position- The mouse position on track with 0.0 being beginning of track and 1.0 being the end
-
lowThumbReleased
public void lowThumbReleased(javafx.scene.input.MouseEvent e) When lowThumb is released lowValueChanging should be set to false. -
home
void home() -
decrementValue
private void decrementValue() -
end
private void end() -
incrementValue
private void incrementValue() -
computeIncrement
private double computeIncrement() -
rtl
-
snapValueToTicks
private double snapValueToTicks(double d) -
focusPreviousSibling
private void focusPreviousSibling(javafx.scene.Node node) -
focusNextSibling
private void focusNextSibling(javafx.scene.Node node) -
clamp
private double clamp(double min, double value, double max) -
nearest
private double nearest(double less, double value, double more)
-