| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | * contributor license agreements. See the NOTICE file distributed with |
| 4 | * this work for additional information regarding copyright ownership. |
| 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | * (the "License"); you may not use this file except in compliance with |
| 7 | * the License. You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | /** |
| 18 | * @author Pavel Dolgov |
| 19 | * @version $Revision$ |
| 20 | */ |
| 21 | |
| 22 | package java.awt; |
| 23 | |
| 24 | import java.awt.event.AdjustmentListener; |
| 25 | |
| 26 | /** |
| 27 | * The Adjustable interface represents an adjustable numeric value contained |
| 28 | * within a bounded range of values, such as the current location in scrollable |
| 29 | * region or the value of a gauge. |
| 30 | * |
| 31 | * @since Android 1.0 |
| 32 | */ |
| 33 | public interface Adjustable { |
| 34 | |
| 35 | /** |
| 36 | * The Constant HORIZONTAL indicates that the Adjustable's orientation is |
| 37 | * horizontal. |
| 38 | */ |
| 39 | public static final int HORIZONTAL = 0; |
| 40 | |
| 41 | /** |
| 42 | * The Constant VERTICAL indicates that the Adjustable's orientation is |
| 43 | * vertical. |
| 44 | */ |
| 45 | public static final int VERTICAL = 1; |
| 46 | |
| 47 | /** |
| 48 | * The Constant NO_ORIENTATION indicates that the Adjustable has no |
| 49 | * orientation. |
| 50 | */ |
| 51 | public static final int NO_ORIENTATION = 2; |
| 52 | |
| 53 | /** |
| 54 | * Gets the value of the Adjustable. |
| 55 | * |
| 56 | * @return the current value of the Adjustable. |
| 57 | */ |
| 58 | public int getValue(); |
| 59 | |
| 60 | /** |
| 61 | * Sets the value to the Adjustable object. |
| 62 | * |
| 63 | * @param a0 |
| 64 | * the new value of the Adjustable object. |
| 65 | */ |
| 66 | public void setValue(int a0); |
| 67 | |
| 68 | /** |
| 69 | * Adds the AdjustmentListener to current Adjustment. |
| 70 | * |
| 71 | * @param a0 |
| 72 | * the AdjustmentListener object. |
| 73 | */ |
| 74 | public void addAdjustmentListener(AdjustmentListener a0); |
| 75 | |
| 76 | /** |
| 77 | * Gets the block increment of the Adjustable. |
| 78 | * |
| 79 | * @return the block increment of the Adjustable. |
| 80 | */ |
| 81 | public int getBlockIncrement(); |
| 82 | |
| 83 | /** |
| 84 | * Gets the maximum value of the Adjustable. |
| 85 | * |
| 86 | * @return the maximum value of the Adjustable. |
| 87 | */ |
| 88 | public int getMaximum(); |
| 89 | |
| 90 | /** |
| 91 | * Gets the minimum value of the Adjustable. |
| 92 | * |
| 93 | * @return the minimum value of the Adjustable. |
| 94 | */ |
| 95 | public int getMinimum(); |
| 96 | |
| 97 | /** |
| 98 | * Gets the orientation of the Adjustable. |
| 99 | * |
| 100 | * @return the orientation of the Adjustable. |
| 101 | */ |
| 102 | public int getOrientation(); |
| 103 | |
| 104 | /** |
| 105 | * Gets the unit increment of the Adjustable. |
| 106 | * |
| 107 | * @return the unit increment of the Adjustable. |
| 108 | */ |
| 109 | public int getUnitIncrement(); |
| 110 | |
| 111 | /** |
| 112 | * Gets the visible amount of the Adjustable. |
| 113 | * |
| 114 | * @return the visible amount of the Adjustable. |
| 115 | */ |
| 116 | public int getVisibleAmount(); |
| 117 | |
| 118 | /** |
| 119 | * Removes the adjustment listener of the Adjustable. |
| 120 | * |
| 121 | * @param a0 |
| 122 | * the specified AdjustmentListener to be removed. |
| 123 | */ |
| 124 | public void removeAdjustmentListener(AdjustmentListener a0); |
| 125 | |
| 126 | /** |
| 127 | * Sets the block increment for the Adjustable. |
| 128 | * |
| 129 | * @param a0 |
| 130 | * the new block increment. |
| 131 | */ |
| 132 | public void setBlockIncrement(int a0); |
| 133 | |
| 134 | /** |
| 135 | * Sets the maximum value of the Adjustable. |
| 136 | * |
| 137 | * @param a0 |
| 138 | * the new maximum of the Adjustable. |
| 139 | */ |
| 140 | public void setMaximum(int a0); |
| 141 | |
| 142 | /** |
| 143 | * Sets the minimum value of the Adjustable. |
| 144 | * |
| 145 | * @param a0 |
| 146 | * the new minimum of the Adjustable. |
| 147 | */ |
| 148 | public void setMinimum(int a0); |
| 149 | |
| 150 | /** |
| 151 | * Sets the unit increment of the Adjustable. |
| 152 | * |
| 153 | * @param a0 |
| 154 | * the new unit increment of the Adjustable. |
| 155 | */ |
| 156 | public void setUnitIncrement(int a0); |
| 157 | |
| 158 | /** |
| 159 | * Sets the visible amount of the Adjustable. |
| 160 | * |
| 161 | * @param a0 |
| 162 | * the new visible amount of the Adjustable. |
| 163 | */ |
| 164 | public void setVisibleAmount(int a0); |
| 165 | |
| 166 | } |