Top Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public Class SliderBehavior

extends BehaviorBase<Slider>
Class Inheritance
Imports
javafx.geometry.Orientation, javafx.scene.control.Skin, .Slider, com.sun.javafx.scene.control.inputmap.InputMap, javafx.scene.input.KeyEvent, .MouseEvent, com.sun.javafx.util.Utils

Field Summary

Modifier and TypeField and Description
private final InputMap<Slider>
private TwoLevelFocusBehavior

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv double
pack-priv void
public void
pack-priv void
end()

public InputMap<Slider>
pack-priv void
home()

pack-priv void
public void
thumbDragged(MouseEvent e, double
The mouse position on track with 0.0 being beginning of track and 1.0 being the end
position
)

public void
thumbPressed(MouseEvent e, double
The mouse position on track with 0.0 being beginning of track and 1.0 being the end
position
)

public void
thumbReleased(MouseEvent e)

When thumb is released valueChanging should be set to false.

public void
trackPress(MouseEvent e, double
The mouse position on track with 0.0 being beginning of track and 1.0 being the end
position
)

Invoked by the Slider Skin implementation whenever a mouse press occurs on the "track" of the slider.

Inherited from com.sun.javafx.scene.control.behavior.BehaviorBase:
addDefaultChildMapaddDefaultMappingaddDefaultMappingaddDefaultMappingcreateInputMapgetNodeisRTLremoveMappingrtlrtl

Field Detail

sliderInputMapback to summary
private final InputMap<Slider> sliderInputMap
tlFocusback to summary
private TwoLevelFocusBehavior tlFocus

Constructor Detail

SliderBehaviorback to summary
public SliderBehavior(Slider slider)

Method Detail

computeIncrementback to summary
pack-priv double computeIncrement()
decrementValueback to summary
pack-priv void decrementValue()
disposeback to summary
public void dispose()

Overrides com.sun.javafx.scene.control.behavior.BehaviorBase.dispose.

Annotations
@Override
endback to summary
pack-priv void end()
getInputMapback to summary
public InputMap<Slider> getInputMap()

Implements abstract com.sun.javafx.scene.control.behavior.BehaviorBase.getInputMap.

Annotations
@Override
homeback to summary
pack-priv void home()
incrementValueback to summary
pack-priv void incrementValue()
thumbDraggedback to summary
public void thumbDragged(MouseEvent e, double position)
Parameters
position:double

The mouse position on track with 0.0 being beginning of track and 1.0 being the end

thumbPressedback to summary
public void thumbPressed(MouseEvent e, double position)
Parameters
position:double

The mouse position on track with 0.0 being beginning of track and 1.0 being the end

thumbReleasedback to summary
public void thumbReleased(MouseEvent e)

When thumb is released valueChanging should be set to false.

trackPressback to summary
public void trackPress(MouseEvent e, double position)

Invoked by the Slider Skin 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:double

The mouse position on track with 0.0 being beginning of track and 1.0 being the end