Revision 26601 tmp/trunk/cliente/WorkSpace_WPSClient/extWPSCallejero/src/es/logex/gvsig/fmap/layers/SMapLayerInfoImpl_1_0_0.java

View differences:

SMapLayerInfoImpl_1_0_0.java
20 20
	private boolean visible;  
21 21
    private Double minScale;
22 22
    private Double maxScale;
23
    boolean hasBeenQueried;
24 23
	private String geometryType;
25 24
    
26 25
	public SMapLayerInfoImpl_1_0_0(String id, String name, String description, 
......
126 125
		return this.minScale;
127 126
	}
128 127
	
129
	public boolean mustReload(Rectangle2D newExtent) {
130
		
131
		
132
		if (!hasBeenQueried)
133
			return false;
134
		
135
		if (lastExtent == null) {
136
			return true;
137
		}
138
				
139
		if ((newExtent.getMinX() > lastExtent.getMinX()) && 
140
			(newExtent.getMinY() > lastExtent.getMinY()) &&
141
			(newExtent.getMaxX() < lastExtent.getMaxX()) &&
142
			(newExtent.getMaxY() < lastExtent.getMaxY()))
143
				return false;
144
		
145
		return true;
146
	}
147 128

  
148
	public boolean getHasBeenQueried() {
149
		return this.hasBeenQueried;
150
	}
151

  
152
	public void setHasBeenQueried(boolean hasBeenQueried) {
153
		this.hasBeenQueried = hasBeenQueried;
154
	}
155

  
156 129
	public String getGeometryType() {
157 130
		return this.geometryType;
158 131
	}

Also available in: Unified diff