DoubleField.
| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private double | |
| private int | |
| protected Slider | slider
- fieldLabel is the container that displays the label property of the field. |
| public static final int | |
| protected Label |
| Access | Constructor and Description |
|---|---|
| public | DoubleSliderControl(double
minimum slider value min, double maximum slider value max, int number of digits after the decimal point precision)Creates a slider for double values with a minimum and maximum value, with a set precision. |
| Modifier and Type | Method and Description |
|---|---|
| public void | initializeParts()
Overrides com. Implements com. This method is used to initializes all the properties of a class. |
| public void | layoutParts()
Implements abstract com. Implements com. This method is used to align the parts of a class. |
| public static DoubleSliderControl | Returns: the constructed DoubleSliderControlminimum slider value min, double maximum slider value max, int number of digits after the decimal point precision, VisibilityProperty property for control visibility of this element visibilityProperty)Constructs a DoubleSliderControl of |
| private double | round(double
value to be rounded value, int number of digits after the decimal point precision)Rounds a value to a given precision, using |
| public void | setupBindings()
Overrides com. Overrides default com. This method is used to configure the bindings of the properties. |
| public void | setupEventHandlers()
Overrides com. Overrides default com. This method is used to set up event handlers. |
| public void | setupValueChangedListeners()
Overrides com. Overrides default com. This method is used to set up value change listeners. |
| max | back to summary |
|---|---|
| private double max | |
| min | back to summary |
|---|---|
| private double min | |
| precision | back to summary |
|---|---|
| private int precision | |
| slider | back to summary |
|---|---|
| protected Slider slider - fieldLabel is the container that displays the label property of the field. - slider is the control to change the value. - node holds the control so that it can be styled properly. | |
| VALUE_LABEL_PADDING | back to summary |
|---|---|
| public static final int VALUE_LABEL_PADDING | |
| valueLabel | back to summary |
|---|---|
| protected Label valueLabel | |
| DoubleSliderControl | back to summary |
|---|---|
| public DoubleSliderControl(double min, double max, int precision) Creates a slider for double values with a minimum and maximum value, with a set precision.
| |
| initializeParts | back to summary |
|---|---|
| public void initializeParts() Overrides com. Implements com. Doc from com. This method is used to initializes all the properties of a class.
| |
| layoutParts | back to summary |
|---|---|
| public void layoutParts() Implements abstract com. Implements com. Doc from com. This method is used to align the parts of a class.
| |
| of | back to summary |
|---|---|
| public static DoubleSliderControl of(double min, double max, int precision, VisibilityProperty visibilityProperty) Constructs a DoubleSliderControl of
| |
| round | back to summary |
|---|---|
| private double round(double value, int precision) Rounds a value to a given precision, using
| |
| setupBindings | back to summary |
|---|---|
| public void setupBindings() Overrides com. Overrides default com. Doc from com. This method is used to configure the bindings of the properties.
| |
| setupEventHandlers | back to summary |
|---|---|
| public void setupEventHandlers() Overrides com. Overrides default com. Doc from com. This method is used to set up event handlers.
| |
| setupValueChangedListeners | back to summary |
|---|---|
| public void setupValueChangedListeners() Overrides com. Overrides default com. Doc from com. This method is used to set up value change listeners.
| |