svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / project / Project.java @ 43828
History | View | Annotate | Download (4.77 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 | import java.beans.PropertyChangeListener; |
||
28 | import java.io.File; |
||
29 | import java.io.InputStream; |
||
30 | import java.io.OutputStream; |
||
31 | import java.util.Iterator; |
||
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.observer.Observable; |
||
41 | import org.gvsig.tools.persistence.Persistent; |
||
42 | import org.gvsig.tools.persistence.exception.PersistenceException; |
||
43 | |||
44 | 41350 | jjdelcerro | public interface Project extends DocumentsContainer, Persistent, ExtendedPropertiesSupport { |
45 | 40435 | jjdelcerro | |
46 | 41350 | jjdelcerro | public static final String PROJECT_PROPERTIES_PAGE_GROUP = "Proyect"; |
47 | |||
48 | 40435 | jjdelcerro | public static final String FILE_EXTENSION = ".gvsproj"; |
49 | 42711 | fdiaz | |
50 | 40435 | jjdelcerro | public void addPropertyChangeListener(PropertyChangeListener arg0); |
51 | |||
52 | /**
|
||
53 | * Return the creation date of the project
|
||
54 | *
|
||
55 | * @return
|
||
56 | */
|
||
57 | public String getCreationDate(); |
||
58 | |||
59 | /**
|
||
60 | * Return the name of the project
|
||
61 | *
|
||
62 | * @return
|
||
63 | */
|
||
64 | public String getName(); |
||
65 | |||
66 | /**
|
||
67 | * Set the name of he project.
|
||
68 | *
|
||
69 | * @param string
|
||
70 | */
|
||
71 | public void setName(String name); |
||
72 | |||
73 | /**
|
||
74 | * Return the comments associateds with the project
|
||
75 | *
|
||
76 | * @return comments
|
||
77 | */
|
||
78 | public String getComments(); |
||
79 | |||
80 | /**
|
||
81 | * Set the comments associateds with the project
|
||
82 | *
|
||
83 | * @param comments as string
|
||
84 | */
|
||
85 | public void setComments(String string); |
||
86 | |||
87 | /**
|
||
88 | * Retuen the modification date of the project.
|
||
89 | *
|
||
90 | * @return modification date as string
|
||
91 | */
|
||
92 | public String getModificationDate(); |
||
93 | |||
94 | /**
|
||
95 | * Return the author of the project,
|
||
96 | *
|
||
97 | * @return author as string
|
||
98 | */
|
||
99 | public String getOwner(); |
||
100 | |||
101 | /**
|
||
102 | * Sets the author of the project
|
||
103 | *
|
||
104 | * @param author name as string
|
||
105 | */
|
||
106 | public void setOwner(String owner); |
||
107 | |||
108 | /**
|
||
109 | * Obtiene el color de selecci�n que se usar� en el proyecto
|
||
110 | *
|
||
111 | * @return
|
||
112 | */
|
||
113 | public Color getSelectionColor(); |
||
114 | |||
115 | /**
|
||
116 | * Sets the selecction color
|
||
117 | *
|
||
118 | * @param selection color as string
|
||
119 | */
|
||
120 | public void setSelectionColor(String selectionColor); |
||
121 | |||
122 | /**
|
||
123 | * Sets the selecction color
|
||
124 | *
|
||
125 | * @param selection color as Color
|
||
126 | */
|
||
127 | public void setSelectionColor(Color selectionColor); |
||
128 | |||
129 | public IProjection getProjection();
|
||
130 | |||
131 | public void setProjection(IProjection projection); |
||
132 | |||
133 | /**
|
||
134 | * Sets the modified state of project.
|
||
135 | 42711 | fdiaz | *
|
136 | 40435 | jjdelcerro | * Can't set to not modified.
|
137 | *
|
||
138 | * @param modified as boolean
|
||
139 | */
|
||
140 | public void setModified(boolean modified); |
||
141 | |||
142 | public boolean hasChanged(); |
||
143 | |||
144 | |||
145 | /**
|
||
146 | * Adds a document to the project
|
||
147 | *
|
||
148 | * @param document as IProjectDocument
|
||
149 | 41248 | jjdelcerro | * @deprecated use addDocument
|
150 | 40435 | jjdelcerro | */
|
151 | public void add(Document document); |
||
152 | |||
153 | /**
|
||
154 | * Remove a document of the project
|
||
155 | *
|
||
156 | 41248 | jjdelcerro | * @param document as Document
|
157 | * @deprecated use removeDocument
|
||
158 | 40435 | jjdelcerro | */
|
159 | 41248 | jjdelcerro | public void remove(Document document); |
160 | 40435 | jjdelcerro | |
161 | /**
|
||
162 | * Return the view that contains the especified layer.
|
||
163 | *
|
||
164 | * @param layer
|
||
165 | *
|
||
166 | * @return name of the view that contains the layer
|
||
167 | *
|
||
168 | 42711 | fdiaz | * @throws RuntimeException
|
169 | 40435 | jjdelcerro | * Si la capa que se pasa como par�metro no se encuentra en
|
170 | * ninguna vista
|
||
171 | */
|
||
172 | public String getViewName(FLayer layer); |
||
173 | |||
174 | public void addExtent(ProjectExtent arg1); |
||
175 | |||
176 | public ProjectExtent removeExtent(int arg0); |
||
177 | |||
178 | public ProjectExtent[] getExtents(); |
||
179 | |||
180 | public void saveState(File out) throws PersistenceException; |
||
181 | 42711 | fdiaz | |
182 | 40435 | jjdelcerro | public void saveState(OutputStream out) throws PersistenceException; |
183 | 43828 | jjdelcerro | |
184 | public void saveState(OutputStream out, File rootFolder) throws PersistenceException; |
||
185 | 40435 | jjdelcerro | |
186 | public void loadState(InputStream in); |
||
187 | |||
188 | public void loadState(File in); |
||
189 | 42711 | fdiaz | |
190 | 40435 | jjdelcerro | public String exportDocumentsAsText(List<Document> documents); |
191 | 42711 | fdiaz | |
192 | 40435 | jjdelcerro | public void importDocuments(String data, String doctype); |
193 | 42711 | fdiaz | |
194 | 40435 | jjdelcerro | public boolean canImportDocuments(String data, String doctype); |
195 | 42711 | fdiaz | |
196 | public File getFile(); |
||
197 | |||
198 | public Set<String> getUnloadedObjects(); |
||
199 | |||
200 | 43439 | jjdelcerro | public List<Exception> getLoadErrors(); |
201 | 40435 | jjdelcerro | } |