Revision 58 org.gvsig.googlemaps/trunk/org.gvsig.googlemaps/org.gvsig.googlemaps.swing/org.gvsig.googlemaps.swing.impl/src/main/java/org/gvsig/googlemaps/swing/impl/DefaultGoogleMapsParametersPanelView.java
DefaultGoogleMapsParametersPanelView.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 gvSIG Association |
|
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., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 | 1 |
package org.gvsig.googlemaps.swing.impl; |
24 | 2 |
|
25 | 3 |
import com.jgoodies.forms.layout.CellConstraints; |
26 | 4 |
import com.jgoodies.forms.layout.FormLayout; |
27 | 5 |
import java.awt.BorderLayout; |
6 |
import java.awt.Color; |
|
28 | 7 |
import java.awt.ComponentOrientation; |
29 | 8 |
import java.awt.Container; |
30 | 9 |
import java.awt.Dimension; |
... | ... | |
49 | 28 |
JComboBox cboMapTypes = new JComboBox(); |
50 | 29 |
JTextField txtZoomLvl = new JTextField(); |
51 | 30 |
JEditorPane txtDisclaimer = new JEditorPane(); |
31 |
JEditorPane txtCrsWarning = new JEditorPane(); |
|
52 | 32 |
|
53 | 33 |
/** |
54 | 34 |
* Default constructor |
... | ... | |
140 | 120 |
public JPanel createPanel() |
141 | 121 |
{ |
142 | 122 |
JPanel jpanel1 = new JPanel(); |
143 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
|
123 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
144 | 124 |
CellConstraints cc = new CellConstraints(); |
145 | 125 |
jpanel1.setLayout(formlayout1); |
146 | 126 |
|
... | ... | |
152 | 132 |
chkboxUseAPIKey.setActionCommand("use_api_key"); |
153 | 133 |
chkboxUseAPIKey.setName("chkboxUseAPIKey"); |
154 | 134 |
chkboxUseAPIKey.setText("_use_api_key"); |
155 |
chkboxUseAPIKey.setToolTipText("_google_static_maps_use_api_key_tooltip");
|
|
135 |
chkboxUseAPIKey.setToolTipText("_use_api_key_tooltip"); |
|
156 | 136 |
jpanel1.add(chkboxUseAPIKey,cc.xy(2,4)); |
157 | 137 |
|
158 | 138 |
txtAPIKey.setName("txtAPIKey"); |
... | ... | |
176 | 156 |
txtDisclaimer.setEditable(false); |
177 | 157 |
txtDisclaimer.setName("txtDisclaimer"); |
178 | 158 |
txtDisclaimer.setOpaque(false); |
179 |
txtDisclaimer.setSelectionEnd(12);
|
|
180 |
txtDisclaimer.setSelectionStart(12);
|
|
159 |
txtDisclaimer.setSelectionEnd(24);
|
|
160 |
txtDisclaimer.setSelectionStart(24);
|
|
181 | 161 |
txtDisclaimer.setText("<html>\n <head>\n \n </head>\n <body>\n _google_maps_disclaimer\n </body>\n</html>\n"); |
182 | 162 |
EmptyBorder emptyborder1 = new EmptyBorder(0,0,0,0); |
183 | 163 |
txtDisclaimer.setBorder(emptyborder1); |
184 | 164 |
jpanel1.add(txtDisclaimer,cc.xywh(2,10,5,1)); |
185 | 165 |
|
186 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 }); |
|
166 |
txtCrsWarning.setAutoscrolls(false); |
|
167 |
txtCrsWarning.setContentType("text/html"); |
|
168 |
txtCrsWarning.setEditable(false); |
|
169 |
txtCrsWarning.setForeground(new Color(255,0,0)); |
|
170 |
txtCrsWarning.setName("txtCrsWarning"); |
|
171 |
txtCrsWarning.setOpaque(false); |
|
172 |
txtCrsWarning.setSelectionEnd(13); |
|
173 |
txtCrsWarning.setSelectionStart(13); |
|
174 |
txtCrsWarning.setText("<html>\n <head>\n \n </head>\n <body>\n <font color=\"red\">_crs_warning</font>\n </body>\n</html>\n"); |
|
175 |
EmptyBorder emptyborder2 = new EmptyBorder(0,0,0,0); |
|
176 |
txtCrsWarning.setBorder(emptyborder2); |
|
177 |
jpanel1.add(txtCrsWarning,cc.xywh(2,12,5,1)); |
|
178 |
|
|
179 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 }); |
|
187 | 180 |
return jpanel1; |
188 | 181 |
} |
189 | 182 |
|
Also available in: Unified diff