1 /*
2 * JScroll - the scrollable desktop pane for Java.
3 * Copyright (C) 2003 Tom Tessier
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 */
20
21 package org.jscroll.widgets;
22
23 import javax.swing.*;
24 import javax.swing.plaf.ComponentUI;
25 import javax.swing.plaf.DesktopIconUI;
26
27 import java.awt.*;
28
29
30 /***
31 * This class provides an empty DesktopIconUI for
32 * {@link org.jscroll.widgets.RootDesktopPane RootDesktopPane}.
33 *
34 * @author <a href="mailto:tessier@gabinternet.com">Tom Tessier</a>
35 * @version 1.0 29-Jul-2001
36 */
37 public class EmptyDesktopIconUI extends DesktopIconUI {
38 /***
39 * stores the instance of this class. Used by
40 * {@link org.jscroll.widgets.EmptyDesktopIconUI#createUI(JComponent)
41 * createUI}.
42 */
43 protected static EmptyDesktopIconUI desktopIconUI;
44
45 /***
46 * creates the EmptyDesktopIconUI object
47 *
48 * @param c the reference to the JComponent object required by createUI
49 */
50 public static ComponentUI createUI(JComponent c) {
51 if (desktopIconUI == null) {
52 desktopIconUI = new EmptyDesktopIconUI();
53 }
54
55 return desktopIconUI;
56 }
57
58 /***
59 * overrides the paint method with a blank routine so that no
60 * component is displayed when an internal frame is iconified
61 *
62 * @param g the reference to the Graphics object used to paint the desktop
63 */
64 protected void paint(Graphics g) {
65 }
66 }
This page was automatically generated by Maven