35 import javafx.beans.property.IntegerProperty;
36 import javafx.beans.property.ObjectProperty;
37 import javafx.beans.property.SimpleBooleanProperty;
38 import javafx.beans.property.SimpleObjectProperty;
39 import javafx.beans.value.WritableValue;
40 import javafx.geometry.Orientation;
41 import javafx.scene.AccessibleAction;
42 import javafx.scene.AccessibleAttribute;
43 import javafx.scene.AccessibleRole;
44 import javafx.util.StringConverter;
45
46 import com.sun.javafx.util.Utils;
47
48 import javafx.css.CssMetaData;
49 import javafx.css.PseudoClass;
50 import javafx.css.StyleableBooleanProperty;
51 import javafx.css.StyleableDoubleProperty;
52 import javafx.css.StyleableIntegerProperty;
53 import javafx.css.StyleableObjectProperty;
54
55 import com.sun.javafx.css.converters.BooleanConverter;
56 import com.sun.javafx.css.converters.EnumConverter;
57 import com.sun.javafx.css.converters.SizeConverter;
58 import com.sun.javafx.scene.control.skin.SliderSkin;
59
60 import javafx.css.Styleable;
61 import javafx.css.StyleableProperty;
62
63 /**
64 * The Slider Control is used to display a continuous or discrete range of
65 * valid numeric choices and allows the user to interact with the control. It is
66 * typically represented visually as having a "track" and a "knob" or "thumb"
67 * which is dragged within the track. The Slider can optionally show tick marks
68 * and labels indicating the different slider position values.
69 * <p>
70 * The three fundamental variables of the slider are <code>min</code>,
71 * <code>max</code>, and <code>value</code>. The <code>value</code> should always
72 * be a number within the range defined by <code>min</code> and
73 * <code>max</code>. <code>min</code> should always be less than or equal to
74 * <code>max</code> (although a slider who's <code>min</code> and
75 * <code>max</code> are equal is a degenerate case that makes no sense).
76 * <code>min</code> defaults to 0, whereas <code>max</code> defaults to 100.
77 * <p>
78 * This first example creates a slider who's range, or span, goes from 0 to 1,
|
35 import javafx.beans.property.IntegerProperty;
36 import javafx.beans.property.ObjectProperty;
37 import javafx.beans.property.SimpleBooleanProperty;
38 import javafx.beans.property.SimpleObjectProperty;
39 import javafx.beans.value.WritableValue;
40 import javafx.geometry.Orientation;
41 import javafx.scene.AccessibleAction;
42 import javafx.scene.AccessibleAttribute;
43 import javafx.scene.AccessibleRole;
44 import javafx.util.StringConverter;
45
46 import com.sun.javafx.util.Utils;
47
48 import javafx.css.CssMetaData;
49 import javafx.css.PseudoClass;
50 import javafx.css.StyleableBooleanProperty;
51 import javafx.css.StyleableDoubleProperty;
52 import javafx.css.StyleableIntegerProperty;
53 import javafx.css.StyleableObjectProperty;
54
55 import javafx.css.converter.BooleanConverter;
56 import javafx.css.converter.EnumConverter;
57 import javafx.css.converter.SizeConverter;
58 import javafx.scene.control.skin.SliderSkin;
59
60 import javafx.css.Styleable;
61 import javafx.css.StyleableProperty;
62
63 /**
64 * The Slider Control is used to display a continuous or discrete range of
65 * valid numeric choices and allows the user to interact with the control. It is
66 * typically represented visually as having a "track" and a "knob" or "thumb"
67 * which is dragged within the track. The Slider can optionally show tick marks
68 * and labels indicating the different slider position values.
69 * <p>
70 * The three fundamental variables of the slider are <code>min</code>,
71 * <code>max</code>, and <code>value</code>. The <code>value</code> should always
72 * be a number within the range defined by <code>min</code> and
73 * <code>max</code>. <code>min</code> should always be less than or equal to
74 * <code>max</code> (although a slider who's <code>min</code> and
75 * <code>max</code> are equal is a degenerate case that makes no sense).
76 * <code>min</code> defaults to 0, whereas <code>max</code> defaults to 100.
77 * <p>
78 * This first example creates a slider who's range, or span, goes from 0 to 1,
|