FSF GCC merge 02/23/03
[official-gcc.git] / libjava / javax / swing / tree / AbstractLayoutCache.java
blob5be988ca6049a44381f14b31f29aa539db88a1b2
1 /* AbstractLayoutCache.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. */
38 package javax.swing.tree;
40 // Imports
41 import java.awt.*;
42 import java.util.*;
43 import javax.swing.event.*;
45 /**
46 * AbstractLayoutCache
47 * @author Andrew Selkirk
49 public abstract class AbstractLayoutCache implements RowMapper {
51 //-------------------------------------------------------------
52 // Classes ----------------------------------------------------
53 //-------------------------------------------------------------
55 /**
56 * NodeDimensions
58 public abstract static class NodeDimensions {
60 //-------------------------------------------------------------
61 // Initialization ---------------------------------------------
62 //-------------------------------------------------------------
64 /**
65 * Constructor NodeDimensions
67 public NodeDimensions() {
68 // TODO
69 } // NodeDimensions()
72 //-------------------------------------------------------------
73 // Methods ----------------------------------------------------
74 //-------------------------------------------------------------
76 /**
77 * getNodeDimensions
78 * @param value0 TODO
79 * @param value1 TODO
80 * @param value2 TODO
81 * @param value3 TODO
82 * @param value4 TODO
83 * @returns Rectangle
85 public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4);
88 } // NodeDimensions
91 //-------------------------------------------------------------
92 // Variables --------------------------------------------------
93 //-------------------------------------------------------------
95 /**
96 * nodeDimensions
98 protected NodeDimensions nodeDimensions;
101 * treeModel
103 protected TreeModel treeModel;
106 * treeSelectionModel
108 protected TreeSelectionModel treeSelectionModel;
111 * rootVisible
113 protected boolean rootVisible;
116 * rowHeight
118 protected int rowHeight;
121 //-------------------------------------------------------------
122 // Initialization ---------------------------------------------
123 //-------------------------------------------------------------
126 * Constructor AbstractLayoutCache
128 public AbstractLayoutCache() {
129 // TODO
130 } // AbstractLayoutCache()
133 //-------------------------------------------------------------
134 // Methods ----------------------------------------------------
135 //-------------------------------------------------------------
138 * setNodeDimensions
139 * @param value0 TODO
141 public void setNodeDimensions(NodeDimensions value0) {
142 // TODO
143 } // setNodeDimensions()
146 * getNodeDimensions
147 * @returns NodeDimensions
149 public NodeDimensions getNodeDimensions() {
150 return null; // TODO
151 } // getNodeDimensions()
154 * getNodeDimensions
155 * @param value0 TODO
156 * @param value1 TODO
157 * @param value2 TODO
158 * @param value3 TODO
159 * @param value4 TODO
160 * @returns Rectangle
162 protected Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4) {
163 return null; // TODO
164 } // getNodeDimensions()
167 * setModel
168 * @param value0 TODO
170 public void setModel(TreeModel value0) {
171 // TODO
172 } // setModel()
175 * getModel
176 * @returns TreeModel
178 public TreeModel getModel() {
179 return null; // TODO
180 } // getModel()
183 * setRootVisible
184 * @param value0 TODO
186 public void setRootVisible(boolean value0) {
187 // TODO
188 } // setRootVisible()
191 * isRootVisible
192 * @returns boolean
194 public boolean isRootVisible() {
195 return false; // TODO
196 } // isRootVisible()
199 * setRowHeight
200 * @param value0 TODO
202 public void setRowHeight(int value0) {
203 // TODO
204 } // setRowHeight()
207 * getRowHeight
208 * @returns int
210 public int getRowHeight() {
211 return 0; // TODO
212 } // getRowHeight()
215 * setSelectionModel
216 * @param value0 TODO
218 public void setSelectionModel(TreeSelectionModel value0) {
219 // TODO
220 } // setSelectionModel()
223 * getSelectionModel
224 * @returns TreeSelectionModel
226 public TreeSelectionModel getSelectionModel() {
227 return null; // TODO
228 } // getSelectionModel()
231 * getPreferredHeight
232 * @returns int
234 public int getPreferredHeight() {
235 return 0; // TODO
236 } // getPreferredHeight()
239 * getPreferredWidth
240 * @param value0 TODO
241 * @returns int
243 public int getPreferredWidth(Rectangle value0) {
244 return 0; // TODO
245 } // getPreferredWidth()
248 * isExpanded
249 * @param value0 TODO
250 * @returns boolean
252 public abstract boolean isExpanded(TreePath value0);
255 * getBounds
256 * @param value0 TODO
257 * @param value1 TODO
258 * @returns Rectangle
260 public abstract Rectangle getBounds(TreePath value0, Rectangle value1);
263 * getPathForRow
264 * @param value0 TODO
265 * @returns TreePath
267 public abstract TreePath getPathForRow(int value0);
270 * getRowForPath
271 * @param value0 TODO
272 * @returns int
274 public abstract int getRowForPath(TreePath value0);
277 * getPathClosestTo
278 * @param value0 TODO
279 * @param value1 TODO
280 * @returns TreePath
282 public abstract TreePath getPathClosestTo(int value0, int value1);
285 * getVisiblePathsFrom
286 * @param value0 TODO
287 * @returns Enumeration
289 public abstract Enumeration getVisiblePathsFrom(TreePath value0);
292 * getVisibleChildCount
293 * @param value0 TODO
294 * @returns int
296 public abstract int getVisibleChildCount(TreePath value0);
299 * setExpandedState
300 * @param value0 TODO
301 * @param value1 TODO
303 public abstract void setExpandedState(TreePath value0, boolean value1);
306 * getExpandedState
307 * @param value0 TODO
308 * @returns boolean
310 public abstract boolean getExpandedState(TreePath value0);
313 * getRowCount
314 * @returns int
316 public abstract int getRowCount();
319 * invalidateSizes
321 public abstract void invalidateSizes();
324 * invalidatePathBounds
325 * @param value0 TODO
327 public abstract void invalidatePathBounds(TreePath value0);
330 * treeNodesChanged
331 * @param value0 TODO
333 public abstract void treeNodesChanged(TreeModelEvent value0);
336 * treeNodesInserted
337 * @param value0 TODO
339 public abstract void treeNodesInserted(TreeModelEvent value0);
342 * treeNodesRemoved
343 * @param value0 TODO
345 public abstract void treeNodesRemoved(TreeModelEvent value0);
348 * treeStructureChanged
349 * @param value0 TODO
351 public abstract void treeStructureChanged(TreeModelEvent value0);
354 * getRowsForPaths
355 * @param value0 TODO
356 * @returns int[]
358 public int[] getRowsForPaths(TreePath[] value0) {
359 return null; // TODO
360 } // getRowsForPaths()
363 * isFixedRowHeight
364 * @returns boolean
366 protected boolean isFixedRowHeight() {
367 return false; // TODO
368 } // isFixedRowHeight()
371 } // AbstractLayoutCache