svn-gvsig-desktop / trunk / libraries / libCorePlugin / src / com / iver / core / mdiManager / frames / IFrame.java @ 9996
History | View | Annotate | Download (4.02 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
|
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 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
|
42 |
/**
|
43 |
*
|
44 |
*/
|
45 |
package com.iver.core.mdiManager.frames; |
46 |
|
47 |
import java.awt.Dimension; |
48 |
import java.awt.Rectangle; |
49 |
|
50 |
/**
|
51 |
* This interface is a model for CorePlugin windows. When CorePlugin receives an
|
52 |
* IWindow object, it creates a JInternalFrame or a JDialog, depending on
|
53 |
* the specified properties.
|
54 |
*
|
55 |
* This interface allows coreplugin to talk to JInternalFrames and JDialogs in
|
56 |
* a uniform way.
|
57 |
*
|
58 |
* @author Cesar Martinez Izquierdo <cesar.martinez@iver.es>
|
59 |
*/
|
60 |
public interface IFrame { |
61 |
/**
|
62 |
* Gets the title property
|
63 |
*
|
64 |
* @return
|
65 |
*/
|
66 |
public String getTitle(); |
67 |
|
68 |
/**
|
69 |
* Sets the title property.
|
70 |
*
|
71 |
* @param title The new title.
|
72 |
*/
|
73 |
public void setTitle(String title); |
74 |
|
75 |
/**
|
76 |
* Returns the current x coordinate of the window's origin.
|
77 |
*
|
78 |
* @return Returns the value (in pixels) of the x coordinate
|
79 |
* of the window's origin.
|
80 |
*/
|
81 |
public int getX(); |
82 |
|
83 |
/**
|
84 |
* Sets the value of the x coordinate for the origin of the associated
|
85 |
* window.
|
86 |
*
|
87 |
* @param x The value (in pixels) of the x coordinate
|
88 |
*/
|
89 |
public void setX(int x); |
90 |
|
91 |
/**
|
92 |
* Returns the current y coordinate of the window's origin.
|
93 |
*
|
94 |
* @return Returns the value (in pixels) of the y coordinate
|
95 |
* of the window's origin.
|
96 |
*/
|
97 |
public int getY(); |
98 |
|
99 |
/**
|
100 |
* Sets the value of the y coordinate for the origin of the associated
|
101 |
* window.
|
102 |
*
|
103 |
* @param y The value (in pixels) of the y coordinate
|
104 |
*/
|
105 |
public void setY(int y); |
106 |
|
107 |
/**
|
108 |
* Gets the window height.
|
109 |
*
|
110 |
* @return The window height (in pixels).
|
111 |
*/
|
112 |
public int getHeight(); |
113 |
|
114 |
/**
|
115 |
* Gets the window width.
|
116 |
*
|
117 |
* @return The window width (in pixels).
|
118 |
*/
|
119 |
public int getWidth(); |
120 |
|
121 |
/**
|
122 |
* Sets the window height.
|
123 |
*
|
124 |
* @param The window height (in pixels)
|
125 |
*/
|
126 |
public void setHeight(int height); |
127 |
|
128 |
/**
|
129 |
* Sets the window width.
|
130 |
*
|
131 |
* @param The window width (in pixels)
|
132 |
*/
|
133 |
public void setWidth(int width); |
134 |
|
135 |
/**
|
136 |
* Gets the minimum allowed size for this window.
|
137 |
*
|
138 |
* @return minSize The minimum allowed size for this window.
|
139 |
*/
|
140 |
public Dimension getMinimumSize(); |
141 |
|
142 |
/**
|
143 |
* Sets the minimum allowed size for this window. If null is provided,
|
144 |
* the minimum size is disabled (and thus
|
145 |
* the window can be resized to any size).
|
146 |
*
|
147 |
* @param minSize The minimum allowed size for this window.
|
148 |
*/
|
149 |
public void setMinimumSize(Dimension minSize); |
150 |
|
151 |
/**
|
152 |
* Gets the window bounds.
|
153 |
*
|
154 |
* @return The window bounds.
|
155 |
*/
|
156 |
public Rectangle getBounds(); |
157 |
|
158 |
/**
|
159 |
* Sets the window bounds.
|
160 |
*
|
161 |
* @param bounds The window bounds.
|
162 |
*/
|
163 |
public void setBounds(Rectangle bounds); |
164 |
|
165 |
public void setLocation(int x, int y); |
166 |
|
167 |
} |