类 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>
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static enum 
     
    private static class 
     
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
     
     
     
    private double
     
    private javafx.geometry.Orientation
     
    private double
     
    private javafx.geometry.Point2D
     
    private javafx.scene.layout.StackPane
     
    private double
     
    private double
     
    private javafx.util.Callback<Void,RangeSliderSkin.FocusedChild>
    State and Functions *
    private boolean
     
    private double
     
    private double
     
    private javafx.scene.chart.NumberAxis
    Track if slider is vertical/horizontal and cause re layout
    private javafx.scene.layout.StackPane
     
    private double
     
    private double
     
    private final double
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    private double
    clamp(double min, double value, double max)
     
    private double
     
    protected double
    computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    private void
     
    private void
     
    private void
    end()
     
    private void
    focusNextSibling(javafx.scene.Node node)
     
    private void
    focusPreviousSibling(javafx.scene.Node node)
     
    private double
     
    private void
    highThumbDragged(javafx.scene.input.MouseEvent e, double position)
     
    private void
    highThumbPressed(javafx.scene.input.MouseEvent e, double position)
     
    private void
    highThumbReleased(javafx.scene.input.MouseEvent e)
     
    (专用程序包) void
     
    private void
     
    private void
     
    private void
     
    private void
     
    private boolean
     
    protected void
    layoutChildren(double x, double y, double w, double h)
     
    void
    lowThumbDragged(javafx.scene.input.MouseEvent e, double position)
    Handles dragging the low-value thumb to a new track position.
    void
    lowThumbPressed(javafx.scene.input.MouseEvent e, double position)
    Handles pressing the low-value thumb before a drag starts.
    void
    lowThumbReleased(javafx.scene.input.MouseEvent e)
    When lowThumb is released lowValueChanging should be set to false.
    private double
     
    private void
    moveRange(double position)
     
    private double
    nearest(double less, double value, double more)
     
    private void
    Called when ever either min, max or highValue changes, so highthumb's layoutX, Y is recomputed.
    private void
    Called when ever either min, max or lowValue changes, so lowthumb's layoutX, Y is recomputed.
    private void
    rtl(RangeSlider node, Runnable rtlMethod, Runnable nonRtlMethod)
     
    void
     
    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.
    private double
    snapValueToTicks(double d)
     
    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.
    void
    trackRelease(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 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.
      参数:
      e - the mouse event that initiated the track press
      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)
      Handles pressing the low-value thumb before a drag starts.
      参数:
      e - the mouse event that pressed the low thumb
      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)
      Handles dragging the low-value thumb to a new track position.
      参数:
      e - the mouse event that dragged the low thumb
      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)