Revision 4373 branches/v05/extensions/extWMS/src/com/iver/cit/gvsig/fmap/layers/FLyrWMS.java

View differences:

FLyrWMS.java
132 132
	private Hashtable 					onlineResources = new Hashtable();
133 133
	private Dimension 					fixedSize;
134 134
	private boolean 					queryable = true;
135
	private VisualStatusWMS				visualStatus = new VisualStatusWMS();
135
	private VisualStatus				visualStatus = new VisualStatus();
136 136
	
137 137
	/**
138 138
	 * Clase que contiene los datos de visualizaci?n de WMS.
139 139
	 * @author Nacho Brodin (brodin_ign@gva.es)
140 140
	 */
141
	private class VisualStatusWMS{
141
	private class VisualStatus {
142 142
		/**
143 143
		 * Ancho y alto de la imagen o del conjunto de tiles si los tiene. Coincide con 
144 144
		 * el ancho y alto del viewPort
......
277 277
	public void setXMLEntity(XMLEntity xml)
278 278
		throws XMLException {
279 279
		super.setXMLEntity(xml);
280
		fullExtent = StringUtilities.string2Rect(xml.getStringProperty(
281
					"fullExtent"));
282 280
		
283 281
		// Host
284 282
		try {
......
287 285
			throw new XMLException(e);
288 286
		}
289 287

  
288
		// Full extent
289
		fullExtent = StringUtilities.string2Rect(xml.getStringProperty("fullExtent"));
290

  
290 291
		// Part of the query that is not the host, or the
291 292
		// layer names, or other not listed bellow
292 293
		infoLayerQuery = xml.getStringProperty("infoLayerQuery");
......
598 599
            JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), e.getMessage());
599 600
			this.setVisible(false);
600 601
		}
601
		
602 602
	}
603 603

  
604 604
	/**
......
694 694
		throws DriverException {
695 695
		if (isVisible() && isWithinScale(scale)){	
696 696
		isPrinting = true;
697
		if (!mustTilePrint) {
697
		if (isSizeFixed()) {
698 698
			draw(null, g, viewPort, cancel,scale);
699 699
		} else {
700 700
	        // Para no pedir imagenes demasiado grandes, vamos
......
733 733
	 * @throws UnsupportedVersionException
734 734
	 * @throws IOException
735 735
	 */
736
	private FMapWMSDriver getDriver()
737
		throws IllegalStateException, ValidationException, 
738
			UnsupportedVersionException, IOException {
736
	private FMapWMSDriver getDriver() throws IllegalStateException, ValidationException, UnsupportedVersionException, IOException {
739 737
		if (wms == null) {
740 738
			//wmsClient = WMSClientFactory.getClient(host);
741 739
			wms = new FMapWMSDriver();
742 740
            wms.createClient(host);
743
            
744
		}
745

  
741
        }
746 742
		return wms;
747 743
	}
748 744
	

Also available in: Unified diff