svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.coreplugin.app / org.gvsig.coreplugin.app.mainplugin / src / main / java / org / gvsig / coreplugin / mdiManager / frames / IFrame.java @ 40558
History | View | Annotate | Download (3.77 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 |
/**
|
25 |
*
|
26 |
*/
|
27 |
package org.gvsig.coreplugin.mdiManager.frames; |
28 |
|
29 |
import java.awt.Dimension; |
30 |
import java.awt.Rectangle; |
31 |
|
32 |
/**
|
33 |
* This interface is a model for CorePlugin windows. When CorePlugin receives an
|
34 |
* IWindow object, it creates a JInternalFrame or a JDialog, depending on
|
35 |
* the specified properties.
|
36 |
*
|
37 |
* This interface allows coreplugin to talk to JInternalFrames and JDialogs in
|
38 |
* a uniform way.
|
39 |
*
|
40 |
* @author Cesar Martinez Izquierdo <cesar.martinez@iver.es>
|
41 |
*/
|
42 |
public interface IFrame { |
43 |
/**
|
44 |
* Gets the title property
|
45 |
*
|
46 |
* @return
|
47 |
*/
|
48 |
public String getTitle(); |
49 |
|
50 |
/**
|
51 |
* Sets the title property.
|
52 |
*
|
53 |
* @param title The new title.
|
54 |
*/
|
55 |
public void setTitle(String title); |
56 |
|
57 |
/**
|
58 |
* Returns the current x coordinate of the window's origin.
|
59 |
*
|
60 |
* @return Returns the value (in pixels) of the x coordinate
|
61 |
* of the window's origin.
|
62 |
*/
|
63 |
public int getX(); |
64 |
|
65 |
/**
|
66 |
* Sets the value of the x coordinate for the origin of the associated
|
67 |
* window.
|
68 |
*
|
69 |
* @param x The value (in pixels) of the x coordinate
|
70 |
*/
|
71 |
public void setX(int x); |
72 |
|
73 |
/**
|
74 |
* Returns the current y coordinate of the window's origin.
|
75 |
*
|
76 |
* @return Returns the value (in pixels) of the y coordinate
|
77 |
* of the window's origin.
|
78 |
*/
|
79 |
public int getY(); |
80 |
|
81 |
/**
|
82 |
* Sets the value of the y coordinate for the origin of the associated
|
83 |
* window.
|
84 |
*
|
85 |
* @param y The value (in pixels) of the y coordinate
|
86 |
*/
|
87 |
public void setY(int y); |
88 |
|
89 |
/**
|
90 |
* Gets the window height.
|
91 |
*
|
92 |
* @return The window height (in pixels).
|
93 |
*/
|
94 |
public int getHeight(); |
95 |
|
96 |
/**
|
97 |
* Gets the window width.
|
98 |
*
|
99 |
* @return The window width (in pixels).
|
100 |
*/
|
101 |
public int getWidth(); |
102 |
|
103 |
/**
|
104 |
* Sets the window height.
|
105 |
*
|
106 |
* @param The window height (in pixels)
|
107 |
*/
|
108 |
public void setHeight(int height); |
109 |
|
110 |
/**
|
111 |
* Sets the window width.
|
112 |
*
|
113 |
* @param The window width (in pixels)
|
114 |
*/
|
115 |
public void setWidth(int width); |
116 |
|
117 |
/**
|
118 |
* Gets the minimum allowed size for this window.
|
119 |
*
|
120 |
* @return minSize The minimum allowed size for this window.
|
121 |
*/
|
122 |
public Dimension getMinimumSize(); |
123 |
|
124 |
/**
|
125 |
* Sets the minimum allowed size for this window. If null is provided,
|
126 |
* the minimum size is disabled (and thus
|
127 |
* the window can be resized to any size).
|
128 |
*
|
129 |
* @param minSize The minimum allowed size for this window.
|
130 |
*/
|
131 |
public void setMinimumSize(Dimension minSize); |
132 |
|
133 |
/**
|
134 |
* Gets the window bounds.
|
135 |
*
|
136 |
* @return The window bounds.
|
137 |
*/
|
138 |
public Rectangle getBounds(); |
139 |
|
140 |
/**
|
141 |
* Sets the window bounds.
|
142 |
*
|
143 |
* @param bounds The window bounds.
|
144 |
*/
|
145 |
public void setBounds(Rectangle bounds); |
146 |
|
147 |
public void setLocation(int x, int y); |
148 |
|
149 |
} |