- java.lang.Object
-
- com.sun.javafx.scene.control.behavior.BehaviorBase<RangeSlider>
-
- impl.org.controlsfx.behavior.RangeSliderBehavior
-
public class RangeSliderBehavior extends com.sun.javafx.scene.control.behavior.BehaviorBase<RangeSlider>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RangeSliderBehavior.FocusedChild
-
Constructor Summary
Constructors Constructor Description RangeSliderBehavior(RangeSlider slider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
confirmRange()
com.sun.javafx.scene.control.inputmap.InputMap<RangeSlider>
getInputMap()
void
highThumbDragged(MouseEvent e, double position)
void
highThumbPressed(MouseEvent e, double position)
void
highThumbReleased(MouseEvent e)
void
lowThumbDragged(MouseEvent e, double position)
void
lowThumbPressed(MouseEvent e, double position)
void
lowThumbReleased(MouseEvent e)
When lowThumb is released lowValueChanging should be set to false.void
moveRange(double position)
void
setSelectedValue(Callback<Void,RangeSliderBehavior.FocusedChild> c)
void
trackPress(MouseEvent e, double position)
Invoked by the RangeSliderSkin
implementation whenever a mouse press occurs on the "track" of the slider.void
trackRelease(MouseEvent e, double position)
-
-
-
Constructor Detail
-
RangeSliderBehavior
public RangeSliderBehavior(RangeSlider slider)
-
-
Method Detail
-
setSelectedValue
public void setSelectedValue(Callback<Void,RangeSliderBehavior.FocusedChild> c)
-
getInputMap
public com.sun.javafx.scene.control.inputmap.InputMap<RangeSlider> getInputMap()
- Specified by:
getInputMap
in classcom.sun.javafx.scene.control.behavior.BehaviorBase<RangeSlider>
-
trackPress
public void trackPress(MouseEvent e, double position)
Invoked by the RangeSliderSkin
implementation whenever a mouse press occurs on the "track" of the slider. This will cause the thumb to be moved by some amount.- Parameters:
position
- The mouse position on track with 0.0 being beginning of track and 1.0 being the end
-
trackRelease
public void trackRelease(MouseEvent e, double position)
-
lowThumbPressed
public void lowThumbPressed(MouseEvent e, double position)
- Parameters:
position
- The mouse position on track with 0.0 being beginning of track and 1.0 being the end
-
lowThumbDragged
public void lowThumbDragged(MouseEvent e, double position)
- Parameters:
position
- The mouse position on track with 0.0 being beginning of track and 1.0 being the end
-
lowThumbReleased
public void lowThumbReleased(MouseEvent e)
When lowThumb is released lowValueChanging should be set to false.
-
highThumbReleased
public void highThumbReleased(MouseEvent e)
-
highThumbPressed
public void highThumbPressed(MouseEvent e, double position)
-
highThumbDragged
public void highThumbDragged(MouseEvent e, double position)
-
moveRange
public void moveRange(double position)
-
confirmRange
public void confirmRange()
-
-