root / trunk / libraries / libGPE / src-test / org / gvsig / gpe / containers / Layer.java @ 11209
History | View | Annotate | Download (3.13 KB)
1 |
package org.gvsig.gpe.containers; |
---|---|
2 |
|
3 |
import java.util.ArrayList; |
4 |
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
6 |
*
|
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
8 |
*
|
9 |
* This program is free software; you can redistribute it and/or
|
10 |
* modify it under the terms of the GNU General Public License
|
11 |
* as published by the Free Software Foundation; either version 2
|
12 |
* of the License, or (at your option) any later version.
|
13 |
*
|
14 |
* This program is distributed in the hope that it will be useful,
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
* GNU General Public License for more details.
|
18 |
*
|
19 |
* You should have received a copy of the GNU General Public License
|
20 |
* along with this program; if not, write to the Free Software
|
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
22 |
*
|
23 |
* For more information, contact:
|
24 |
*
|
25 |
* Generalitat Valenciana
|
26 |
* Conselleria d'Infraestructures i Transport
|
27 |
* Av. Blasco Ib??ez, 50
|
28 |
* 46010 VALENCIA
|
29 |
* SPAIN
|
30 |
*
|
31 |
* +34 963862235
|
32 |
* gvsig@gva.es
|
33 |
* www.gvsig.gva.es
|
34 |
*
|
35 |
* or
|
36 |
*
|
37 |
* IVER T.I. S.A
|
38 |
* Salamanca 50
|
39 |
* 46005 Valencia
|
40 |
* Spain
|
41 |
*
|
42 |
* +34 963163400
|
43 |
* dac@iver.es
|
44 |
*/
|
45 |
/* CVS MESSAGES:
|
46 |
*
|
47 |
* $Id: Layer.java 11209 2007-04-14 16:06:35Z jorpiell $
|
48 |
* $Log$
|
49 |
* Revision 1.1 2007-04-14 16:06:35 jorpiell
|
50 |
* Add the container classes
|
51 |
*
|
52 |
*
|
53 |
*/
|
54 |
/**
|
55 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
56 |
*/
|
57 |
public class Layer { |
58 |
private String name = null; |
59 |
private String description = null; |
60 |
private String id = null; |
61 |
private Layer parentLayer = null; |
62 |
private ArrayList features = new ArrayList(); |
63 |
private String srs = null; |
64 |
private Bbox bbox = null; |
65 |
|
66 |
/**
|
67 |
* @return the bbox
|
68 |
*/
|
69 |
public Bbox getBbox() {
|
70 |
return bbox;
|
71 |
} |
72 |
|
73 |
/**
|
74 |
* @param bbox the bbox to set
|
75 |
*/
|
76 |
public void setBbox(Object bbox) { |
77 |
if (bbox != null){ |
78 |
this.bbox = (Bbox)bbox;
|
79 |
} |
80 |
} |
81 |
|
82 |
/**
|
83 |
* @return the srs
|
84 |
*/
|
85 |
public String getSrs() { |
86 |
return srs;
|
87 |
} |
88 |
|
89 |
/**
|
90 |
* @param srs the srs to set
|
91 |
*/
|
92 |
public void setSrs(String srs) { |
93 |
this.srs = srs;
|
94 |
} |
95 |
|
96 |
public Layer() {
|
97 |
super();
|
98 |
} |
99 |
|
100 |
/**
|
101 |
* @return the description
|
102 |
*/
|
103 |
public String getDescription() { |
104 |
return description;
|
105 |
} |
106 |
|
107 |
/**
|
108 |
* @param description the description to set
|
109 |
*/
|
110 |
public void setDescription(String description) { |
111 |
this.description = description;
|
112 |
} |
113 |
|
114 |
/**
|
115 |
* @return the id
|
116 |
*/
|
117 |
public String getId() { |
118 |
return id;
|
119 |
} |
120 |
|
121 |
/**
|
122 |
* @param id the id to set
|
123 |
*/
|
124 |
public void setId(String id) { |
125 |
this.id = id;
|
126 |
} |
127 |
|
128 |
/**
|
129 |
* @return the name
|
130 |
*/
|
131 |
public String getName() { |
132 |
return name;
|
133 |
} |
134 |
|
135 |
/**
|
136 |
* @param name the name to set
|
137 |
*/
|
138 |
public void setName(String name) { |
139 |
this.name = name;
|
140 |
} |
141 |
|
142 |
/**
|
143 |
* @return the features
|
144 |
*/
|
145 |
public ArrayList getFeatures() { |
146 |
return features;
|
147 |
} |
148 |
|
149 |
/**
|
150 |
* Adds a new layer
|
151 |
* @param layer
|
152 |
*/
|
153 |
public void addFeature(Feature feature){ |
154 |
features.add(feature); |
155 |
} |
156 |
|
157 |
/**
|
158 |
* @return the parentLayer
|
159 |
*/
|
160 |
public Layer getParentLayer() {
|
161 |
return parentLayer;
|
162 |
} |
163 |
|
164 |
/**
|
165 |
* @param parentLayer the parentLayer to set
|
166 |
*/
|
167 |
public void setParentLayer(Object parentLayer) { |
168 |
if (parentLayer != null){ |
169 |
this.parentLayer = (Layer)parentLayer;
|
170 |
} |
171 |
} |
172 |
} |