Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / project / documents / gui / IDocumentWindow.java @ 40558

History | View | Annotate | Download (2.44 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.app.project.documents.gui;
25

    
26
import org.gvsig.andami.ui.mdiManager.IWindow;
27
import org.gvsig.andami.ui.mdiManager.IWindowListener;
28
import org.gvsig.andami.ui.mdiManager.SingletonWindow;
29
import org.gvsig.app.project.documents.Document;
30

    
31
/**
32
 * @author Miguel ?ngel Querol Carratal? <querol_mig@gva.es>
33
 * 
34
 *         Interfaz que tienen que implementar las clases de interfaz de
35
 *         usuario de los documentos que se quieran insertar en gvSIG. Estas
36
 *         clases se usar?n para cargar y guardar las propiedades graficas de la
37
 *         ventana
38
 *         del documento como tama?os y posiciones.
39
 */
40
public interface IDocumentWindow extends IWindow, IWindowListener,
41
    SingletonWindow {
42

    
43
    /**
44
     * M?todo para obtener un windowData con las propiedades de la
45
     * ventana del documento como pueden ser tama?os, posiciones y
46
     * estados de sliders, divisores etc. Este m?todo ser? llamado
47
     * para guardar los datos a disco. Lo llamar? la clase project para
48
     * obtener los datos y asi guardarlos.
49
     * 
50
     * @return un windowData con los datos de la ventana.
51
     */
52
    public WindowLayout getWindowLayout();
53

    
54
    /**
55
     * M?todo para cargar los datos de la ventana de proyecto. El widowData
56
     * guardado
57
     * se le pasa a la clase de interfaz de usuario correspondiente a la ventana
58
     * del documento.
59
     * 
60
     * @param winData
61
     */
62
    public void setWindowLayout(WindowLayout layout);
63

    
64
    public void setDocument(Document document);
65

    
66
    public Document getDocument();
67

    
68
}