root / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / wms / WMSStatus.java @ 3323
History | View | Annotate | Download (2.24 KB)
1 |
|
---|---|
2 |
package org.gvsig.remoteClient.wms; |
3 |
|
4 |
import java.util.Vector; |
5 |
|
6 |
/**
|
7 |
* Describes the status of a WMSclient, so it adds to the Remote client status
|
8 |
* a list of layers, a list of layer styles, the extent of the map.
|
9 |
* Provides the functionality to modify these lists.
|
10 |
*
|
11 |
*/
|
12 |
public class WMSStatus extends org.gvsig.remoteClient.RemoteClientStatus { |
13 |
|
14 |
|
15 |
// list of leayer to be retrieved by the WMS
|
16 |
private Vector layers; |
17 |
// List of layer styles
|
18 |
private Vector styles; |
19 |
// extent required by the WMS client
|
20 |
private org.gvsig.remoteClient.utils.BoundaryBox bbox;
|
21 |
|
22 |
|
23 |
// sets the list of layers required by the WMS client
|
24 |
public void setLayerNames(Vector _layers) { |
25 |
layers = _layers; |
26 |
} |
27 |
|
28 |
/**
|
29 |
* <p>Retrieves the layer list required by the WMS client</p>
|
30 |
*
|
31 |
*
|
32 |
* @return Vector, the list of layers
|
33 |
*/
|
34 |
public Vector getLayerNames() { |
35 |
return layers;
|
36 |
} |
37 |
|
38 |
/**
|
39 |
* <p> Adds a layer to the list of layers required by the WMS client</p>
|
40 |
*
|
41 |
*
|
42 |
* @param _layerName, name of the layer to be added.
|
43 |
*/
|
44 |
public void addLayerName(String _layerName) { |
45 |
layers.add(_layerName); |
46 |
} |
47 |
|
48 |
/**
|
49 |
* <p>removes a layer from the layer list</p>
|
50 |
*
|
51 |
*
|
52 |
* @param _layerName
|
53 |
* @return true if the layer name has been deleted from the list
|
54 |
*/
|
55 |
public boolean removeLayerName(String _layerName) { |
56 |
return layers.remove(_layerName);
|
57 |
} |
58 |
|
59 |
/**
|
60 |
* <p>gets the styles list required by the WMS client</p>
|
61 |
*
|
62 |
*
|
63 |
* @return Vector with the list of layer styles
|
64 |
*/
|
65 |
public Vector getStyles() { |
66 |
return styles;
|
67 |
} |
68 |
|
69 |
/**
|
70 |
* <p>sets the styles list required by the WMS client</p>
|
71 |
*
|
72 |
*
|
73 |
* @param _styles, list to be set as the required styles.
|
74 |
*/
|
75 |
public void setStyles(Vector _styles) { |
76 |
styles = _styles; |
77 |
} |
78 |
|
79 |
/**
|
80 |
* <p>Adds a style name to the styles list required by the WMS client</p>
|
81 |
*
|
82 |
*
|
83 |
* @param _name, style name to be added
|
84 |
*/
|
85 |
public void addStyleName(String _name) { |
86 |
styles.add( _name); |
87 |
} |
88 |
|
89 |
/**
|
90 |
* <p>Removes a style from the list of styles required by the WMS client</p>
|
91 |
*
|
92 |
*
|
93 |
* @param _name, style name to be removed
|
94 |
*/
|
95 |
public boolean removeStyleName(String _name) { |
96 |
return styles.remove(_name);
|
97 |
} |
98 |
} |