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

View differences:

WMSStatus.java
2 2
package org.gvsig.remoteClient.wms;
3 3

  
4 4
import java.awt.geom.Rectangle2D;
5
import java.text.Format;
5 6
import java.util.Vector;
6 7

  
7 8
/**
......
19 20
    private Vector styles;
20 21
    // extent required by the WMS client
21 22
    private Rectangle2D extent;
22

  
23
    private boolean transparency;
23 24
    public WMSStatus()
24 25
    {
25 26
    	layers = new Vector();
......
113 114
    public void setExtent(Rectangle2D extent) {        
114 115
        this.extent = extent;
115 116
    } 
116
         
117
 }
117
 
118
    public boolean equals(Object obj){
119
        if (obj instanceof WMSStatus)
120
            return false;
121
        WMSStatus s = (WMSStatus) obj;
122
        return  (s.getExtent().equals(this.getExtent()) 
123
             &&  s.getFormat().equals(this.getFormat())
124
             && (s.getHeight() == this.getHeight())
125
             && (s.getWidth()  == this.getWidth())
126
             &&  s.getLayerNames().equals(this.getLayerNames())
127
             &&  s.getStyles().equals(this.getStyles()) 
128
             &&  (s.getTransparency()==this.getTransparency()));
129
    }
130

  
131
    /**
132
     * @return
133
     */
134
    private boolean getTransparency() {
135
        return transparency;
136
    }
137

  
138
    /**
139
     * @param wmsTransparency
140
     */
141
    public void setTransparency(boolean wmsTransparency) {
142
        transparency = wmsTransparency;
143
    }
144
    
145
}

Also available in: Unified diff