2158 |
|
|
2159 |
/** |
/** |
2160 |
* This method finds the closest value that has a tick associated with it. |
* This method finds the closest value that has a tick associated with it. |
2161 |
|
* This is package-private to avoid an accessor method. |
2162 |
* |
* |
2163 |
* @param value The value to search from. |
* @param value The value to search from. |
2164 |
* |
* |
2165 |
* @return The closest value that has a tick associated with it. |
* @return The closest value that has a tick associated with it. |
2166 |
*/ |
*/ |
2167 |
private int findClosestTick(int value) |
int findClosestTick(int value) |
2168 |
{ |
{ |
2169 |
int min = slider.getMinimum(); |
int min = slider.getMinimum(); |
2170 |
int max = slider.getMaximum(); |
int max = slider.getMaximum(); |