source: trunk/gcc/libjava/javax/swing/ScrollPaneLayout.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 6.8 KB
Line 
1/* ScrollPaneLayout.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package javax.swing;
39
40// Imports
41import java.awt.*;
42import java.io.*;
43import javax.swing.plaf.*;
44
45/**
46 * ScrollPaneLayout
47 * @author Andrew Selkirk
48 * @version 1.0
49 */
50public class ScrollPaneLayout implements LayoutManager, ScrollPaneConstants, Serializable {
51
52 //-------------------------------------------------------------
53 // Classes ----------------------------------------------------
54 //-------------------------------------------------------------
55
56 /**
57 * UIResource
58 */
59 public static class UIResource extends ScrollPaneLayout
60 implements javax.swing.plaf.UIResource {
61
62 //-------------------------------------------------------------
63 // Initialization ---------------------------------------------
64 //-------------------------------------------------------------
65
66 /**
67 * Constructor UIResource
68 */
69 public UIResource() {
70 // TODO
71 } // UIResource()
72
73
74 } // UIResource
75
76
77 //-------------------------------------------------------------
78 // Variables --------------------------------------------------
79 //-------------------------------------------------------------
80
81 /**
82 * viewport
83 */
84 protected JViewport viewport;
85
86 /**
87 * vsb
88 */
89 protected JScrollBar vsb;
90
91 /**
92 * hsb
93 */
94 protected JScrollBar hsb;
95
96 /**
97 * rowHead
98 */
99 protected JViewport rowHead;
100
101 /**
102 * colHead
103 */
104 protected JViewport colHead;
105
106 /**
107 * lowerLeft
108 */
109 protected Component lowerLeft;
110
111 /**
112 * lowerRight
113 */
114 protected Component lowerRight;
115
116 /**
117 * upperLeft
118 */
119 protected Component upperLeft;
120
121 /**
122 * upperRight
123 */
124 protected Component upperRight;
125
126 /**
127 * vsbPolicy
128 */
129 protected int vsbPolicy;
130
131 /**
132 * hsbPolicy
133 */
134 protected int hsbPolicy;
135
136
137 //-------------------------------------------------------------
138 // Initialization ---------------------------------------------
139 //-------------------------------------------------------------
140
141 /**
142 * Constructor ScrollPaneLayout
143 */
144 public ScrollPaneLayout() {
145 // TODO
146 } // ScrollPaneLayout()
147
148
149 //-------------------------------------------------------------
150 // Methods ----------------------------------------------------
151 //-------------------------------------------------------------
152
153 /**
154 * syncWithScrollPane
155 * @param scrollPane TODO
156 */
157 public void syncWithScrollPane(JScrollPane scrollPane) {
158 // TODO
159 } // syncWithScrollPane()
160
161 /**
162 * addSingletonComponent
163 * @param oldComponent TODO
164 * @param newComponent TODO
165 * @returns Component
166 */
167 protected Component addSingletonComponent(Component oldComponent,
168 Component newComponent) {
169 return null; // TODO
170 } // addSingletonComponent()
171
172 /**
173 * addLayoutComponent
174 * @param string TODO
175 * @param component TODO
176 */
177 public void addLayoutComponent(String string, Component component) {
178 // TODO
179 } // addLayoutComponent()
180
181 /**
182 * removeLayoutComponent
183 * @param component TODO
184 */
185 public void removeLayoutComponent(Component component) {
186 // TODO
187 } // removeLayoutComponent()
188
189 /**
190 * getVerticalScrollBarPolicy
191 * @returns int
192 */
193 public int getVerticalScrollBarPolicy() {
194 return 0; // TODO
195 } // getVerticalScrollBarPolicy()
196
197 /**
198 * setVerticalScrollBarPolicy
199 * @param policy TODO
200 */
201 public void setVerticalScrollBarPolicy(int policy) {
202 // TODO
203 } // setVerticalScrollBarPolicy()
204
205 /**
206 * getHorizontalScrollBarPolicy
207 * @returns int
208 */
209 public int getHorizontalScrollBarPolicy() {
210 return 0; // TODO
211 } // getHorizontalScrollBarPolicy()
212
213 /**
214 * setHorizontalScrollBarPolicy
215 * @param policy TODO
216 */
217 public void setHorizontalScrollBarPolicy(int policy) {
218 // TODO
219 } // setHorizontalScrollBarPolicy()
220
221 /**
222 * getViewport
223 * @returns JViewport
224 */
225 public JViewport getViewport() {
226 return null; // TODO
227 } // getViewport()
228
229 /**
230 * getHorizontalScrollBar
231 * @returns JScrollBar
232 */
233 public JScrollBar getHorizontalScrollBar() {
234 return null; // TODO
235 } // getHorizontalScrollBar()
236
237 /**
238 * getVerticalScrollBar
239 * @returns JScrollBar
240 */
241 public JScrollBar getVerticalScrollBar() {
242 return null; // TODO
243 } // getVerticalScrollBar()
244
245 /**
246 * getRowHeader
247 * @returns JViewport
248 */
249 public JViewport getRowHeader() {
250 return null; // TODO
251 } // getRowHeader()
252
253 /**
254 * getColumnHeader
255 * @returns JViewport
256 */
257 public JViewport getColumnHeader() {
258 return null; // TODO
259 } // getColumnHeader()
260
261 /**
262 * getCorner
263 * @param key TODO
264 * @returns Component
265 */
266 public Component getCorner(String key) {
267 return null; // TODO
268 } // getCorner()
269
270 /**
271 * preferredLayoutSize
272 * @param parent TODO
273 * @returns Dimension
274 */
275 public Dimension preferredLayoutSize(Container parent) {
276 return null; // TODO
277 } // preferredLayoutSize()
278
279 /**
280 * minimumLayoutSize
281 * @param parent TODO
282 * @returns Dimension
283 */
284 public Dimension minimumLayoutSize(Container parent) {
285 return null; // TODO
286 } // minimumLayoutSize()
287
288 /**
289 * layoutContainer
290 * @param parent TODO
291 */
292 public void layoutContainer(Container parent) {
293 // TODO
294 } // layoutContainer()
295
296 /**
297 * getViewportBorderBounds
298 * @param value0 TODO
299 * @returns Rectangle
300 */
301 public Rectangle getViewportBorderBounds(JScrollPane scrollPane) {
302 return null; // TODO
303 } // getViewportBorderBounds()
304
305
306} // ScrollPaneLayout
Note: See TracBrowser for help on using the repository browser.