Revision 3520 trunk/libraries/libRemoteServices/src/org/gvsig/remoteClient/wms/WMSLayer.java

View differences:

WMSLayer.java
28 28
    /**
29 29
     * <p>Themes provided by the WMS for the layer</p> 
30 30
     */
31
    public Hashtable styles = new Hashtable();
31
    public ArrayList styles = new ArrayList();
32 32
    
33 33
    /**
34 34
     * <p>Layer name</p>
......
71 71
     * <p>Dimensions defined for the layer in the capabilities doc</p>
72 72
     */
73 73
    private java.util.Hashtable dimensions = new Hashtable();
74
//    /**
75
//     * <p>NamedStyles defined for this layer in the capabilities document</p>
76
//     */
77
//    private ArrayList namedStyles = new ArrayList();
78 74
    /**
79 75
     * Tells if this layer accepts getFeatureInfo requests.
80 76
     */
......
98 94
     * @param _style 
99 95
     */
100 96
    public void addStyle(org.gvsig.remoteClient.wms.WMSStyle _style) {        
101
        styles.put( _style.getName(), _style );
102
    } 
97
        styles.add( _style );    } 
103 98
    
104
    /**
105
     * <p>returns the style with that name in the styles vector</p> 
106
     * @param _name 
107
     */
108
    public WMSStyle getStyle(String _name) {        
109
        return (WMSStyle)styles.get(_name);
110
    } 
111
    
112
    /**
99
   /**
113 100
     * <p>Gets the style vector</p> 
114 101
     * @return 
115 102
     */
116
    public Hashtable getStyles() {        
103
    public ArrayList getStyles() {        
117 104
        return styles;
118 105
    } 
119 106
    
......
216 203
     * <p>Adds a dimension to the dimension vector </p>
217 204
     * @param dimension 
218 205
     */
219
    public void addDimension(org.gvsig.remoteClient.wms.Dimension dimension) {        
206
    public void addDimension(org.gvsig.remoteClient.wms.WMSDimension dimension) {        
220 207
        dimensions.put(dimension.getName(), dimension);
221 208
    } 
222 209
    
......
291 278
    public String toString(){
292 279
        return this.getTitle();
293 280
    }
294
    
295
//    /**
296
//     * Adds a new named style to the named styles list of this layer.
297
//     *
298
//     * @param namedStyle the new named style to be added.
299
//     */
300
//    public void addNamedStyle(String namedStyle) {
301
//        String[] stylesArray = namedStyle.split(" ");
302
//        for (int i = 0; i < stylesArray.length; i++){
303
//            this.namedStyles.add(stylesArray[i]);
304
//        }
305
//    }
306
//
307
//    /**
308
//     * Gets the list of named styles of this layer
309
//     *
310
//     * @return ArrayList containing those styles
311
//     */
312
//    public ArrayList getNamedStyles() {
313
//        ArrayList ret = new ArrayList();
314
//        ret.addAll(namedStyles);
315
//        
316
//        if (parent != null) {
317
//            ret.addAll(parent.getNamedStyles());
318
//        }
319
//        
320
//        return ret;
321
//    }
322
    
281
  
323 282

  
324 283
    /**
325 284
     * Tells if this layer accepts getFeatureInfo requests.

Also available in: Unified diff