1 /* DefaultDesktopManager.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)
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
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
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. */
45 * DefaultDesktopManager
46 * @author Andrew Selkirk
49 public class DefaultDesktopManager
implements DesktopManager
, Serializable
51 static final long serialVersionUID
= 4657624909838017887L;
53 //-------------------------------------------------------------
54 // Variables --------------------------------------------------
55 //-------------------------------------------------------------
58 * HAS_BEEN_ICONIFIED_PROPERTY
60 static final String HAS_BEEN_ICONIFIED_PROPERTY
= ""; // TODO
65 static final int DEFAULT_DRAG_MODE
= 0; // TODO
70 static final int OUTLINE_DRAG_MODE
= 0; // TODO
75 static final int FASTER_DRAG_MODE
= 0; // TODO
83 //-------------------------------------------------------------
84 // Initialization ---------------------------------------------
85 //-------------------------------------------------------------
88 * Constructor DefaultDesktopManager
90 public DefaultDesktopManager() {
92 } // DefaultDesktopManager()
95 //-------------------------------------------------------------
96 // Methods ----------------------------------------------------
97 //-------------------------------------------------------------
103 public void openFrame(JInternalFrame frame
) {
111 public void closeFrame(JInternalFrame frame
) {
119 public void maximizeFrame(JInternalFrame frame
) {
127 public void minimizeFrame(JInternalFrame frame
) {
135 public void iconifyFrame(JInternalFrame frame
) {
143 public void deiconifyFrame(JInternalFrame frame
) {
145 } // deiconifyFrame()
151 public void activateFrame(JInternalFrame frame
) {
159 public void deactivateFrame(JInternalFrame frame
) {
161 } // deactivateFrame()
165 * @param component TODO
167 public void beginDraggingFrame(JComponent component
) {
169 } // beginDraggingFrame()
173 * @param component TODO
177 public void dragFrame(JComponent component
, int newX
, int newY
) {
183 * @param component TODO
185 public void endDraggingFrame(JComponent component
) {
187 } // endDraggingFrame()
191 * @param component TODO
192 * @param direction TODO
194 public void beginResizingFrame(JComponent component
, int direction
) {
196 } // beginResizingFrame()
200 * @param component TODO
203 * @param newWidth TODO
204 * @param newHeight TODO
206 public void resizeFrame(JComponent component
, int newX
, int newY
,
207 int newWidth
, int newHeight
) {
213 * @param component TODO
215 public void endResizingFrame(JComponent component
) {
217 } // endResizingFrame()
221 * @param component TODO
224 * @param newWidth TODO
225 * @param newHeight TODO
227 public void setBoundsForFrame(JComponent component
, int newX
,
228 int newY
, int newWidth
, int newHeight
) {
230 } // setBoundsForFrame()
236 protected void removeIconFor(JInternalFrame frame
) {
245 protected Rectangle
getBoundsForIconOf(JInternalFrame frame
) {
247 } // getBoundsForIconOf()
254 protected void setPreviousBounds(JInternalFrame frame
, Rectangle rect
) {
256 } // setPreviousBounds()
263 protected Rectangle
getPreviousBounds(JInternalFrame frame
) {
265 } // getPreviousBounds()
272 protected void setWasIcon(JInternalFrame frame
, Boolean value
) {
281 protected boolean wasIcon(JInternalFrame frame
) {
282 return false; // TODO
286 } // DefaultDesktopManager