blob: 3241cad1dbeba35432f3dc5decb6cc8a9821e6cb [file] [log] [blame]
The Android Open Source Project7c1b96a2008-10-21 07:00:00 -07001/*
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 */
21package java.awt;
22
23import java.awt.event.AdjustmentListener;
24
25/**
26 * The Adjustable interface represents an adjustable numeric value
27 * contained within a bounded range of values, such as the current
28 * location in scrollable region or the value of a gauge.
29 */
30public interface Adjustable {
31
32 /**
33 * The Constant HORIZONTAL indicates that the Adjustable's orientation
34 * is horizontal.
35 */
36 public static final int HORIZONTAL = 0;
37
38 /**
39 * The Constant VERTICAL indicates that the Adjustable's orientation
40 * is vertical.
41 */
42 public static final int VERTICAL = 1;
43
44 /**
45 * The Constant NO_ORIENTATION indicates that the Adjustable
46 * has no orientation.
47 */
48 public static final int NO_ORIENTATION = 2;
49
50 /**
51 * Gets the value of the Adjustable.
52 *
53 * @return the current value of the Adjustable.
54 */
55 public int getValue();
56
57 /**
58 * Sets the value to the Adjustable object.
59 *
60 * @param a0 the new value of the Adjustable object.
61 */
62 public void setValue(int a0);
63
64 /**
65 * Adds the AdjustmentListener to current Adjustment.
66 *
67 * @param a0 the AdjustmentListener object.
68 */
69 public void addAdjustmentListener(AdjustmentListener a0);
70
71 /**
72 * Gets the block increment of the Adjustable.
73 *
74 * @return the block increment of the Adjustable.
75 */
76 public int getBlockIncrement();
77
78 /**
79 * Gets the maximum value of the Adjustable.
80 *
81 * @return the maximum value of the Adjustable.
82 */
83 public int getMaximum();
84
85 /**
86 * Gets the minimum value of the Adjustable.
87 *
88 * @return the minimum value of the Adjustable.
89 */
90 public int getMinimum();
91
92 /**
93 * Gets the orientation of the Adjustable.
94 *
95 * @return the orientation of the Adjustable.
96 */
97 public int getOrientation();
98
99 /**
100 * Gets the unit increment of the Adjustable.
101 *
102 * @return the unit increment of the Adjustable.
103 */
104 public int getUnitIncrement();
105
106 /**
107 * Gets the visible amount of the Adjustable.
108 *
109 * @return the visible amount of the Adjustable.
110 */
111 public int getVisibleAmount();
112
113 /**
114 * Removes the adjustment listener of the Adjustable.
115 *
116 * @param a0 the specified AdjustmentListener to be removed.
117 */
118 public void removeAdjustmentListener(AdjustmentListener a0);
119
120 /**
121 * Sets the block increment for the Adjustable.
122 *
123 * @param a0 the new block increment.
124 */
125 public void setBlockIncrement(int a0);
126
127 /**
128 * Sets the maximum value of the Adjustable.
129 *
130 * @param a0 the new maximum of the Adjustable.
131 */
132 public void setMaximum(int a0);
133
134 /**
135 * Sets the minimum value of the Adjustable.
136 *
137 * @param a0 the new minimum of the Adjustable.
138 */
139 public void setMinimum(int a0);
140
141 /**
142 * Sets the unit increment of the Adjustable.
143 *
144 * @param a0 the new unit increment of the Adjustable.
145 */
146 public void setUnitIncrement(int a0);
147
148 /**
149 * Sets the visible amount of the Adjustable.
150 *
151 * @param a0 the new visible amount of the Adjustable.
152 */
153 public void setVisibleAmount(int a0);
154
155}
156