gvsig-projects-pool / org.gvsig.winmgr / trunk / org.gvsig.winmgr.lib / org.gvsig.winmgr.lib.api / src / main / java / org / gvsig / winmgr / lib / api / WindowManager.java @ 682
History | View | Annotate | Download (3.64 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.winmgr.lib.api; |
25 |
|
26 |
import java.awt.Dimension; |
27 |
import java.awt.Rectangle; |
28 |
import java.awt.image.BufferedImage; |
29 |
import java.util.List; |
30 |
import java.util.Locale; |
31 |
import javax.swing.ImageIcon; |
32 |
import javax.swing.JComponent; |
33 |
|
34 |
/**
|
35 |
*
|
36 |
* @author jjdelcerro
|
37 |
*/
|
38 |
public interface WindowManager |
39 |
extends org.gvsig.tools.swing.api.windowmanager.WindowManager_v2 {
|
40 |
|
41 |
public enum BackgroundImageMode { |
42 |
CENTERED, |
43 |
MOSAIC, |
44 |
EXPAND |
45 |
}; |
46 |
|
47 |
/**
|
48 |
* Specifies that the window is resizable
|
49 |
*/
|
50 |
public static final int RESIZABLE = 1; |
51 |
|
52 |
/**
|
53 |
* Specifies that the window is maximizable
|
54 |
*/
|
55 |
public static final int MAXIMIZABLE = 2; |
56 |
|
57 |
/**
|
58 |
* Specifies that the window is iconifiable
|
59 |
*/
|
60 |
public static final int ICONIFIABLE = 4; |
61 |
|
62 |
/**
|
63 |
* Specifies that the window is modal
|
64 |
*/
|
65 |
public static final int MODALDIALOG = 8; |
66 |
/**
|
67 |
* Specifies that the window is modeless (it's on the top but doesn't block
|
68 |
* any other window)
|
69 |
*/
|
70 |
public static final int MODELESSDIALOG = 16; |
71 |
/**
|
72 |
* Specifies that the window may be docked inside another window
|
73 |
*/
|
74 |
public static final int PALETTE = 32; |
75 |
|
76 |
/**
|
77 |
* Specifies that the window may be closed
|
78 |
*/
|
79 |
public static final int NOTCLOSABLE = 64; |
80 |
|
81 |
/**
|
82 |
* Specifies that this window has an editor profile
|
83 |
*/
|
84 |
public static final Integer EDITOR_PROFILE = 1; |
85 |
/**
|
86 |
* Specifies that this window has an editor profile
|
87 |
*/
|
88 |
public static final Integer TOOL_PROFILE = 2; |
89 |
/**
|
90 |
* Specifies that this window has an editor profile
|
91 |
*/
|
92 |
public static final Integer MAIN_PROFILE = 3; |
93 |
/**
|
94 |
* Specifies that this window has an editor profile
|
95 |
*/
|
96 |
public static final Integer PROPERTIES_PROFILE = 4; |
97 |
/**
|
98 |
* Specifies that this window has an editor profile
|
99 |
*/
|
100 |
public static final Integer DIALOG_PROFILE = 5; |
101 |
|
102 |
|
103 |
public Window createWindow( |
104 |
JComponent contents,
|
105 |
Object model,
|
106 |
String title,
|
107 |
int mode,
|
108 |
Object profile,
|
109 |
Rectangle preferredBound,
|
110 |
Dimension minimunSize
|
111 |
); |
112 |
|
113 |
public void showWindow(Window window); |
114 |
|
115 |
public Window getWindow(JComponent contents); |
116 |
|
117 |
public Window getWindow(int id); |
118 |
|
119 |
public Window getActiveWindow(); |
120 |
|
121 |
public List<Window> getAllWindows(); |
122 |
|
123 |
public List<Window> getAllWindowsOrdereds(); |
124 |
|
125 |
public BufferedImage getImagePreview(); |
126 |
|
127 |
public void setBackgroundImage(ImageIcon image, BackgroundImageMode mode); |
128 |
|
129 |
public void setWaitCursor(); |
130 |
|
131 |
public void restoreCursor(); |
132 |
|
133 |
public void setLocale(Locale locale); |
134 |
|
135 |
public ToolsBuilder getTools();
|
136 |
|
137 |
public ToolsBuilder createToolsBuilder();
|
138 |
} |