annotate gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/map/DefaultMapService.java @ 984:cfc7bd35ee0b

Set the map to the extent which was sent by the rest-server gnv/trunk@1167 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 07 Jun 2010 14:52:45 +0000
parents 0846c9c4abdd
children 541ff0db1b12
rev   line source
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
1 package de.intevation.gnv.artifactdatabase.objects.map;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 import java.util.Collection;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
4
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5 /**
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
6 * The default implementation of <code>MapService</code>.
699
af22fa5567a6 Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 690
diff changeset
7 *
684
57fa8019fbdc Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>'
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 683
diff changeset
8 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 */
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
10 public class DefaultMapService implements MapService {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
12 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
13 * The id of this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
14 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 private String id = null;
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
16
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
17 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
18 * The layer which are provided by this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
19 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20 private Collection<Layer> layer = null;
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
21
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
22 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
23 * The type of this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
24 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
25 private String type = null;
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
26
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
27 /**
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
28 * The URl of this mapservice.
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
29 */
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 private String url = null;
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
31
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
32 /**
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
33 * The Bbox which surrounds the data of the Mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
34 */
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
35 private String bbox = null;
699
af22fa5567a6 Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 690
diff changeset
36
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 /**
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 * Constructor
959
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
39 *
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
40 * @param id the id of this mapservice
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
41 * @param layer the layer which are provided by this mapservice
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
42 * @param type the type of this mapservice
0846c9c4abdd Add more Javadocs
Tim Englich <tim.englich@intevation.de>
parents: 700
diff changeset
43 * @param url the URl of this mapservice
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
44 */
681
15ac78a91d1b Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 402
diff changeset
45 public DefaultMapService(String id, Collection<Layer> layer,
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
46 String type, String url) {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
47 super();
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
48 this.id = id;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
49 this.layer = layer;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
50 this.type = type;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
51 this.url = url;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
52 }
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
53
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
54 /**
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
55 * Constructor
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
56 *
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
57 * @param id the id of this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
58 * @param layer the layer which are provided by this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
59 * @param type the type of this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
60 * @param url the URl of this mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
61 * @param bbox the Bbox which surrounds the data of the Mapservice
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
62 */
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
63 public DefaultMapService(String id, Collection<Layer> layer,
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
64 String type, String url, String bbox) {
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
65 this(id,layer,type,url);
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
66 this.bbox = bbox;
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
67 }
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
68
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
69
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
70 public String getID() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
71 return this.id;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
72 }
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
73
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
74
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
75 public Collection<Layer> getLayer() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
76 return this.layer;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
77 }
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
78
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
79
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
80 public String getType() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
81 return this.type;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
82 }
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
83
690
254f062e334b Added JavaDoc.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 684
diff changeset
84
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
85 public String getURL() {
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
86 return this.url;
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
87 }
984
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
88
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
89 public String getBBoxValue() {
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
90 return this.bbox;
cfc7bd35ee0b Set the map to the extent which was sent by the rest-server
Tim Englich <tim.englich@intevation.de>
parents: 959
diff changeset
91 }
402
b88e881e8e94 Added the first Implementation (not complete and not ready to use) for the Interface from the MapViewer to the GNV
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
92 }
700
89ade245ca7a Using unix line endings only.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 699
diff changeset
93 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org