public class RangeUtils extends Object
| Constructor and Description |
|---|
RangeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getDoubleMajorTicks(double min,
double max)
Calculates the spacing between major (primary) "ticks" of a slider.
|
static double |
getDoubleMinorTicks(double min,
double max)
Calculates the spacing between minor (secondary) "ticks" of a slider.
|
static int |
getIntMajorTicks(int min,
int max)
Calculates the spacing between major (primary) "ticks" of a slider.
|
static int |
getIntMinorTicks(int min,
int max)
Calculates the spacing between minor (secondary) "ticks" of a slider.
|
public static int getIntMinorTicks(int min,
int max)
min - minimum value of the rangemax - maximum value of the rangepublic static int getIntMajorTicks(int min,
int max)
min - minimum value of the rangemax - maximum value of the rangepublic static double getDoubleMinorTicks(double min,
double max)
min - minimum value of the rangemax - maximum value of the rangepublic static double getDoubleMajorTicks(double min,
double max)
min - minimum value of the rangemax - maximum value of the range