root / branches / v05 / extensions / extWMS / src / com / iver / cit / gvsig / gui / panels / StylesPanel.java @ 4259
History | View | Annotate | Download (3.56 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
|
42 |
/* CVS MESSAGES:
|
43 |
*
|
44 |
* $Id: StylesPanel.java 4259 2006-03-03 08:29:22Z jaume $
|
45 |
* $Log$
|
46 |
* Revision 1.1.2.6 2006-03-03 08:29:22 jaume
|
47 |
* *** empty log message ***
|
48 |
*
|
49 |
* Revision 1.4 2006/02/28 15:25:14 jaume
|
50 |
* *** empty log message ***
|
51 |
*
|
52 |
* Revision 1.1.2.5 2006/02/17 12:57:34 jaume
|
53 |
* oculta/eXconde los nombres de las capas y adem?s corrige el error de selecci?n de varios styles si hay alguna capa seleccionada repetida
|
54 |
*
|
55 |
* Revision 1.1.2.4 2006/02/06 15:19:50 jaume
|
56 |
* *** empty log message ***
|
57 |
*
|
58 |
* Revision 1.1.2.3 2006/01/31 16:25:24 jaume
|
59 |
* correcciones de bugs
|
60 |
*
|
61 |
* Revision 1.3 2006/01/31 10:40:31 jaume
|
62 |
* *** empty log message ***
|
63 |
*
|
64 |
* Revision 1.2 2006/01/26 16:07:14 jaume
|
65 |
* *** empty log message ***
|
66 |
*
|
67 |
* Revision 1.1.2.1 2006/01/26 12:59:32 jaume
|
68 |
* 0.5
|
69 |
*
|
70 |
* Revision 1.1 2006/01/25 09:08:53 jaume
|
71 |
* test save and reload project
|
72 |
*
|
73 |
*
|
74 |
*/
|
75 |
package com.iver.cit.gvsig.gui.panels; |
76 |
|
77 |
import javax.swing.JScrollPane; |
78 |
|
79 |
import com.iver.cit.gvsig.gui.beans.DefaultBean; |
80 |
|
81 |
|
82 |
/**
|
83 |
* This is the Styles tab of the WMS wizard.
|
84 |
*
|
85 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
86 |
*
|
87 |
*/
|
88 |
class StylesPanel extends DefaultBean{ |
89 |
private JScrollPane jScrollPane = null; |
90 |
private StyleTree treeStyles = null; |
91 |
private WMSParamsPanel parent;
|
92 |
|
93 |
public StylesPanel(WMSParamsPanel parent){
|
94 |
super();
|
95 |
setLayout(null);
|
96 |
add(getJScrollPane(), null);
|
97 |
this.parent = parent;
|
98 |
} |
99 |
/**
|
100 |
* This method initializes jScrollPane3
|
101 |
*
|
102 |
* @return javax.swing.JScrollPane
|
103 |
*/
|
104 |
private JScrollPane getJScrollPane() { |
105 |
if (jScrollPane == null) { |
106 |
jScrollPane = new JScrollPane(); |
107 |
jScrollPane.setBounds(7, 50, 455, 327); |
108 |
jScrollPane.setViewportView(getStyleTree()); |
109 |
} |
110 |
return jScrollPane;
|
111 |
} |
112 |
|
113 |
/**
|
114 |
* This method initializes treeStyles
|
115 |
*
|
116 |
* @return javax.swing.JTree
|
117 |
*/
|
118 |
public StyleTree getStyleTree() {
|
119 |
if (treeStyles == null) { |
120 |
treeStyles = new StyleTree();
|
121 |
treeStyles.addMouseListener(new java.awt.event.MouseAdapter() {
|
122 |
public void mouseClicked(java.awt.event.MouseEvent e) { |
123 |
|
124 |
StyleTreeModel model = (StyleTreeModel) treeStyles.getModel(); |
125 |
//callValueChanged(model.getStylesSelection(/*parent.selectedLayersToArray()*/));
|
126 |
callValueChanged(null);
|
127 |
} |
128 |
}); |
129 |
} |
130 |
return treeStyles;
|
131 |
} |
132 |
} |