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 @ 44050
History | View | Annotate | Download (5.26 KB)
1 | 40558 | jjdelcerro | /**
|
---|---|---|---|
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 | 40435 | jjdelcerro | package org.gvsig.app.project; |
25 | |||
26 | import java.awt.Color; |
||
27 | 43913 | jjdelcerro | import java.awt.image.BufferedImage; |
28 | 40435 | jjdelcerro | 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 | 42711 | fdiaz | import java.util.Set; |
34 | 40435 | jjdelcerro | |
35 | import org.cresques.cts.IProjection; |
||
36 | |||
37 | import org.gvsig.app.project.documents.Document; |
||
38 | 41350 | jjdelcerro | import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport; |
39 | 40435 | jjdelcerro | import org.gvsig.fmap.mapcontext.layers.FLayer; |
40 | import org.gvsig.tools.persistence.Persistent; |
||
41 | import org.gvsig.tools.persistence.exception.PersistenceException; |
||
42 | |||
43 | 43913 | jjdelcerro | public interface Project extends DocumentsContainer, Persistent, ExtendedPropertiesSupport { |
44 | 40435 | jjdelcerro | |
45 | 43913 | jjdelcerro | public static final String PROJECT_PANEL_PAGE_GROUP = "ProyectPanel"; |
46 | |||
47 | 41350 | jjdelcerro | public static final String PROJECT_PROPERTIES_PAGE_GROUP = "Proyect"; |
48 | |||
49 | 40435 | jjdelcerro | public static final String FILE_EXTENSION = ".gvsproj"; |
50 | 42711 | fdiaz | |
51 | 43913 | jjdelcerro | public void addPropertyChangeListener(PropertyChangeListener listener); |
52 | 40435 | jjdelcerro | |
53 | 43913 | jjdelcerro | public void removePropertyChangeListener(PropertyChangeListener listener); |
54 | 40435 | jjdelcerro | |
55 | 43913 | jjdelcerro | /**
|
56 | * Return the creation date of the project
|
||
57 | *
|
||
58 | * @return
|
||
59 | */
|
||
60 | public String getCreationDate(); |
||
61 | 40435 | jjdelcerro | |
62 | 43913 | jjdelcerro | /**
|
63 | * Return the name of the project
|
||
64 | *
|
||
65 | * @return
|
||
66 | */
|
||
67 | public String getName(); |
||
68 | 40435 | jjdelcerro | |
69 | 43913 | jjdelcerro | /**
|
70 | * Set the name of he project.
|
||
71 | *
|
||
72 | * @param name
|
||
73 | */
|
||
74 | public void setName(String name); |
||
75 | 40435 | jjdelcerro | |
76 | 43913 | jjdelcerro | /**
|
77 | * Return the comments associateds with the project
|
||
78 | *
|
||
79 | * @return comments
|
||
80 | */
|
||
81 | public String getComments(); |
||
82 | 40435 | jjdelcerro | |
83 | 43913 | jjdelcerro | /**
|
84 | * Set the comments associateds with the project
|
||
85 | *
|
||
86 | * @param comments as string
|
||
87 | */
|
||
88 | public void setComments(String comments); |
||
89 | 40435 | jjdelcerro | |
90 | 43913 | jjdelcerro | /**
|
91 | * Retuen the modification date of the project.
|
||
92 | *
|
||
93 | * @return modification date as string
|
||
94 | */
|
||
95 | public String getModificationDate(); |
||
96 | 40435 | jjdelcerro | |
97 | 43913 | jjdelcerro | /**
|
98 | * Return the author of the project,
|
||
99 | *
|
||
100 | * @return author as string
|
||
101 | */
|
||
102 | public String getOwner(); |
||
103 | 40435 | jjdelcerro | |
104 | 43913 | jjdelcerro | /**
|
105 | * Sets the author of the project
|
||
106 | *
|
||
107 | * @param owner
|
||
108 | */
|
||
109 | public void setOwner(String owner); |
||
110 | 40435 | jjdelcerro | |
111 | 43913 | jjdelcerro | /**
|
112 | * Obtiene el color de selecci�n que se usar� en el proyecto
|
||
113 | *
|
||
114 | * @return
|
||
115 | */
|
||
116 | public Color getSelectionColor(); |
||
117 | 40435 | jjdelcerro | |
118 | 43913 | jjdelcerro | /**
|
119 | * Sets the selecction color
|
||
120 | *
|
||
121 | * @param selectionColor
|
||
122 | */
|
||
123 | public void setSelectionColor(String selectionColor); |
||
124 | 40435 | jjdelcerro | |
125 | 43913 | jjdelcerro | /**
|
126 | * Sets the selecction color
|
||
127 | *
|
||
128 | * @param selectionColor
|
||
129 | */
|
||
130 | public void setSelectionColor(Color selectionColor); |
||
131 | 40435 | jjdelcerro | |
132 | 43913 | jjdelcerro | public IProjection getProjection();
|
133 | 40435 | jjdelcerro | |
134 | 43913 | jjdelcerro | public void setProjection(IProjection projection); |
135 | 40435 | jjdelcerro | |
136 | 43913 | jjdelcerro | /**
|
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 | 40435 | jjdelcerro | |
145 | 43913 | jjdelcerro | public boolean hasChanged(); |
146 | 40435 | jjdelcerro | |
147 | 43913 | jjdelcerro | /**
|
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 | 40435 | jjdelcerro | |
155 | 43913 | jjdelcerro | /**
|
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 | 40435 | jjdelcerro | |
163 | 43913 | jjdelcerro | /**
|
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 | 40435 | jjdelcerro | |
175 | 43913 | jjdelcerro | public void addExtent(ProjectExtent arg1); |
176 | 40435 | jjdelcerro | |
177 | 43913 | jjdelcerro | public ProjectExtent removeExtent(int arg0); |
178 | 40435 | jjdelcerro | |
179 | 43913 | jjdelcerro | public ProjectExtent[] getExtents(); |
180 | 40435 | jjdelcerro | |
181 | 43913 | jjdelcerro | public void saveState(File out, BufferedImage preview); |
182 | 42711 | fdiaz | |
183 | 43913 | jjdelcerro | @Deprecated
|
184 | public void saveState(File out) throws PersistenceException; |
||
185 | 40435 | jjdelcerro | |
186 | 43913 | jjdelcerro | @Deprecated
|
187 | public void saveState(OutputStream out) throws PersistenceException; |
||
188 | 40435 | jjdelcerro | |
189 | 43913 | jjdelcerro | @Deprecated
|
190 | public void saveState(OutputStream out, File rootFolder) throws PersistenceException; |
||
191 | 42711 | fdiaz | |
192 | 43913 | jjdelcerro | @Deprecated
|
193 | public void loadState(InputStream in); |
||
194 | 42711 | fdiaz | |
195 | 43913 | jjdelcerro | public void loadState(File in); |
196 | 42711 | fdiaz | |
197 | 43913 | jjdelcerro | public String exportDocumentsAsText(List<Document> documents); |
198 | 42711 | fdiaz | |
199 | 43913 | jjdelcerro | public void importDocuments(String data, String doctype); |
200 | |||
201 | public boolean canImportDocuments(String data, String doctype); |
||
202 | |||
203 | 42711 | fdiaz | public File getFile(); |
204 | |||
205 | public Set<String> getUnloadedObjects(); |
||
206 | |||
207 | 43439 | jjdelcerro | public List<Exception> getLoadErrors(); |
208 | 43913 | jjdelcerro | } |