Revision 14821

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutInsertToolsExtension.java
60 60

  
61 61
    public void initialize() {
62 62
		// TODO Auto-generated method stub
63
    	registerIcons();
63 64
	}
64 65

  
66
    private void registerIcons(){
65 67

  
68
    	PluginServices.getIconTheme().register(
69
    			"view-select-geometry",
70
				this.getClass().getClassLoader().getResource("images/Select.png")
71
			);
72

  
73
    	PluginServices.getIconTheme().register(
74
    			"layout-insert-text",
75
				this.getClass().getClassLoader().getResource("images/MapaTexto.png")
76
			);
77

  
78
    	PluginServices.getIconTheme().register(
79
    			"layout-insert-point",
80
				this.getClass().getClassLoader().getResource("images/Point.png")
81
			);
82

  
83
    	PluginServices.getIconTheme().register(
84
    			"layout-insert-polygon",
85
				this.getClass().getClassLoader().getResource("images/Rectangle.png")
86
			);
87

  
88
    	PluginServices.getIconTheme().register(
89
    			"layout-insert-circle",
90
				this.getClass().getClassLoader().getResource("images/Circle.png")
91
			);
92

  
93

  
94
    	PluginServices.getIconTheme().register(
95
    			"layout-insert-line",
96
				this.getClass().getClassLoader().getResource("images/Rect.png")
97
			);
98

  
99
    	PluginServices.getIconTheme().register(
100
    			"layout-insert-polyline",
101
				this.getClass().getClassLoader().getResource("images/Line.png")
102
			);
103

  
104
    	PluginServices.getIconTheme().register(
105
    			"layout-insert-poligon",
106
				this.getClass().getClassLoader().getResource("images/Polygon.png")
107
			);
108

  
109
    	PluginServices.getIconTheme().register(
110
    			"layout-insert-image",
111
				this.getClass().getClassLoader().getResource("images/MapaImagen.png")
112
			);
113

  
114
    	PluginServices.getIconTheme().register(
115
    			"layout-insert-view",
116
				this.getClass().getClassLoader().getResource("images/MapaVista.png")
117
			);
118

  
119
    	PluginServices.getIconTheme().register(
120
    			"layout-insert-locator",
121
				this.getClass().getClassLoader().getResource("images/MapaLocalizador.png")
122
			);
123

  
124
    	PluginServices.getIconTheme().register(
125
    			"layout-insert-legend",
126
				this.getClass().getClassLoader().getResource("images/MapaLeyenda.png")
127
			);
128

  
129
    	PluginServices.getIconTheme().register(
130
    			"layout-insert-scalebar",
131
				this.getClass().getClassLoader().getResource("images/MapaEscala.png")
132
			);
133

  
134
    	PluginServices.getIconTheme().register(
135
    			"layout-insert-north",
136
				this.getClass().getClassLoader().getResource("images/MapaNorth.png")
137
			);
138

  
139
    	PluginServices.getIconTheme().register(
140
    			"layout-insert-box",
141
				this.getClass().getClassLoader().getResource("images/box.png")
142
			);
143
    }
144

  
66 145
    public void execute(String s) {
67 146
    	 layout = (Layout) PluginServices.getMDIManager().getActiveWindow();
68 147

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ZoomPrev.java
99 99
	 * @see com.iver.andami.plugins.IExtension#initialize()
100 100
	 */
101 101
	public void initialize() {
102

  
103
		PluginServices.getIconTheme().register(
104
				"view-zoom-back",
105
				this.getClass().getClassLoader().getResource("images/ZoomPrevio.png")
106
			);
102 107
	}
103 108
}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/LayoutRedoExtension.java
48 48
public class LayoutRedoExtension extends Extension{
49 49

  
50 50
	public void initialize() {
51
		registerIcons();
52
	}
51 53

  
54
	private void registerIcons(){
55
		PluginServices.getIconTheme().register(
56
				"layout-redo",
57
				this.getClass().getClassLoader().getResource("images/Redo.png")
58
			);
52 59
	}
53 60

  
54 61
	public void execute(String actionCommand) {
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/gui/PopupMenu.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
60 60
 * @author Vicente Caballero Navarro
61 61
 */
62 62
public class PopupMenu extends JPopupMenu {
63
    private static final ImageIcon editcopy = new ImageIcon(AddLayer.class.getClassLoader()
64
                                                                          .getResource("images/editcopy.png"));
65
    private static final ImageIcon editcut = new ImageIcon(AddLayer.class.getClassLoader()
66
                                                                         .getResource("images/editcut.png"));
67
    private static final ImageIcon editpaste = new ImageIcon(AddLayer.class.getClassLoader()
68
                                                                           .getResource("images/editpaste.png"));
69
    private static final ImageIcon editdelete = new ImageIcon(AddLayer.class.getClassLoader()
70
                                                                            .getResource("images/editdelete.png"));
63
    private static final ImageIcon editcopy = PluginServices.getIconTheme()
64
    	.get("edit-copy");
65
    private static final ImageIcon editcut = PluginServices.getIconTheme()
66
    	.get("edit-cut");
67
    private static final ImageIcon editpaste = PluginServices.getIconTheme()
68
    	.get("edit-paste");
69
    private static final ImageIcon editdelete = PluginServices.getIconTheme()
70
    	.get("edit-delete");
71

  
72

  
71 73
    private JMenuItem copy = null;
72 74
    private JMenuItem cut = null;
73 75
    private JMenuItem paste = null;
......
148 150
    				table.copyRow();
149 151
    			} catch (ReadDriverException e1) {
150 152
    				e1.printStackTrace();
151
    			} 
153
    			}
152 154
    			PluginServices.getMainFrame().enableControls();
153 155

  
154 156
    		}
......
160 162
    				table.cutRow();
161 163
    			} catch (ReadDriverException e1) {
162 164
    				e1.printStackTrace();
163
    			} 
165
    			}
164 166
    			PluginServices.getMainFrame().enableControls();
165 167

  
166 168
    		}
167 169
    	});
168 170
    	paste.addActionListener(new ActionListener() {
169 171
    		public void actionPerformed(ActionEvent e) {
170
    			//TODO este m?todo a?ade las filas seleccionadas previamente al final de la tabla.
171
    			//De momento no se puede a?adir filas en una posici?n en concreto.
172
    			//TODO este m�todo a�ade las filas seleccionadas previamente al final de la tabla.
173
    			//De momento no se puede a�adir filas en una posici�n en concreto.
172 174

  
173 175
    			try {
174 176
    				table.pasteRow();
......
176 178
    				e1.printStackTrace();
177 179
    			} catch (ReadDriverException e1) {
178 180
    				e1.printStackTrace();
179
    			} 
181
    			}
180 182
    			PluginServices.getMainFrame().enableControls();
181 183

  
182 184
    		}
183 185
    	});
184 186
//  	insertRow.addActionListener(new ActionListener() {
185 187
//  	public void actionPerformed(ActionEvent e) {
186
//  	//TODO Este m?todo a?ade filas al final de la tabla y deber?a a?adirlas justo antes de la fila que tengamos seleccionada.
188
//  	//TODO Este m�todo a�ade filas al final de la tabla y deber�a a�adirlas justo antes de la fila que tengamos seleccionada.
187 189

  
188 190
//  	try {
189 191
//  	table.addRow(null);
......
204 206
    				table.removeRow();
205 207
    			} catch (ReadDriverException e1) {
206 208
    				e1.printStackTrace();
207
    			} 
209
    			}
208 210
    			PluginServices.getMainFrame().enableControls();
209 211

  
210 212
    		}
......
226 228
    }
227 229

  
228 230
    /**
229
     * Set the menu enabled if it?s possible.
231
     * Set the menu enabled if its possible.
230 232
     *
231 233
     * @param b boolean
232 234
     */
......
254 256
    }
255 257

  
256 258
    /**
257
     * Set the menu of paste enabled if it?s possible
259
     * Set the menu of paste enabled if its possible
258 260
     *
259 261
     * @param b boolean
260 262
     */
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/ProjectTableFactory.java
16 16
import com.hardcode.gdbms.engine.data.driver.DBDriver;
17 17
import com.iver.andami.PluginServices;
18 18
import com.iver.andami.messages.NotificationManager;
19
import com.iver.cit.gvsig.AddLayer;
19 20
import com.iver.cit.gvsig.addlayer.AddLayerDialog;
20 21
import com.iver.cit.gvsig.addlayer.fileopen.FileOpenWizard;
21 22
import com.iver.cit.gvsig.fmap.edition.EditableAdapter;
......
45 46
    public static String registerName = "ProjectTable";
46 47

  
47 48
    static {
48
  		// A?adimos nuestra extension para el tratamiento de la apertura de ficheros
49
  		// Aadimos nuestra extension para el tratamiento de la apertura de ficheros
49 50
  		// dentro de gvSIG
50 51
  		ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance();
51 52
  		extensionPoints.add("FileTableOpenDialog", "FileOpenTable", new TableFileOpen());
......
57 58
     * @return Image button.
58 59
     */
59 60
    public ImageIcon getButtonIcon() {
60
        return new ImageIcon(this.getClass().getClassLoader().getResource("images/tablas.png"));
61
        return PluginServices.getIconTheme().get("table-icon");
61 62
    }
62 63

  
63 64
    /**
......
66 67
     * @return Image button.
67 68
     */
68 69
    public ImageIcon getSelectedButtonIcon() {
69
        return new ImageIcon(this.getClass().getClassLoader().getResource("images/tablas_sel.png"));
70
        return PluginServices.getIconTheme().get("table-sel-icon");
70 71
    }
71 72

  
72 73
    /**
......
246 247
        registerAction(registerName,"copy",new CopyDocumentContextMenuAction());
247 248
        registerAction(registerName,"cut",new CutDocumentContextMenuAction());
248 249
        registerAction(registerName,"paste",new PasteDocumentContextMenuAction());
250

  
251
        PluginServices.getIconTheme().register(
252
        		"table-icon",
253
        		AddLayer.class.getClassLoader().getResource("images/tablas.png")
254
        	);//
255
        PluginServices.getIconTheme().register(
256
        		"table-sel-icon",
257
        		AddLayer.class.getClassLoader().getResource("images/tablas_sel.png")
258
        	);
259

  
260
        PluginServices.getIconTheme().register(
261
        		"edit-copy",
262
        		AddLayer.class.getClassLoader().getResource("images/editcopy.png")
263
        	);//
264
        PluginServices.getIconTheme().register(
265
        		"edit-cut",
266
        		AddLayer.class.getClassLoader().getResource("images/editcut.png")
267
        	);
268
        PluginServices.getIconTheme().register(
269
        		"edit-paste",
270
        		AddLayer.class.getClassLoader().getResource("images/editpaste.png")
271
        	);
272
        PluginServices.getIconTheme().register(
273
        		"edit-delete",
274
        		AddLayer.class.getClassLoader().getResource("images/editdelete.png")
275
        	);
249 276
    }
250 277

  
251 278
    /**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/QuantityByCategory.java
170 170
		if (previewSymbol == null) {
171 171
			try {
172 172
				previewSymbol = new PictureFillSymbol();
173
				previewSymbol.setImage(
174
					new File(
175
						this.getClass().getClassLoader().
176
						getResource("images/QuantitiesByCategory.png").
177
						getFile()));
173
				previewSymbol.setImage( new File(
174
						PluginServices.getIconTheme()
175
						.getURL("quantities-by-category").getFile())
176
						);
178 177
				previewSymbol.getMarkerFillProperties().
179 178
					setFillStyle(
180 179
						IMarkerFillPropertiesStyle.SINGLE_CENTERED_SYMBOL);
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/VectorialUniqueValue.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
167 167

  
168 168
        JPanel pnlNorth = new JPanel(new FlowLayout(FlowLayout.LEFT, 20, 0));
169 169
        JPanel pAux1 = new JPanel();
170
        
170

  
171 171
        JLabel lblFieldClassification = new JLabel(PluginServices.getText(
172 172
                    this, "Campo_de_clasificacion"));
173 173
        pAux1.add(lblFieldClassification);
174 174
        pAux1.add(cmbFields);
175 175
        pAux1.add(getChbUseDefault(), null);
176 176
        pnlNorth.add(pAux1);
177
        
177

  
178 178
        pAux1 = new JPanel();
179 179
        pAux1.add(new JLabel(PluginServices.getText(this, "color_scheme")+":"));
180 180
        cmbColorScheme = new JComboBoxColorScheme(false);
181
       
181

  
182 182
        pAux1.add(cmbColorScheme);
183
        
183

  
184 184
        pnlNorth.add(pAux1);
185
        
185

  
186 186
        this.setLayout(new BorderLayout());
187 187
        this.add(pnlNorth, BorderLayout.NORTH);
188 188
        this.add(pnlCenter, BorderLayout.CENTER);
189 189
        this.add(pnlButtons, BorderLayout.SOUTH);
190
        
190

  
191 191
    }
192 192

  
193 193
    /**
......
198 198

  
199 199
        try {
200 200
            elRs = ((FLyrVect) layer).getRecordset();
201
            logger.debug("elRs.start()");
201 202
            elRs.start();
202 203

  
203 204
            int idField = -1;
......
237 238

  
238 239
            ColorItem[] colorScheme = cmbColorScheme.getSelectedColors();
239 240
            Random rand = new Random(System.currentTimeMillis());
240
            
241

  
241 242
            for (int j = 0; j < elRs.getRowCount(); j++) {
242 243
                clave = elRs.getFieldValue(j, idField);
243 244

  
......
288 289

  
289 290
    /**
290 291
     * A partir de los registros de la tabla, regenera el FRenderer. (No solo
291
     * el symbolList, si no tambi?n el arrayKeys y el defaultRenderer
292
     * el symbolList, si no tambin el arrayKeys y el defaultRenderer
292 293
     */
293 294
    private void fillSymbolListFromTable() {
294 295
        Value clave;
......
390 391
            theLegend.useDefaultSymbol(chbUseDefault.isSelected());
391 392
        }
392 393
        theLegend.setZSort(zSort);
393
        
394

  
394 395
        return theLegend;
395 396
    }
396 397

  
......
415 416
    }
416 417

  
417 418
    /**
418
     * A?ade el resto de valores.
419
     * Aade el resto de valores.
419 420
     */
420 421
    private void addDefault() {
421 422
        auxLegend.getDefaultSymbol().setDescription("Default");
......
426 427
    }
427 428

  
428 429
    /**
429
     * Elimina el resto de valores que no estan representados por ning?n otro s?mbolo..
430
     * Elimina el resto de valores que no estan representados por ning�n otro s�mbolo..
430 431
     */
431 432
    private void delDefault() {
432 433
        auxLegend.delSymbol(new NullUniqueValue());
......
450 451
    		}
451 452
    	}
452 453

  
453
    	//A?adir todos los elementos por valor
454
    	//Aadir todos los elementos por valor
454 455
    	if (e.getActionCommand() == "ADD_ALL_VALUES") {
455 456
    		fillTableValues();
456 457
    	}
457 458

  
458
    	//A?adir un ?nico elemento
459
    	//A�adir un �nico elemento
459 460
    	if (e.getActionCommand() == "ADD_VALUE") {
460 461
    		try {
461 462
    			symbolTable.addTableRecord(SymbologyFactory.
......
500 501
	}
501 502

  
502 503
	public ISymbol getIconSymbol() {
503
		if (previewSymbol == null) {		
504
    		try {
504
		if (previewSymbol == null) {
505
			try {
505 506
    			previewSymbol = new PictureFillSymbol();
506 507
    			previewSymbol.setImage(
507 508
    					new File(
508
    							this.getClass().getClassLoader().
509
    							getResource("images/ValoresUnicos.png").
510
    							getFile()));
511
    			previewSymbol.getMarkerFillProperties().
509
							PluginServices.getIconTheme()
510
							.getURL("vectorial-unique-value")
511
							.getFile()));
512
				previewSymbol.getMarkerFillProperties().
512 513
    			setFillStyle(
513 514
    					IMarkerFillPropertiesStyle.SINGLE_CENTERED_SYMBOL);
514
    		} catch (IOException e) {
515
    			return null;
516
    		}
517
    	}
515
				
516
			} catch (IOException e) {
517
				return null;
518
			}
519
		}
518 520
		return previewSymbol;
519 521
	}
520 522

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/PlacementProperties.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
420 420

  
421 421
	private JLabel getPolygonIcon() {
422 422
		if (polygonIcon == null) {
423
			polygonIcon = new JLabel(new ImageIcon(
424
					getClass().getClassLoader().
425
					getResource("images/label-polygon-always-horizontal.png")));
423
			polygonIcon = new JLabel(PluginServices.getIconTheme().get("polygon-al-h-label"));
426 424
		}
427 425
		return polygonIcon;
428 426
	}
429 427

  
430 428
	private JLabel getLineIcon() {
431 429
		if (lineIcon == null) {
432
			lineIcon = new JLabel(new ImageIcon(
433
					getClass().getClassLoader().
434
					getResource("images/label-line.png")));
430
			lineIcon = new JLabel(PluginServices.getIconTheme().get("line-label"));
435 431
		}
436 432
		return lineIcon;
437 433
	}
......
663 659
		if (c.equals(rdBtnAlwaysHorizontal) || c.equals(rdBtnAlwaysStraight) ) {
664 660
			boolean horizontal = rdBtnAlwaysHorizontal.isSelected();
665 661
			if (horizontal) {
666
				getPolygonIcon().setIcon(new ImageIcon(
667
						getClass().getClassLoader().
668
						getResource("images/label-polygon-always-horizontal.png")));
662
				getPolygonIcon().setIcon(PluginServices.getIconTheme()
663
						.get("polygon-al-h-label"));
669 664
			} else {
670
				getPolygonIcon().setIcon(new ImageIcon(
671
						getClass().getClassLoader().
672
						getResource("images/label-polygon-always-straight.png")));
665
				getPolygonIcon().setIcon(PluginServices.getIconTheme()	
666
						.get("polygon-al-s-label"));
673 667
			}
674 668
		} else if (c.equals(rdBtnHorizontal)) {
675 669
			// lock position panel and location panel
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/DotDensity.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
89 89
* *** empty log message ***
90 90
*
91 91
* Revision 1.3  2006/11/17 12:50:36  jaume
92
* tama?o de punto defecto 2
92
* tamao de punto defecto 2
93 93
*
94 94
* Revision 1.2  2006/11/15 12:57:31  jaume
95 95
* *** empty log message ***
......
588 588
     */
589 589
    private JRadioButton getRdBtnMedium() {
590 590
        if (rdBtnMedium == null) {
591
            rdBtnMedium = new JRadioButton(new ImageIcon(
592
            		getClass().getClassLoader().
593
        			getResource("images/medium-density-sample.png")));
591
			rdBtnMedium = new JRadioButton(PluginServices.getIconTheme()
592
            		.get("medium-density"));
594 593
            rdBtnMedium.addActionListener(buttonsListener);
595 594
        }
596 595
        return rdBtnMedium;
......
603 602
     */
604 603
    private JRadioButton getRdBtnLow() {
605 604
        if (rdBtnLow == null) {
606
            rdBtnLow = new JRadioButton(new ImageIcon(
607
            		getClass().getClassLoader().
608
        			getResource("images/low-density-sample.png")));
605
			rdBtnLow = new JRadioButton(PluginServices.getIconTheme().get("low-density"));
609 606
            rdBtnLow.addActionListener(buttonsListener);
610 607
        }
611 608
        return rdBtnLow;
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/VectorialInterval.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
436 436
        return sym;
437 437
    }
438 438
    /**
439
     * Damos una primera pasada para saber los l?mites inferior y superior y
439
     * Damos una primera pasada para saber los lmites inferior y superior y
440 440
     * rellenar un array con los valores. Luego dividimos ese array en
441 441
     * intervalos.
442 442
     */
......
448 448
            FInterval[] arrayIntervalos = calculateIntervals();
449 449
            if (arrayIntervalos == null)
450 450
            	return;
451
            
451

  
452 452
            FInterval interval;
453 453
            NumberFormat.getInstance().setMaximumFractionDigits(2);
454 454
            theLegend.clear();
......
460 460
            int stepG;
461 461
            int stepB;
462 462

  
463
            // Cogemos el tipo de gradaci?n de colores que quiere el usuario y
464
            // Creamos el primer y ?ltimo color.
463
            // Cogemos el tipo de gradacin de colores que quiere el usuario y
464
            // Creamos el primer y ltimo color.
465 465
            Color startColor = colorChooserPanel.getColor();
466 466
            theLegend.setStartColor(startColor);
467 467

  
......
474 474
            stepR = (endColor.getRed() - r) / arrayIntervalos.length;
475 475
            stepG = (endColor.getGreen() - g) / arrayIntervalos.length;
476 476
            stepB = (endColor.getBlue() - b) / arrayIntervalos.length;
477
            
478
            auxLegend = LegendFactory.createVectorialIntervalLegend(layer.getShapeType()); 
479
            
477

  
478
            auxLegend = LegendFactory.createVectorialIntervalLegend(layer.getShapeType());
479

  
480 480
            if (chkdefaultvalues.isSelected()) {
481 481
                auxLegend.getDefaultSymbol().setDescription("Default");
482
                auxLegend.addSymbol(new NullIntervalValue(), 
482
                auxLegend.addSymbol(new NullIntervalValue(),
483 483
                		auxLegend.getDefaultSymbol());
484 484
            }
485 485

  
486 486
            int symbolType = layer.getShapeType();
487 487
            int numSymbols = 0;
488
           
489
            
488

  
490 489
            for (int k = 0; k < arrayIntervalos.length; k++) {
491 490
                interval = arrayIntervalos[k];
492
                
491

  
493 492
                ISymbol theSymbol = newSymbol(symbolType, new Color(r, g, b));
494 493
                theSymbol.setDescription(NumberFormat.getInstance().format(interval.getMin()) +
495 494
                    " - " +
......
548 547
    			throw new Exception();
549 548
    		}
550 549
    	} catch (Exception e) {
551
    		JOptionPane.showMessageDialog(this, 
550
    		JOptionPane.showMessageDialog(this,
552 551
    				PluginServices.getText(this, "invalid_interval_count_value"));
553 552
    		return null;
554 553
    	}
555
    	
554

  
556 555
    	try {
557
    		
556

  
558 557
    		return theLegend.calculateIntervals(
559 558
    				((AlphanumericData) layer).getRecordset(),
560 559
    				(String) cmbField.getSelectedItem(),
......
599 598
            colorChooserPanel.repaint();
600 599
            colorChooserPanel1.repaint();
601 600
        } else {
602
        	// Si la capa viene con otro tipo de leyenda, creamos
603
        	// una nueva del tipo que maneja este panel
604
        	theLegend = new VectorialIntervalLegend();
605
        	theLegend.setShapeType(shapeType);
601
        		// Si la capa viene con otro tipo de leyenda, creamos
602
        		// una nueva del tipo que maneja este panel
603
        		theLegend = new VectorialIntervalLegend();
604
        		theLegend.setShapeType(shapeType);
606 605
        }
607 606

  
608 607
        cmbFieldType.setSelectedIndex(theLegend.getIntervalType());
......
657 656
        	// your settings that are not the set of symbols must be located here
658 657
        	auxLegend.setClassifyingFieldNames(
659 658
        			new String[] {(String) getCmbFields().getSelectedItem()});
660
        
661
        	
662
        	
659

  
660

  
661

  
663 662
        	theLegend = auxLegend;
664 663
        }
665 664

  
......
668 667

  
669 668
    /**
670 669
     * A partir de los registros de la tabla, regenera el FRenderer. (No solo
671
     * el symbolList, si no tambi?n el arrayKeys y el defaultRenderer
670
     * el symbolList, si no tambin el arrayKeys y el defaultRenderer
672 671
     */
673 672
    private void fillSymbolListFromTable() {
674 673
        ISymbol theSymbol;
......
711 710
    }
712 711

  
713 712
    /**
714
     * A?ade la fila y el s?mbolo para el resto de valores no representados.
713
     * A�ade la fila y el s�mbolo para el resto de valores no representados.
715 714
     */
716 715
    private void addDefault() {
717 716

  
......
725 724
    }
726 725

  
727 726
    /**
728
     * Elimina la fila de la tabla y el s?mbolo del resto de valores no
729
     * representados por ning?n valor.
727
     * Elimina la fila de la tabla y el smbolo del resto de valores no
728
     * representados por ningn valor.
730 729
     */
731 730
    private void delDefault() {
732 731
        auxLegend.delSymbol(new NullIntervalValue());
......
762 761
                }
763 762
            }
764 763

  
765
            //A?adir todos los elementos por valor
764
            //Aadir todos los elementos por valor
766 765
            if (e.getActionCommand() == "ADD_ALL_VALUES") {
767 766
                fillTableValues();
768 767
            }
769 768

  
770
            //A?adir un ?nico elemento
769
            //A�adir un �nico elemento
771 770
            if (e.getActionCommand() == "ADD_VALUE") {
772 771
                try {
773 772
                    symbolTable.addTableRecord(newSymbol(
......
796 795
    }
797 796

  
798 797
    public ISymbol getIconSymbol() {
799
    	if (previewSymbol == null) {		
800
    		try {
801
    			previewSymbol = new PictureFillSymbol();
802
    			previewSymbol.setImage(
803
    					new File(
804
    							this.getClass().getClassLoader().
805
    							getResource("images/Intervalos.png").
806
    							getFile()));
798
        if (previewSymbol == null) {
799
            try {
800
            	previewSymbol = new PictureFillSymbol();
801
    			previewSymbol.setImage( new File(
802
    				PluginServices
803
                		.getIconTheme().getURL("vectorial-interval").getFile()));
807 804
    			previewSymbol.getMarkerFillProperties().
808 805
    			setFillStyle(
809 806
    					IMarkerFillPropertiesStyle.SINGLE_CENTERED_SYMBOL);
810
    		} catch (IOException e) {
811
    			return null;
812
    		}
813
    	}
814
    	return previewSymbol;
807
            } catch (IOException e) {
808
                return null;
809
            }
810
        }
811
        return previewSymbol;
815 812
    }
816 813

  
817 814
    public Class getParentClass() {
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/MapOverviewPanListener.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
51 51

  
52 52
import javax.swing.ImageIcon;
53 53

  
54
import com.iver.andami.PluginServices;
54 55
import com.iver.cit.gvsig.fmap.MapControl;
55 56
import com.iver.cit.gvsig.fmap.ViewPort;
56 57
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
......
65 66
 * @author Vicente Caballero Navarro
66 67
 */
67 68
public class MapOverviewPanListener implements PanListener {
68
	private final Image icursor = new ImageIcon(MapControl.class.getResource(
69
				"images/CruxCursor.png")).getImage();
69
	private final Image icursor = PluginServices
70
		.getIconTheme().get("crux-cursor").getImage();
70 71
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(icursor,
71 72
			new Point(16, 16), "");
72 73
	protected MapControl mapControl;
......
165 166
			Rectangle2D realRectangle = new Rectangle2D.Double();		
166 167
			double width =curRectangle.getWidth();
167 168
			double height =curRectangle.getHeight();
168
			// Creamos un rectangulo del mismo tama?o
169
			// Creamos un rectangulo del mismo tamao
169 170
			// con la coordenadas del punto del raton,
170 171
			// teniendo en cuenta que estas sera el 
171 172
			// centro del recuadro
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/MapOverviewListener.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
65 65
 * @author Vicente Caballero Navarro
66 66
 */
67 67
public class MapOverviewListener implements PointListener {
68
	private final Image izoomout = new ImageIcon(MapControl.class.getResource(
69
				"images/CruxCursor.png")).getImage();
68
	private final Image izoomout = PluginServices.getIconTheme().get("crux-cursor").getImage();
70 69
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(izoomout,
71 70
			new Point(16, 16), "");
72 71
	protected MapOverview mapControl;
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/MapOverviewChangeZoomListener.java
13 13

  
14 14
import javax.swing.ImageIcon;
15 15

  
16
import com.iver.andami.PluginServices;
16 17
import com.iver.cit.gvsig.fmap.MapControl;
17 18
import com.iver.cit.gvsig.fmap.ViewPort;
18 19
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
......
30 31

  
31 32

  
32 33
public class MapOverviewChangeZoomListener implements RectangleListener, PanListener {
33
	private final Image izoomin = new ImageIcon(MapControl.class.getResource(
34
	"images/ZoomInCursor.gif")).getImage();
34
	private final Image izoomin = PluginServices.getIconTheme()
35
		.get("cursor-zoom-in").getImage();
36
	
35 37
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(izoomin,new Point(16, 16), "");
36 38
	protected MapControl mapControl;
37 39

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/CircleMeasureListener.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
60 60

  
61 61

  
62 62
/**
63
 * Implementaci?n de la interfaz CircleListener como herramienta para
63
 * Implementacin de la interfaz CircleListener como herramienta para
64 64
 * realizar una medicion circular
65 65
 *
66 66
 * @author Laura
67 67
 */
68 68
public class CircleMeasureListener implements CircleListener {
69
	private final Image img = new ImageIcon(MapControl.class.getResource(
70
				"images/RulerCursor.gif")).getImage();
69
	private final Image img = PluginServices.getIconTheme().get("cursor-query-distance").getImage();
71 70
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img,
72 71
			new Point(16, 16), "");
73 72
	private MapControl mapCtrl;
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/InfoListener.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
87 87
	private static Logger logger = Logger.getLogger(InfoListener.class
88 88
			.getName());
89 89

  
90
	private final Image img = new ImageIcon(MapControl.class
91
			.getResource("images/InfoCursor.gif")).getImage();
90
	private final Image img = PluginServices.getIconTheme().get("cursor-query-information").getImage();
91
	
92 92

  
93 93
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img,
94 94
			new Point(16, 16), "");
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/LinkListener.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
53 53
import org.apache.log4j.Logger;
54 54

  
55 55
import com.iver.andami.PluginServices;
56
import com.iver.andami.persistence.generate.PluginsStatus;
56 57
import com.iver.cit.gvsig.fmap.MapControl;
57 58
import com.iver.cit.gvsig.fmap.layers.FLayer;
58 59
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
......
75 76
 */
76 77
public class LinkListener implements PointListener {
77 78
	private static Logger logger = Logger.getLogger(InfoListener.class.getName());
78
	private final Image img = new ImageIcon(MapControl.class.getResource(
79
				"images/LinkCursor.gif")).getImage();
79
	private final Image img = PluginServices.getIconTheme()
80
		.get("cursor-hiperlink").getImage();
80 81
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img,
81 82
			new Point(16, 16), "");
82 83
	private MapControl mapCtrl;
......
118 119
            	uri=lyrVect.getLink(pReal,tol);
119 120
            	if (uri == null){
120 121
            		JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(),"Error" +
121
            				" no has seleccionado una geometr?a para realizar HyperLink.");
122
            				" no has seleccionado una geometra para realizar HyperLink.");
122 123
            		return;
123 124
            	}
124 125
            	for(int j=0; j<uri.length;j++){
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/ProjectViewFactory.java
11 11

  
12 12
import com.iver.andami.PluginServices;
13 13
import com.iver.cit.gvsig.fmap.MapContext;
14
import com.iver.cit.gvsig.fmap.MapControl;
14 15
import com.iver.cit.gvsig.fmap.ViewPort;
15 16
import com.iver.cit.gvsig.project.Project;
16 17
import com.iver.cit.gvsig.project.documents.ProjectDocument;
......
20 21
import com.iver.cit.gvsig.project.documents.contextMenu.actions.PasteDocumentContextMenuAction;
21 22
import com.iver.cit.gvsig.project.documents.table.ProjectTableFactory;
22 23
import com.iver.cit.gvsig.project.documents.view.gui.View;
24
import com.iver.cit.gvsig.project.documents.view.legend.gui.DotDensity;
25
import com.iver.cit.gvsig.project.documents.view.legend.gui.PlacementProperties;
26
import com.iver.cit.gvsig.project.documents.view.legend.gui.QuantityByCategory;
27
import com.iver.cit.gvsig.project.documents.view.legend.gui.SingleSymbol;
28
import com.iver.cit.gvsig.project.documents.view.legend.gui.VectorialInterval;
29
import com.iver.cit.gvsig.project.documents.view.legend.gui.VectorialUniqueValue;
23 30
import com.iver.utiles.XMLEntity;
24 31

  
25 32

  
......
38 45
     * @return Image button.
39 46
     */
40 47
    public ImageIcon getButtonIcon() {
41
        return new ImageIcon(this.getClass().getClassLoader().getResource("images/Vista.png"));
48
		return PluginServices.getIconTheme().get("vista-icon");
42 49
    }
43 50

  
44 51
    /**
......
47 54
     * @return Image button.
48 55
     */
49 56
    public ImageIcon getSelectedButtonIcon() {
50
        return new ImageIcon(this.getClass().getClassLoader().getResource("images/Vista_sel.png"));
57
		return PluginServices.getIconTheme().get("vista-sel-icon");
51 58
    }
52 59

  
53 60
    /**
......
65 72
        viewName = aux + " - " + numViews++;
66 73

  
67 74
        if (project != null) {
68
            // Buscamos si alguna vista ya ten?a este nombre:
75
            // Buscamos si alguna vista ya tena este nombre:
69 76
            while (existName(project, viewName)) {
70 77
                viewName = aux + " - " + numViews++;
71 78
            }
......
142 149
        registerAction(registerName,"copy",new CopyDocumentContextMenuAction());
143 150
        registerAction(registerName,"cut",new CutDocumentContextMenuAction());
144 151
        registerAction(registerName,"paste",new PasteDocumentContextMenuAction());
152

  
153
        PluginServices.getIconTheme().register(
154
        		"vista-icon",
155
        		ProjectView.class.getClassLoader().getResource("images/Vista.png")
156
        	);
157
        PluginServices.getIconTheme().register(
158
        		"vista-sel-icon",
159
        		ProjectView.class.getClassLoader().getResource("images/Vista_sel.png")
160
        	);
161

  
162
        PluginServices.getIconTheme().register(
163
        		"high-density",
164
        		DotDensity.class.getClassLoader().getResource("images/high-density-sample.png")
165
        	);
166
        PluginServices.getIconTheme().register(
167
        		"medium-density",
168
        		DotDensity.class.getClassLoader().getResource("images/medium-density-sample.png")
169
        	);
170
        PluginServices.getIconTheme().register(
171
        		"low-density",
172
        		DotDensity.class.getClassLoader().getResource("images/low-density-sample.png")
173
        	);
174

  
175
        PluginServices.getIconTheme().register(
176
        		"polygon-al-h-label",
177
        		PlacementProperties.class.getClassLoader().getResource("images/label-polygon-always-horizontal.png")
178
        	);
179
        PluginServices.getIconTheme().register(
180
        		"line-label",
181
        		PlacementProperties.class.getClassLoader().getResource("images/label-line.png")
182
        	);
183
        PluginServices.getIconTheme().register(
184
        		"polygon-al-s-label",
185
        		PlacementProperties.class.getClassLoader().getResource("images/label-polygon-always-straight.png")
186
        	);
187

  
188
        PluginServices.getIconTheme().register(
189
        		"cursor-query-distance",
190
        		MapControl.class.getClassLoader().getResource("images/RulerCursor.gif")
191
        	);
192

  
193
        PluginServices.getIconTheme().register(
194
        		"cursor-query-information",
195
        		MapControl.class.getResource("images/InfoCursor.gif")
196
        	);
197
        PluginServices.getIconTheme().register(
198
        		"cursor-hiperlink",
199
        		MapControl.class.getResource("images/LinkCursor.gif")
200
        	);
201
        PluginServices.getIconTheme().register(
202
        		"cursor-zoom-in",
203
        		MapControl.class.getClassLoader().getResource("images/ZoomInCursor.gif")
204
        	);
205
        PluginServices.getIconTheme().register(
206
        		"cursor-zoom-in",
207
        		MapControl.class.getClassLoader().getResource("images/ZoomInCursor.gif")
208
        	);
209
        PluginServices.getIconTheme().register(
210
        		"quantities-by-category",
211
        		QuantityByCategory.class.getClassLoader().getResource("images/QuantitiesByCategory.png")
212
        	);
213
        PluginServices.getIconTheme().register(
214
           		"single-symbol",
215
           		SingleSymbol.class.getClassLoader().getResource("images/single-symbol.png")
216
           	);
217
        PluginServices.getIconTheme().register(
218
           		"vectorial-interval",
219
           		VectorialInterval.class.getClassLoader().getResource("images/Intervalos.png")
220
           	);
221
        PluginServices.getIconTheme().register(
222
           		"vectorial-unique-value",
223
           		VectorialUniqueValue.class.getClassLoader().getResource("images/ValoresUnicos.png")
224
           	);
225
        PluginServices.getIconTheme().register(
226
           		"vectorial-unique-value",
227
           		VectorialUniqueValue.class.getClassLoader().getResource("images/ValoresUnicos.png")
228
           	);
229
        PluginServices.getIconTheme().register(
230
           		"crux-cursor",
231
           		MapControl.class.getClassLoader().getResource("images/CruxCursor.png")
232
           	);
233

  
234

  
145 235
    }
146 236

  
147 237
    /**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutAddNorthListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
60 60

  
61 61

  
62 62
/**
63
 * Implementaci?n de la interfaz LayoutRectangleListener como herramienta para
64
 * realizar una inserci?n por rect?ngulo.
63
 * Implementacin de la interfaz LayoutRectangleListener como herramienta para
64
 * realizar una inserci�n por rect�ngulo.
65 65
 *
66 66
 * @author Vicente Caballero Navarro
67 67
 */
68 68
public class LayoutAddNorthListenerImpl extends LayoutAddRectangleListener {
69
	private final Image img = new ImageIcon(MapControl.class.getResource(
70
				"images/RectSelectCursor.gif")).getImage();
71

  
69
	private final Image img = PluginServices.getIconTheme()
70
		.get("rect-select-cursor").getImage();
72 71
	/**
73 72
	 * Crea un nuevo LayoutAddRectangleListener.
74 73
	 *
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutAddPolylineListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
59 59

  
60 60

  
61 61
/**
62
 * Implementaci?n de la interfaz LayoutPointListener como herramienta para a?adir una polilinea.
62
 * Implementaci�n de la interfaz LayoutPointListener como herramienta para a�adir una polilinea.
63 63
 *
64 64
 * @author Vicente Caballero Navarro
65 65
 */
66 66
public class LayoutAddPolylineListenerImpl implements LayoutPointListener, ILayoutGraphicListener {
67
	 public static final Image iLine = new ImageIcon(AddLayer.class
68
	            .getClassLoader().getResource("images/LineCursor.png")).getImage();
67
	 public static final Image iLine = PluginServices.getIconTheme()
68
	 	.get("line-cursor").getImage();
69 69
	private Layout layout;
70 70

  
71 71
	/**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutViewZoomInListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
45 45

  
46 46
import javax.swing.ImageIcon;
47 47

  
48
import com.iver.andami.PluginServices;
48 49
import com.iver.cit.gvsig.AddLayer;
49 50
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
50 51
import com.iver.cit.gvsig.fmap.tools.Events.PointEvent;
......
53 54

  
54 55

  
55 56
/**
56
 * Implementaci?n de la interfaz LayoutPanListener como herramienta para realizar el
57
 * zoom m?s sobre una vista seleccionada.
57
 * Implementacin de la interfaz LayoutPanListener como herramienta para realizar el
58
 * zoom ms sobre una vista seleccionada.
58 59
 *
59 60
 * @author Vicente Caballero Navarro
60 61
 */
61 62
public class LayoutViewZoomInListenerImpl implements LayoutMoveListener {
62
	 public static final Image izoomin = new ImageIcon(AddLayer.class
63
	            .getClassLoader().getResource("images/ZoomInCursor.gif"))
64
	            .getImage();
63
	 public static final Image izoomin = PluginServices.getIconTheme()
64
	 	.get("zoom-in-cursor").getImage();
65 65
	private Layout layout;
66 66
	/**
67 67
	 * Crea un nuevo LayoutViewZoomInListenerImpl.
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutEditGraphicsListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
44 44

  
45 45
import javax.swing.ImageIcon;
46 46

  
47
import com.iver.andami.PluginServices;
47 48
import com.iver.cit.gvsig.AddLayer;
48 49
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
49 50
import com.iver.cit.gvsig.fmap.tools.Events.PointEvent;
......
55 56

  
56 57

  
57 58
/**
58
 * Implementaci?n de la interfaz LayoutMoveListener como herramienta para editar
59
 * una geometr?a.
59
 * Implementacin de la interfaz LayoutMoveListener como herramienta para editar
60
 * una geometra.
60 61
 *
61 62
 * @author Vicente Caballero Navarro
62 63
 */
63 64
public class LayoutEditGraphicsListenerImpl implements LayoutMoveListener {
64
	public static final Image icrux = new ImageIcon(AddLayer.class
65
	            .getClassLoader().getResource("images/CruxCursor.png")).getImage();
65
	public static final Image icrux = PluginServices.getIconTheme()
66
		.get("crux-cursor").getImage();
66 67
	private Layout layout;
67 68
	/**
68 69
	 * Crea un nuevo LayoutSelectionListenerImpl.
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutViewZoomOutListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
45 45

  
46 46
import javax.swing.ImageIcon;
47 47

  
48
import com.iver.andami.PluginServices;
48 49
import com.iver.cit.gvsig.AddLayer;
49 50
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
50 51
import com.iver.cit.gvsig.fmap.tools.Events.PointEvent;
......
53 54

  
54 55

  
55 56
/**
56
 * Implementaci?n de la interfaz LayoutPanListener como herramienta para realizar el
57
 * Implementacin de la interfaz LayoutPanListener como herramienta para realizar el
57 58
 * zoom menos sobre una vista seleccionada.
58 59
 *
59 60
 * @author Vicente Caballero Navarro
60 61
 */
61 62
public class LayoutViewZoomOutListenerImpl implements LayoutMoveListener {
62
	 public static final Image izoomout = new ImageIcon(AddLayer.class
63
	            .getClassLoader().getResource("images/ZoomOutCursor.gif"))
64
	            .getImage();
63
	 public static final Image izoomout = PluginServices.getIconTheme()
64
	 	.get("zoom-out-cursor").getImage();
65 65
	private Layout layout;
66 66
	/**
67 67
	 * Crea un nuevo LayoutViewZoomInListenerImpl.
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutAddLegendListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
60 60

  
61 61

  
62 62
/**
63
 * Implementaci?n de la interfaz LayoutRectangleListener como herramienta para
64
 * realizar una inserci?n por rect?ngulo.
63
 * Implementacin de la interfaz LayoutRectangleListener como herramienta para
64
 * realizar una inserci�n por rect�ngulo.
65 65
 *
66 66
 * @author Vicente Caballero Navarro
67 67
 */
68 68
public class LayoutAddLegendListenerImpl extends LayoutAddRectangleListener {
69
	private final Image img = new ImageIcon(MapControl.class.getResource(
70
				"images/RectSelectCursor.gif")).getImage();
71

  
69
	private final Image img = PluginServices.getIconTheme()
70
		.get("rect-select-cursor").getImage();
72 71
	/**
73 72
	 * Crea un nuevo LayoutAddRectangleListener.
74 73
	 *
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutViewPanListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
45 45

  
46 46
import javax.swing.ImageIcon;
47 47

  
48
import com.iver.andami.PluginServices;
48 49
import com.iver.cit.gvsig.fmap.MapControl;
49 50
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
50 51
import com.iver.cit.gvsig.fmap.tools.Events.PointEvent;
......
53 54

  
54 55

  
55 56
/**
56
 * Implementaci?n de la interfaz LayoutPanListener como herramienta para realizar el
57
 * Implementacin de la interfaz LayoutPanListener como herramienta para realizar el
57 58
 * Pan.
58 59
 *
59 60
 * @author Vicente Caballero Navarro
60 61
 */
61 62
public class LayoutViewPanListenerImpl implements LayoutMoveListener {
62
	private final Image ipan = new ImageIcon(MapControl.class.getResource(
63
				"images/Hand.gif")).getImage();
63
	private final Image ipan = PluginServices.getIconTheme()
64
		.get("hand-icon").getImage();
64 65
	private Layout layout;
65 66
	/**
66 67
	 * Crea un nuevo RectangleListenerImpl.
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutAddCircleListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
......
20 20
 *
21 21
 *  Generalitat Valenciana
22 22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
23
 *   Av. Blasco Ib��ez, 50
24 24
 *   46010 VALENCIA
25 25
 *   SPAIN
26 26
 *
......
59 59

  
60 60

  
61 61
/**
62
 * Implementaci?n de la interfaz LayoutPointListener como herramienta para realizar
63
 * un c?rculo.
62
 * Implementacin de la interfaz LayoutPointListener como herramienta para realizar
63
 * un crculo.
64 64
 *
65 65
 * @author Vicente Caballero Navarro
66 66
 */
67 67
public class LayoutAddCircleListenerImpl implements LayoutPointListener, ILayoutGraphicListener {
68
	 public static final Image iCircle = new ImageIcon(AddLayer.class
69
	            .getClassLoader().getResource("images/CircleCursor.png"))
70
	            .getImage();
68
	public static final Image iCircle = PluginServices.getIconTheme()
69
		.get("circle-cursor").getImage();
71 70
	private Layout layout;
72 71

  
73 72
	/**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/tools/LayoutZoomInListenerImpl.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
2 2
 *
3 3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 4
 *
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff