< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/Slider.java

Print this page

        

*** 570,582 **** * {@link #minProperty() min} and {@link #maxProperty() max}. This function * also takes into account {@link #snapToTicksProperty() snapToTicks}, which * is the main difference between adjustValue and setValue. It also ensures * that the value is some valid number between min and max. * ! * @expert This function is intended to be used by experts, primarily * by those implementing new Skins or Behaviors. It is not common * for developers or designers to access this function directly. */ public void adjustValue(double newValue) { // figure out the "value" associated with the specified position final double _min = getMin(); final double _max = getMax(); --- 570,583 ---- * {@link #minProperty() min} and {@link #maxProperty() max}. This function * also takes into account {@link #snapToTicksProperty() snapToTicks}, which * is the main difference between adjustValue and setValue. It also ensures * that the value is some valid number between min and max. * ! * Note: This function is intended to be used by experts, primarily * by those implementing new Skins or Behaviors. It is not common * for developers or designers to access this function directly. + * @param newValue the new adjusted value */ public void adjustValue(double newValue) { // figure out the "value" associated with the specified position final double _min = getMin(); final double _max = getMax();
*** 616,626 **** /** * Utility function which, given the specified value, will position it * either aligned with a tick, or simply clamp between min & max value, * depending on whether snapToTicks is set. * ! * @expert This function is intended to be used by experts, primarily * by those implementing new Skins or Behaviors. It is not common * for developers or designers to access this function directly. */ private double snapValueToTicks(double val) { double v = val; --- 617,627 ---- /** * Utility function which, given the specified value, will position it * either aligned with a tick, or simply clamp between min & max value, * depending on whether snapToTicks is set. * ! * Note: This function is intended to be used by experts, primarily * by those implementing new Skins or Behaviors. It is not common * for developers or designers to access this function directly. */ private double snapValueToTicks(double val) { double v = val;
< prev index next >