1 | /* AbstractLayoutCache.java --
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
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.
|
---|
10 |
|
---|
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.
|
---|
15 |
|
---|
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.
|
---|
20 |
|
---|
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.
|
---|
25 |
|
---|
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. */
|
---|
37 |
|
---|
38 | package javax.swing.tree;
|
---|
39 |
|
---|
40 | // Imports
|
---|
41 | import java.awt.*;
|
---|
42 | import java.util.*;
|
---|
43 | import javax.swing.event.*;
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * AbstractLayoutCache
|
---|
47 | * @author Andrew Selkirk
|
---|
48 | */
|
---|
49 | public abstract class AbstractLayoutCache implements RowMapper {
|
---|
50 |
|
---|
51 | //-------------------------------------------------------------
|
---|
52 | // Classes ----------------------------------------------------
|
---|
53 | //-------------------------------------------------------------
|
---|
54 |
|
---|
55 | /**
|
---|
56 | * NodeDimensions
|
---|
57 | */
|
---|
58 | public abstract static class NodeDimensions {
|
---|
59 |
|
---|
60 | //-------------------------------------------------------------
|
---|
61 | // Initialization ---------------------------------------------
|
---|
62 | //-------------------------------------------------------------
|
---|
63 |
|
---|
64 | /**
|
---|
65 | * Constructor NodeDimensions
|
---|
66 | */
|
---|
67 | public NodeDimensions() {
|
---|
68 | // TODO
|
---|
69 | } // NodeDimensions()
|
---|
70 |
|
---|
71 |
|
---|
72 | //-------------------------------------------------------------
|
---|
73 | // Methods ----------------------------------------------------
|
---|
74 | //-------------------------------------------------------------
|
---|
75 |
|
---|
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
|
---|
84 | */
|
---|
85 | public abstract Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4);
|
---|
86 |
|
---|
87 |
|
---|
88 | } // NodeDimensions
|
---|
89 |
|
---|
90 |
|
---|
91 | //-------------------------------------------------------------
|
---|
92 | // Variables --------------------------------------------------
|
---|
93 | //-------------------------------------------------------------
|
---|
94 |
|
---|
95 | /**
|
---|
96 | * nodeDimensions
|
---|
97 | */
|
---|
98 | protected NodeDimensions nodeDimensions;
|
---|
99 |
|
---|
100 | /**
|
---|
101 | * treeModel
|
---|
102 | */
|
---|
103 | protected TreeModel treeModel;
|
---|
104 |
|
---|
105 | /**
|
---|
106 | * treeSelectionModel
|
---|
107 | */
|
---|
108 | protected TreeSelectionModel treeSelectionModel;
|
---|
109 |
|
---|
110 | /**
|
---|
111 | * rootVisible
|
---|
112 | */
|
---|
113 | protected boolean rootVisible;
|
---|
114 |
|
---|
115 | /**
|
---|
116 | * rowHeight
|
---|
117 | */
|
---|
118 | protected int rowHeight;
|
---|
119 |
|
---|
120 |
|
---|
121 | //-------------------------------------------------------------
|
---|
122 | // Initialization ---------------------------------------------
|
---|
123 | //-------------------------------------------------------------
|
---|
124 |
|
---|
125 | /**
|
---|
126 | * Constructor AbstractLayoutCache
|
---|
127 | */
|
---|
128 | public AbstractLayoutCache() {
|
---|
129 | // TODO
|
---|
130 | } // AbstractLayoutCache()
|
---|
131 |
|
---|
132 |
|
---|
133 | //-------------------------------------------------------------
|
---|
134 | // Methods ----------------------------------------------------
|
---|
135 | //-------------------------------------------------------------
|
---|
136 |
|
---|
137 | /**
|
---|
138 | * setNodeDimensions
|
---|
139 | * @param value0 TODO
|
---|
140 | */
|
---|
141 | public void setNodeDimensions(NodeDimensions value0) {
|
---|
142 | // TODO
|
---|
143 | } // setNodeDimensions()
|
---|
144 |
|
---|
145 | /**
|
---|
146 | * getNodeDimensions
|
---|
147 | * @returns NodeDimensions
|
---|
148 | */
|
---|
149 | public NodeDimensions getNodeDimensions() {
|
---|
150 | return null; // TODO
|
---|
151 | } // getNodeDimensions()
|
---|
152 |
|
---|
153 | /**
|
---|
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
|
---|
161 | */
|
---|
162 | protected Rectangle getNodeDimensions(Object value0, int value1, int value2, boolean value3, Rectangle value4) {
|
---|
163 | return null; // TODO
|
---|
164 | } // getNodeDimensions()
|
---|
165 |
|
---|
166 | /**
|
---|
167 | * setModel
|
---|
168 | * @param value0 TODO
|
---|
169 | */
|
---|
170 | public void setModel(TreeModel value0) {
|
---|
171 | // TODO
|
---|
172 | } // setModel()
|
---|
173 |
|
---|
174 | /**
|
---|
175 | * getModel
|
---|
176 | * @returns TreeModel
|
---|
177 | */
|
---|
178 | public TreeModel getModel() {
|
---|
179 | return null; // TODO
|
---|
180 | } // getModel()
|
---|
181 |
|
---|
182 | /**
|
---|
183 | * setRootVisible
|
---|
184 | * @param value0 TODO
|
---|
185 | */
|
---|
186 | public void setRootVisible(boolean value0) {
|
---|
187 | // TODO
|
---|
188 | } // setRootVisible()
|
---|
189 |
|
---|
190 | /**
|
---|
191 | * isRootVisible
|
---|
192 | * @returns boolean
|
---|
193 | */
|
---|
194 | public boolean isRootVisible() {
|
---|
195 | return false; // TODO
|
---|
196 | } // isRootVisible()
|
---|
197 |
|
---|
198 | /**
|
---|
199 | * setRowHeight
|
---|
200 | * @param value0 TODO
|
---|
201 | */
|
---|
202 | public void setRowHeight(int value0) {
|
---|
203 | // TODO
|
---|
204 | } // setRowHeight()
|
---|
205 |
|
---|
206 | /**
|
---|
207 | * getRowHeight
|
---|
208 | * @returns int
|
---|
209 | */
|
---|
210 | public int getRowHeight() {
|
---|
211 | return 0; // TODO
|
---|
212 | } // getRowHeight()
|
---|
213 |
|
---|
214 | /**
|
---|
215 | * setSelectionModel
|
---|
216 | * @param value0 TODO
|
---|
217 | */
|
---|
218 | public void setSelectionModel(TreeSelectionModel value0) {
|
---|
219 | // TODO
|
---|
220 | } // setSelectionModel()
|
---|
221 |
|
---|
222 | /**
|
---|
223 | * getSelectionModel
|
---|
224 | * @returns TreeSelectionModel
|
---|
225 | */
|
---|
226 | public TreeSelectionModel getSelectionModel() {
|
---|
227 | return null; // TODO
|
---|
228 | } // getSelectionModel()
|
---|
229 |
|
---|
230 | /**
|
---|
231 | * getPreferredHeight
|
---|
232 | * @returns int
|
---|
233 | */
|
---|
234 | public int getPreferredHeight() {
|
---|
235 | return 0; // TODO
|
---|
236 | } // getPreferredHeight()
|
---|
237 |
|
---|
238 | /**
|
---|
239 | * getPreferredWidth
|
---|
240 | * @param value0 TODO
|
---|
241 | * @returns int
|
---|
242 | */
|
---|
243 | public int getPreferredWidth(Rectangle value0) {
|
---|
244 | return 0; // TODO
|
---|
245 | } // getPreferredWidth()
|
---|
246 |
|
---|
247 | /**
|
---|
248 | * isExpanded
|
---|
249 | * @param value0 TODO
|
---|
250 | * @returns boolean
|
---|
251 | */
|
---|
252 | public abstract boolean isExpanded(TreePath value0);
|
---|
253 |
|
---|
254 | /**
|
---|
255 | * getBounds
|
---|
256 | * @param value0 TODO
|
---|
257 | * @param value1 TODO
|
---|
258 | * @returns Rectangle
|
---|
259 | */
|
---|
260 | public abstract Rectangle getBounds(TreePath value0, Rectangle value1);
|
---|
261 |
|
---|
262 | /**
|
---|
263 | * getPathForRow
|
---|
264 | * @param value0 TODO
|
---|
265 | * @returns TreePath
|
---|
266 | */
|
---|
267 | public abstract TreePath getPathForRow(int value0);
|
---|
268 |
|
---|
269 | /**
|
---|
270 | * getRowForPath
|
---|
271 | * @param value0 TODO
|
---|
272 | * @returns int
|
---|
273 | */
|
---|
274 | public abstract int getRowForPath(TreePath value0);
|
---|
275 |
|
---|
276 | /**
|
---|
277 | * getPathClosestTo
|
---|
278 | * @param value0 TODO
|
---|
279 | * @param value1 TODO
|
---|
280 | * @returns TreePath
|
---|
281 | */
|
---|
282 | public abstract TreePath getPathClosestTo(int value0, int value1);
|
---|
283 |
|
---|
284 | /**
|
---|
285 | * getVisiblePathsFrom
|
---|
286 | * @param value0 TODO
|
---|
287 | * @returns Enumeration
|
---|
288 | */
|
---|
289 | public abstract Enumeration getVisiblePathsFrom(TreePath value0);
|
---|
290 |
|
---|
291 | /**
|
---|
292 | * getVisibleChildCount
|
---|
293 | * @param value0 TODO
|
---|
294 | * @returns int
|
---|
295 | */
|
---|
296 | public abstract int getVisibleChildCount(TreePath value0);
|
---|
297 |
|
---|
298 | /**
|
---|
299 | * setExpandedState
|
---|
300 | * @param value0 TODO
|
---|
301 | * @param value1 TODO
|
---|
302 | */
|
---|
303 | public abstract void setExpandedState(TreePath value0, boolean value1);
|
---|
304 |
|
---|
305 | /**
|
---|
306 | * getExpandedState
|
---|
307 | * @param value0 TODO
|
---|
308 | * @returns boolean
|
---|
309 | */
|
---|
310 | public abstract boolean getExpandedState(TreePath value0);
|
---|
311 |
|
---|
312 | /**
|
---|
313 | * getRowCount
|
---|
314 | * @returns int
|
---|
315 | */
|
---|
316 | public abstract int getRowCount();
|
---|
317 |
|
---|
318 | /**
|
---|
319 | * invalidateSizes
|
---|
320 | */
|
---|
321 | public abstract void invalidateSizes();
|
---|
322 |
|
---|
323 | /**
|
---|
324 | * invalidatePathBounds
|
---|
325 | * @param value0 TODO
|
---|
326 | */
|
---|
327 | public abstract void invalidatePathBounds(TreePath value0);
|
---|
328 |
|
---|
329 | /**
|
---|
330 | * treeNodesChanged
|
---|
331 | * @param value0 TODO
|
---|
332 | */
|
---|
333 | public abstract void treeNodesChanged(TreeModelEvent value0);
|
---|
334 |
|
---|
335 | /**
|
---|
336 | * treeNodesInserted
|
---|
337 | * @param value0 TODO
|
---|
338 | */
|
---|
339 | public abstract void treeNodesInserted(TreeModelEvent value0);
|
---|
340 |
|
---|
341 | /**
|
---|
342 | * treeNodesRemoved
|
---|
343 | * @param value0 TODO
|
---|
344 | */
|
---|
345 | public abstract void treeNodesRemoved(TreeModelEvent value0);
|
---|
346 |
|
---|
347 | /**
|
---|
348 | * treeStructureChanged
|
---|
349 | * @param value0 TODO
|
---|
350 | */
|
---|
351 | public abstract void treeStructureChanged(TreeModelEvent value0);
|
---|
352 |
|
---|
353 | /**
|
---|
354 | * getRowsForPaths
|
---|
355 | * @param value0 TODO
|
---|
356 | * @returns int[]
|
---|
357 | */
|
---|
358 | public int[] getRowsForPaths(TreePath[] value0) {
|
---|
359 | return null; // TODO
|
---|
360 | } // getRowsForPaths()
|
---|
361 |
|
---|
362 | /**
|
---|
363 | * isFixedRowHeight
|
---|
364 | * @returns boolean
|
---|
365 | */
|
---|
366 | protected boolean isFixedRowHeight() {
|
---|
367 | return false; // TODO
|
---|
368 | } // isFixedRowHeight()
|
---|
369 |
|
---|
370 |
|
---|
371 | } // AbstractLayoutCache
|
---|