2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / ScrollPaneLayout.java
blobd6cc479de0b8dd77ed14946cdc7e4cd5281e6306
1 /* ScrollPaneLayout.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
39 package javax.swing;
41 import java.awt.Component;
42 import java.awt.Container;
43 import java.awt.Dimension;
44 import java.awt.LayoutManager;
45 import java.awt.Rectangle;
46 import java.io.Serializable;
48 /**
49 * ScrollPaneLayout
50 * @author Andrew Selkirk
51 * @version 1.0
53 public class ScrollPaneLayout
54 implements LayoutManager, ScrollPaneConstants, Serializable
56 static final long serialVersionUID = -4480022884523193743L;
58 //-------------------------------------------------------------
59 // Classes ----------------------------------------------------
60 //-------------------------------------------------------------
62 /**
63 * UIResource
65 public static class UIResource extends ScrollPaneLayout
66 implements javax.swing.plaf.UIResource {
68 //-------------------------------------------------------------
69 // Initialization ---------------------------------------------
70 //-------------------------------------------------------------
72 /**
73 * Constructor UIResource
75 public UIResource() {
76 // TODO
77 } // UIResource()
80 } // UIResource
83 //-------------------------------------------------------------
84 // Variables --------------------------------------------------
85 //-------------------------------------------------------------
87 /**
88 * viewport
90 protected JViewport viewport;
92 /**
93 * vsb
95 protected JScrollBar vsb;
97 /**
98 * hsb
100 protected JScrollBar hsb;
103 * rowHead
105 protected JViewport rowHead;
108 * colHead
110 protected JViewport colHead;
113 * lowerLeft
115 protected Component lowerLeft;
118 * lowerRight
120 protected Component lowerRight;
123 * upperLeft
125 protected Component upperLeft;
128 * upperRight
130 protected Component upperRight;
133 * vsbPolicy
135 protected int vsbPolicy;
138 * hsbPolicy
140 protected int hsbPolicy;
143 //-------------------------------------------------------------
144 // Initialization ---------------------------------------------
145 //-------------------------------------------------------------
148 * Constructor ScrollPaneLayout
150 public ScrollPaneLayout() {
151 // TODO
152 } // ScrollPaneLayout()
155 //-------------------------------------------------------------
156 // Methods ----------------------------------------------------
157 //-------------------------------------------------------------
160 * syncWithScrollPane
161 * @param scrollPane TODO
163 public void syncWithScrollPane(JScrollPane scrollPane) {
164 // TODO
165 } // syncWithScrollPane()
168 * addSingletonComponent
169 * @param oldComponent TODO
170 * @param newComponent TODO
171 * @returns Component
173 protected Component addSingletonComponent(Component oldComponent,
174 Component newComponent) {
175 return null; // TODO
176 } // addSingletonComponent()
179 * addLayoutComponent
180 * @param string TODO
181 * @param component TODO
183 public void addLayoutComponent(String string, Component component) {
184 // TODO
185 } // addLayoutComponent()
188 * removeLayoutComponent
189 * @param component TODO
191 public void removeLayoutComponent(Component component) {
192 // TODO
193 } // removeLayoutComponent()
196 * getVerticalScrollBarPolicy
197 * @returns int
199 public int getVerticalScrollBarPolicy() {
200 return 0; // TODO
201 } // getVerticalScrollBarPolicy()
204 * setVerticalScrollBarPolicy
205 * @param policy TODO
207 public void setVerticalScrollBarPolicy(int policy) {
208 // TODO
209 } // setVerticalScrollBarPolicy()
212 * getHorizontalScrollBarPolicy
213 * @returns int
215 public int getHorizontalScrollBarPolicy() {
216 return 0; // TODO
217 } // getHorizontalScrollBarPolicy()
220 * setHorizontalScrollBarPolicy
221 * @param policy TODO
223 public void setHorizontalScrollBarPolicy(int policy) {
224 // TODO
225 } // setHorizontalScrollBarPolicy()
228 * getViewport
229 * @returns JViewport
231 public JViewport getViewport() {
232 return null; // TODO
233 } // getViewport()
236 * getHorizontalScrollBar
237 * @returns JScrollBar
239 public JScrollBar getHorizontalScrollBar() {
240 return null; // TODO
241 } // getHorizontalScrollBar()
244 * getVerticalScrollBar
245 * @returns JScrollBar
247 public JScrollBar getVerticalScrollBar() {
248 return null; // TODO
249 } // getVerticalScrollBar()
252 * getRowHeader
253 * @returns JViewport
255 public JViewport getRowHeader() {
256 return null; // TODO
257 } // getRowHeader()
260 * getColumnHeader
261 * @returns JViewport
263 public JViewport getColumnHeader() {
264 return null; // TODO
265 } // getColumnHeader()
268 * getCorner
269 * @param key TODO
270 * @returns Component
272 public Component getCorner(String key) {
273 return null; // TODO
274 } // getCorner()
277 * preferredLayoutSize
278 * @param parent TODO
279 * @returns Dimension
281 public Dimension preferredLayoutSize(Container parent) {
282 return null; // TODO
283 } // preferredLayoutSize()
286 * minimumLayoutSize
287 * @param parent TODO
288 * @returns Dimension
290 public Dimension minimumLayoutSize(Container parent) {
291 return null; // TODO
292 } // minimumLayoutSize()
295 * layoutContainer
296 * @param parent TODO
298 public void layoutContainer(Container parent) {
299 // TODO
300 } // layoutContainer()
303 * getViewportBorderBounds
304 * @param value0 TODO
305 * @returns Rectangle
307 public Rectangle getViewportBorderBounds(JScrollPane scrollPane) {
308 return null; // TODO
309 } // getViewportBorderBounds()
312 } // ScrollPaneLayout