Revision 6209
trunk/extensions/extWMS/src/com/iver/cit/gvsig/gui/dialogs/WMSRasterPropsDialog.java | ||
---|---|---|
29 | 29 |
import org.cresques.ui.BrightnessContrast.EnhancedBrightnessContrastPanel; |
30 | 30 |
import org.cresques.ui.raster.BandSetupPanel; |
31 | 31 |
import org.cresques.ui.raster.FilterRasterDialogPanel; |
32 |
import org.cresques.ui.raster.InfoPanel; |
|
32 | 33 |
import org.cresques.ui.raster.RasterTransparencyPanel; |
33 | 34 |
|
34 | 35 |
import com.hardcode.driverManager.Driver; |
... | ... | |
62 | 63 |
private JPanel propPanel = null; |
63 | 64 |
private IProjection currentProjection = null; |
64 | 65 |
private FLyrWMS fLayer = null; |
65 |
private static final int nprops = 11;
|
|
66 |
private static final int nprops = 13;
|
|
66 | 67 |
private Object[][] props = null; |
67 | 68 |
private RasterFilterStackManager stackManager = null; |
68 | 69 |
private Status status = null; |
... | ... | |
207 | 208 |
ep.getPBrightCont().setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1), (PluginServices.getText(this, "brillo_y_contraste")), javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, java.awt.Color.black)); |
208 | 209 |
ep.getPEnhanced().setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1), (PluginServices.getText(this, "realce")), javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, java.awt.Color.black)); |
209 | 210 |
|
211 |
|
|
212 |
InfoPanel ip = (InfoPanel)super.getPanelByClassName("InfoPanel"); |
|
213 |
|
|
214 |
ip.cabInfo = new String(PluginServices.getText(this, "Informacion")); |
|
215 |
ip.cabCoord = new String(PluginServices.getText(this, "coor_geograficas")); |
|
216 |
ip.cabProy = new String(PluginServices.getText(this, "Proyecciones")); |
|
217 |
ip.cabOrig = new String(PluginServices.getText(this, "origen_de_datos")); |
|
218 |
ip.refresh(); |
|
219 |
|
|
220 |
|
|
210 | 221 |
//Recorremos los Tab y traducimos el nombre |
211 | 222 |
for(int i=0;i<this.getTab().getTabCount();i++){ |
212 | 223 |
if(this.getTab().getTitleAt(i).equals("Info")) |
... | ... | |
244 | 255 |
*/ |
245 | 256 |
private void loadInfoData(){ |
246 | 257 |
Rectangle2D r = fLayer.getFullExtent(); |
247 |
if(fLayer!=null){
|
|
258 |
if(fLayer != null){
|
|
248 | 259 |
props = new Object[nprops][2]; |
249 |
props[0][0] = new String(PluginServices.getText(this,"Fichero")); |
|
250 |
props[0][1] = "http://"+fLayer.host.getHost()+fLayer.host.getFile();
|
|
251 |
props[1][0] = new String(PluginServices.getText(this,"num_bandas"));
|
|
252 |
props[1][1] = new String(String.valueOf( grf.getBandCount()));
|
|
253 |
props[2][0] = new String(PluginServices.getText(this,"ancho_alto")); |
|
254 |
props[2][1] = (int)(fLayer.getWidth())+" X "+(int)(fLayer.getHeight());
|
|
255 |
props[3][0] = new String(PluginServices.getText(this,"format"));
|
|
256 |
props[3][1] = fLayer.m_Format;
|
|
257 |
props[4][0] = new String(PluginServices.getText(this,"tipo_dato")); |
|
260 |
props[0][0] = new String(PluginServices.getText(this,"Fichero")+":");
|
|
261 |
props[0][1] = fLayer.getHost();
|
|
262 |
props[1][0] = new String(PluginServices.getText(this,"tamano")+":");
|
|
263 |
props[1][1] = "";
|
|
264 |
props[2][0] = new String(PluginServices.getText(this,"ancho_alto")+":");
|
|
265 |
props[2][1] = fLayer.getWidth()+" , "+fLayer.getHeight();
|
|
266 |
props[3][0] = new String(PluginServices.getText(this,"formato")+":");
|
|
267 |
props[3][1] = "WMS";
|
|
268 |
props[4][0] = new String(PluginServices.getText(this,"tipo_dato")+":");
|
|
258 | 269 |
String type = null; |
259 | 270 |
switch(grf.getDataType()){ |
260 | 271 |
case 0: type = new String("BYTE");break; |
... | ... | |
266 | 277 |
default: type = new String("UNDEFINED");break; |
267 | 278 |
} |
268 | 279 |
props[4][1] = type; |
269 |
props[5][0] = new String(PluginServices.getText(this,"coor_geograficas")); |
|
270 |
props[6][0] = new String(PluginServices.getText(this,"xmin")); |
|
271 |
props[6][1] = String.valueOf(fLayer.getMinX()); |
|
272 |
props[7][0] = new String(PluginServices.getText(this,"ymin")); |
|
273 |
props[7][1] = String.valueOf(fLayer.getMinY()); |
|
274 |
props[8][0] = new String(PluginServices.getText(this,"xmax")); |
|
275 |
props[8][1] = String.valueOf(fLayer.getMaxX()); |
|
276 |
props[9][0] = new String(PluginServices.getText(this,"ymax")); |
|
277 |
props[9][1] = String.valueOf(fLayer.getMaxY()); |
|
280 |
props[4][0] = new String(PluginServices.getText(this, "georeferenciado")+":"); |
|
281 |
props[4][1] = new String(PluginServices.getText(this, "si")); |
|
282 |
props[5][0] = new String(PluginServices.getText(this,"num_bandas")+":"); |
|
283 |
props[5][1] = new String(String.valueOf(grf.getBandCount())); |
|
284 |
props[6][0] = new String(PluginServices.getText(this,"coor_geograficas")); |
|
285 |
props[7][0] = new String(PluginServices.getText(this,"xmin")+":"); |
|
286 |
props[7][1] = String.valueOf(fLayer.getMinX()); |
|
287 |
props[8][0] = new String(PluginServices.getText(this,"ymin")+":"); |
|
288 |
props[8][1] = String.valueOf(fLayer.getMinY()); |
|
289 |
props[9][0] = new String(PluginServices.getText(this,"xmax")+":"); |
|
290 |
props[9][1] = String.valueOf(fLayer.getMaxX()); |
|
291 |
props[10][0] = new String(PluginServices.getText(this,"ymax")+":"); |
|
292 |
props[10][1] = String.valueOf(fLayer.getMaxY()); |
|
278 | 293 |
|
294 |
double tamRealX = fLayer.getMaxX()-fLayer.getMinX(); |
|
295 |
double tamRealY = fLayer.getMaxY()-fLayer.getMinY(); |
|
296 |
double tamX = Math.round((tamRealX/fLayer.getWidth())*10000000); |
|
297 |
double tamY = Math.round((tamRealY/fLayer.getHeight())*10000000); |
|
298 |
|
|
299 |
String tamPixX = String.valueOf(tamX/10000000); |
|
300 |
String tamPixY = String.valueOf(tamY/10000000); |
|
301 |
|
|
302 |
props[11][0] = new String(PluginServices.getText(this, "tamPixX")); |
|
303 |
props[11][1] = tamPixX + " " + new String(PluginServices.getText(this, "m/pixel")); |
|
304 |
props[12][0] = new String(PluginServices.getText(this, "tamPixY")); |
|
305 |
props[12][1] = tamPixY + " " + new String(PluginServices.getText(this, "m/pixel")); |
|
306 |
|
|
279 | 307 |
}else{ |
280 | 308 |
props = new Object[1][2]; |
281 | 309 |
props[0][0] = new String("No props"); |
Also available in: Unified diff