|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.RangeUtils
public class RangeUtils
A helper class for performing various calculations for integer and double ranges.
| Constructor Summary | |
|---|---|
RangeUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeUtils()
| Method Detail |
|---|
public static int getIntMinorTicks(int min,
int max)
min - minimum value of the rangemax - maximum value of the range
public static int getIntMajorTicks(int min,
int max)
min - minimum value of the rangemax - maximum value of the range
public static double getDoubleMinorTicks(double min,
double max)
min - minimum value of the rangemax - maximum value of the range
public static double getDoubleMajorTicks(double min,
double max)
min - minimum value of the rangemax - maximum value of the range
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||