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 / Project.java @ 43913

History | View | Annotate | Download (5.26 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;
25

    
26
import java.awt.Color;
27
import java.awt.image.BufferedImage;
28
import java.beans.PropertyChangeListener;
29
import java.io.File;
30
import java.io.InputStream;
31
import java.io.OutputStream;
32
import java.util.List;
33
import java.util.Set;
34

    
35
import org.cresques.cts.IProjection;
36

    
37
import org.gvsig.app.project.documents.Document;
38
import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport;
39
import org.gvsig.fmap.mapcontext.layers.FLayer;
40
import org.gvsig.tools.persistence.Persistent;
41
import org.gvsig.tools.persistence.exception.PersistenceException;
42

    
43
public interface Project extends DocumentsContainer, Persistent, ExtendedPropertiesSupport {
44

    
45
    public static final String PROJECT_PANEL_PAGE_GROUP = "ProyectPanel";
46

    
47
    public static final String PROJECT_PROPERTIES_PAGE_GROUP = "Proyect";
48

    
49
    public static final String FILE_EXTENSION = ".gvsproj";
50

    
51
    public void addPropertyChangeListener(PropertyChangeListener listener);
52

    
53
    public void removePropertyChangeListener(PropertyChangeListener listener);
54

    
55
    /**
56
     * Return the creation date of the project
57
     *
58
     * @return
59
     */
60
    public String getCreationDate();
61

    
62
    /**
63
     * Return the name of the project
64
     *
65
     * @return
66
     */
67
    public String getName();
68

    
69
    /**
70
     * Set the name of he project.
71
     *
72
     * @param name
73
     */
74
    public void setName(String name);
75

    
76
    /**
77
     * Return the comments associateds with the project
78
     *
79
     * @return comments
80
     */
81
    public String getComments();
82

    
83
    /**
84
     * Set the comments associateds with the project
85
     *
86
     * @param comments as string
87
     */
88
    public void setComments(String comments);
89

    
90
    /**
91
     * Retuen the modification date of the project.
92
     *
93
     * @return modification date as string
94
     */
95
    public String getModificationDate();
96

    
97
    /**
98
     * Return the author of the project,
99
     *
100
     * @return author as string
101
     */
102
    public String getOwner();
103

    
104
    /**
105
     * Sets the author of the project
106
     *
107
     * @param owner
108
     */
109
    public void setOwner(String owner);
110

    
111
    /**
112
     * Obtiene el color de selecci�n que se usar� en el proyecto
113
     *
114
     * @return
115
     */
116
    public Color getSelectionColor();
117

    
118
    /**
119
     * Sets the selecction color
120
     *
121
     * @param selectionColor
122
     */
123
    public void setSelectionColor(String selectionColor);
124

    
125
    /**
126
     * Sets the selecction color
127
     *
128
     * @param selectionColor
129
     */
130
    public void setSelectionColor(Color selectionColor);
131

    
132
    public IProjection getProjection();
133

    
134
    public void setProjection(IProjection projection);
135

    
136
    /**
137
     * Sets the modified state of project.
138
     *
139
     * Can't set to not modified.
140
     *
141
     * @param modified as boolean
142
     */
143
    public void setModified(boolean modified);
144

    
145
    public boolean hasChanged();
146

    
147
    /**
148
     * Adds a document to the project
149
     *
150
     * @param document as IProjectDocument
151
     * @deprecated use addDocument
152
     */
153
    public void add(Document document);
154

    
155
    /**
156
     * Remove a document of the project
157
     *
158
     * @param document as Document
159
     * @deprecated use removeDocument
160
     */
161
    public void remove(Document document);
162

    
163
    /**
164
     * Return the view that contains the especified layer.
165
     *
166
     * @param layer
167
     *
168
     * @return name of the view that contains the layer
169
     *
170
     * @throws RuntimeException Si la capa que se pasa como par�metro no se
171
     * encuentra en ninguna vista
172
     */
173
    public String getViewName(FLayer layer);
174

    
175
    public void addExtent(ProjectExtent arg1);
176

    
177
    public ProjectExtent removeExtent(int arg0);
178

    
179
    public ProjectExtent[] getExtents();
180

    
181
    public void saveState(File out, BufferedImage preview);
182

    
183
    @Deprecated
184
    public void saveState(File out) throws PersistenceException;
185

    
186
    @Deprecated
187
    public void saveState(OutputStream out) throws PersistenceException;
188

    
189
    @Deprecated
190
    public void saveState(OutputStream out, File rootFolder) throws PersistenceException;
191

    
192
    @Deprecated
193
    public void loadState(InputStream in);
194

    
195
    public void loadState(File in);
196

    
197
    public String exportDocumentsAsText(List<Document> documents);
198

    
199
    public void importDocuments(String data, String doctype);
200

    
201
    public boolean canImportDocuments(String data, String doctype);
202

    
203
    public File getFile();
204

    
205
    public Set<String> getUnloadedObjects();
206

    
207
    public List<Exception> getLoadErrors();
208
}