类 RangeSliderSkin

java.lang.Object
javafx.scene.control.SkinBase<RangeSlider>
com.tlcsdm.core.javafx.control.skin.RangeSliderSkin
所有已实现的接口:
javafx.scene.control.Skin<RangeSlider>

public class RangeSliderSkin extends javafx.scene.control.SkinBase<RangeSlider>
  • 字段详细资料

    • tickLine

      private javafx.scene.chart.NumberAxis tickLine
      Track 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

      private RangeSliderSkin.ThumbPane lowThumb
    • highThumb

      private RangeSliderSkin.ThumbPane highThumb
    • rangeBar

      private javafx.scene.layout.StackPane rangeBar
    • preDragPos

      private double preDragPos
    • preDragThumbPoint

      private javafx.geometry.Point2D preDragThumbPoint
    • currentFocus

      private RangeSliderSkin.FocusedChild currentFocus
    • selectedValue

      private javafx.util.Callback<Void,RangeSliderSkin.FocusedChild> selectedValue
      State and Functions *
  • 构造器详细资料

    • RangeSliderSkin

      public RangeSliderSkin(RangeSlider rangeSlider)
  • 方法详细资料

    • 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

      public void setSelectedValue(javafx.util.Callback<Void,RangeSliderSkin.FocusedChild> c)
    • 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 RangeSlider Skin implementation 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

      private void rtl(RangeSlider node, Runnable rtlMethod, Runnable nonRtlMethod)
    • 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)