Lines Matching refs:amount
122 * the amount by which the Adjustable should be adjusted. This value may
145 * Scroll the given Adjustable by the given amount. Checks the Adjustable's
148 public static void scrollAdjustable(Adjustable adj, int amount) {
153 if (amount == 0) {
154 log.fine("Assertion (amount != 0) failed");
161 log.finer("doScrolling by " + amount);
164 if (amount > 0 && current < upperLimit) { // still some room to scroll
166 if (current + amount < upperLimit) {
167 adj.setValue(current + amount);
175 else if (amount < 0 && current > adj.getMinimum()) { // still some room
177 if (current + amount > adj.getMinimum()) {
178 adj.setValue(current + amount);