source: trunk/gcc/libjava/javax/swing/tree/DefaultTreeCellRenderer.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: 9.4 KB
Line 
1/* DefaultTreeCellRenderer.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.tree;
39
40// Imports
41import java.awt.*;
42import javax.swing.*;
43
44/**
45 * DefaultTreeCellRenderer
46 * @author Andrew Selkirk
47 */
48public class DefaultTreeCellRenderer extends JLabel implements TreeCellRenderer {
49
50 //-------------------------------------------------------------
51 // Variables --------------------------------------------------
52 //-------------------------------------------------------------
53
54 /**
55 * selected
56 */
57 protected boolean selected;
58
59 /**
60 * hasFocus
61 */
62 protected boolean hasFocus;
63
64 /**
65 * drawsFocusBorderAroundIcon
66 */
67 private boolean drawsFocusBorderAroundIcon;
68
69 /**
70 * closedIcon
71 */
72 protected transient Icon closedIcon;
73
74 /**
75 * leafIcon
76 */
77 protected transient Icon leafIcon;
78
79 /**
80 * openIcon
81 */
82 protected transient Icon openIcon;
83
84 /**
85 * textSelectionColor
86 */
87 protected Color textSelectionColor;
88
89 /**
90 * textNonSelectionColor
91 */
92 protected Color textNonSelectionColor;
93
94 /**
95 * backgroundSelectionColor
96 */
97 protected Color backgroundSelectionColor;
98
99 /**
100 * backgroundNonSelectionColor
101 */
102 protected Color backgroundNonSelectionColor;
103
104 /**
105 * borderSelectionColor
106 */
107 protected Color borderSelectionColor;
108
109
110 //-------------------------------------------------------------
111 // Initialization ---------------------------------------------
112 //-------------------------------------------------------------
113
114 /**
115 * Constructor DefaultTreeCellRenderer
116 */
117 public DefaultTreeCellRenderer() {
118 // TODO
119 } // DefaultTreeCellRenderer()
120
121
122 //-------------------------------------------------------------
123 // Methods ----------------------------------------------------
124 //-------------------------------------------------------------
125
126 /**
127 * getDefaultOpenIcon
128 * @returns Icon
129 */
130 public Icon getDefaultOpenIcon() {
131 return null; // TODO
132 } // getDefaultOpenIcon()
133
134 /**
135 * getDefaultClosedIcon
136 * @returns Icon
137 */
138 public Icon getDefaultClosedIcon() {
139 return null; // TODO
140 } // getDefaultClosedIcon()
141
142 /**
143 * getDefaultLeafIcon
144 * @returns Icon
145 */
146 public Icon getDefaultLeafIcon() {
147 return null; // TODO
148 } // getDefaultLeafIcon()
149
150 /**
151 * setOpenIcon
152 * @param value0 TODO
153 */
154 public void setOpenIcon(Icon value0) {
155 // TODO
156 } // setOpenIcon()
157
158 /**
159 * getOpenIcon
160 * @returns Icon
161 */
162 public Icon getOpenIcon() {
163 return null; // TODO
164 } // getOpenIcon()
165
166 /**
167 * setClosedIcon
168 * @param value0 TODO
169 */
170 public void setClosedIcon(Icon value0) {
171 // TODO
172 } // setClosedIcon()
173
174 /**
175 * getClosedIcon
176 * @returns Icon
177 */
178 public Icon getClosedIcon() {
179 return null; // TODO
180 } // getClosedIcon()
181
182 /**
183 * setLeafIcon
184 * @param value0 TODO
185 */
186 public void setLeafIcon(Icon value0) {
187 // TODO
188 } // setLeafIcon()
189
190 /**
191 * getLeafIcon
192 * @returns Icon
193 */
194 public Icon getLeafIcon() {
195 return null; // TODO
196 } // getLeafIcon()
197
198 /**
199 * setTextSelectionColor
200 * @param value0 TODO
201 */
202 public void setTextSelectionColor(Color value0) {
203 // TODO
204 } // setTextSelectionColor()
205
206 /**
207 * getTextSelectionColor
208 * @returns Color
209 */
210 public Color getTextSelectionColor() {
211 return null; // TODO
212 } // getTextSelectionColor()
213
214 /**
215 * setTextNonSelectionColor
216 * @param value0 TODO
217 */
218 public void setTextNonSelectionColor(Color value0) {
219 // TODO
220 } // setTextNonSelectionColor()
221
222 /**
223 * getTextNonSelectionColor
224 * @returns Color
225 */
226 public Color getTextNonSelectionColor() {
227 return null; // TODO
228 } // getTextNonSelectionColor()
229
230 /**
231 * setBackgroundSelectionColor
232 * @param value0 TODO
233 */
234 public void setBackgroundSelectionColor(Color value0) {
235 // TODO
236 } // setBackgroundSelectionColor()
237
238 /**
239 * getBackgroundSelectionColor
240 * @returns Color
241 */
242 public Color getBackgroundSelectionColor() {
243 return null; // TODO
244 } // getBackgroundSelectionColor()
245
246 /**
247 * setBackgroundNonSelectionColor
248 * @param value0 TODO
249 */
250 public void setBackgroundNonSelectionColor(Color value0) {
251 // TODO
252 } // setBackgroundNonSelectionColor()
253
254 /**
255 * getBackgroundNonSelectionColor
256 * @returns Color
257 */
258 public Color getBackgroundNonSelectionColor() {
259 return null; // TODO
260 } // getBackgroundNonSelectionColor()
261
262 /**
263 * setBorderSelectionColor
264 * @param value0 TODO
265 */
266 public void setBorderSelectionColor(Color value0) {
267 // TODO
268 } // setBorderSelectionColor()
269
270 /**
271 * getBorderSelectionColor
272 * @returns Color
273 */
274 public Color getBorderSelectionColor() {
275 return null; // TODO
276 } // getBorderSelectionColor()
277
278 /**
279 * setFont
280 * @param value0 TODO
281 */
282 public void setFont(Font value0) {
283 // TODO
284 } // setFont()
285
286 /**
287 * setBackground
288 * @param value0 TODO
289 */
290 public void setBackground(Color value0) {
291 // TODO
292 } // setBackground()
293
294 /**
295 * getTreeCellRendererComponent
296 * @param value0 TODO
297 * @param value1 TODO
298 * @param value2 TODO
299 * @param value3 TODO
300 * @param value4 TODO
301 * @param value5 TODO
302 * @param value6 TODO
303 * @returns Component
304 */
305 public Component getTreeCellRendererComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5, boolean value6) {
306 return null; // TODO
307 } // getTreeCellRendererComponent()
308
309 /**
310 * paint
311 * @param value0 TODO
312 */
313 public void paint(Graphics value0) {
314 // TODO
315 } // paint()
316
317 /**
318 * getPreferredSize
319 * @returns Dimension
320 */
321 public Dimension getPreferredSize() {
322 return null; // TODO
323 } // getPreferredSize()
324
325 /**
326 * validate
327 */
328 public void validate() {
329 // TODO
330 } // validate()
331
332 /**
333 * revalidate
334 */
335 public void revalidate() {
336 // TODO
337 } // revalidate()
338
339 /**
340 * repaint
341 * @param value0 TODO
342 * @param value1 TODO
343 * @param value2 TODO
344 * @param value3 TODO
345 * @param value4 TODO
346 */
347 public void repaint(long value0, int value1, int value2, int value3, int value4) {
348 // TODO
349 } // repaint()
350
351 /**
352 * repaint
353 * @param value0 TODO
354 */
355 public void repaint(Rectangle value0) {
356 // TODO
357 } // repaint()
358
359 /**
360 * firePropertyChange
361 * @param value0 TODO
362 * @param value1 TODO
363 * @param value2 TODO
364 */
365 protected void firePropertyChange(String value0, Object value1, Object value2) {
366 // TODO
367 } // firePropertyChange()
368
369 /**
370 * firePropertyChange
371 * @param value0 TODO
372 * @param value1 TODO
373 * @param value2 TODO
374 */
375 public void firePropertyChange(String value0, byte value1, byte value2) {
376 // TODO
377 } // firePropertyChange()
378
379 /**
380 * firePropertyChange
381 * @param value0 TODO
382 * @param value1 TODO
383 * @param value2 TODO
384 */
385 public void firePropertyChange(String value0, char value1, char value2) {
386 // TODO
387 } // firePropertyChange()
388
389 /**
390 * firePropertyChange
391 * @param value0 TODO
392 * @param value1 TODO
393 * @param value2 TODO
394 */
395 public void firePropertyChange(String value0, short value1, short value2) {
396 // TODO
397 } // firePropertyChange()
398
399 /**
400 * firePropertyChange
401 * @param value0 TODO
402 * @param value1 TODO
403 * @param value2 TODO
404 */
405 public void firePropertyChange(String value0, int value1, int value2) {
406 // TODO
407 } // firePropertyChange()
408
409 /**
410 * firePropertyChange
411 * @param value0 TODO
412 * @param value1 TODO
413 * @param value2 TODO
414 */
415 public void firePropertyChange(String value0, long value1, long value2) {
416 // TODO
417 } // firePropertyChange()
418
419 /**
420 * firePropertyChange
421 * @param value0 TODO
422 * @param value1 TODO
423 * @param value2 TODO
424 */
425 public void firePropertyChange(String value0, float value1, float value2) {
426 // TODO
427 } // firePropertyChange()
428
429 /**
430 * firePropertyChange
431 * @param value0 TODO
432 * @param value1 TODO
433 * @param value2 TODO
434 */
435 public void firePropertyChange(String value0, double value1, double value2) {
436 // TODO
437 } // firePropertyChange()
438
439 /**
440 * firePropertyChange
441 * @param value0 TODO
442 * @param value1 TODO
443 * @param value2 TODO
444 */
445 public void firePropertyChange(String value0, boolean value1, boolean value2) {
446 // TODO
447 } // firePropertyChange()
448
449
450} // DefaultTreeCellRenderer
Note: See TracBrowser for help on using the repository browser.