root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / view / legend / gui / FPanelLegendManager.java @ 7304
History | View | Annotate | Download (19.2 KB)
1 |
/*
|
---|---|
2 |
* Created on 08-feb-2005
|
3 |
*
|
4 |
* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
5 |
*
|
6 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
7 |
*
|
8 |
* This program is free software; you can redistribute it and/or
|
9 |
* modify it under the terms of the GNU General Public License
|
10 |
* as published by the Free Software Foundation; either version 2
|
11 |
* of the License, or (at your option) any later version.
|
12 |
*
|
13 |
* This program is distributed in the hope that it will be useful,
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
* GNU General Public License for more details.
|
17 |
*
|
18 |
* You should have received a copy of the GNU General Public License
|
19 |
* along with this program; if not, write to the Free Software
|
20 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
21 |
*
|
22 |
* For more information, contact:
|
23 |
*
|
24 |
* Generalitat Valenciana
|
25 |
* Conselleria d'Infraestructures i Transport
|
26 |
* Av. Blasco Ib??ez, 50
|
27 |
* 46010 VALENCIA
|
28 |
* SPAIN
|
29 |
*
|
30 |
* +34 963862235
|
31 |
* gvsig@gva.es
|
32 |
* www.gvsig.gva.es
|
33 |
*
|
34 |
* or
|
35 |
*
|
36 |
* IVER T.I. S.A
|
37 |
* Salamanca 50
|
38 |
* 46005 Valencia
|
39 |
* Spain
|
40 |
*
|
41 |
* +34 963163400
|
42 |
* dac@iver.es
|
43 |
*/
|
44 |
package com.iver.cit.gvsig.project.documents.view.legend.gui; |
45 |
|
46 |
import java.awt.CardLayout; |
47 |
import java.awt.Component; |
48 |
import java.awt.event.ActionEvent; |
49 |
import java.awt.event.ActionListener; |
50 |
import java.io.File; |
51 |
|
52 |
import javax.swing.ButtonGroup; |
53 |
import javax.swing.ImageIcon; |
54 |
import javax.swing.JButton; |
55 |
import javax.swing.JCheckBox; |
56 |
import javax.swing.JComboBox; |
57 |
import javax.swing.JFileChooser; |
58 |
import javax.swing.JLabel; |
59 |
import javax.swing.JPanel; |
60 |
import javax.swing.JRadioButton; |
61 |
import javax.swing.JScrollPane; |
62 |
import javax.swing.JTextArea; |
63 |
|
64 |
import com.iver.andami.PluginServices; |
65 |
import com.iver.cit.gvsig.AddLayer; |
66 |
import com.iver.cit.gvsig.fmap.DriverException; |
67 |
import com.iver.cit.gvsig.fmap.MapContext; |
68 |
import com.iver.cit.gvsig.fmap.edition.VectorialEditableAdapter; |
69 |
import com.iver.cit.gvsig.fmap.edition.writers.shp.ShpWriter; |
70 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
71 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
72 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
73 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
74 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
75 |
import com.iver.cit.gvsig.fmap.rendering.IntervalLegend; |
76 |
import com.iver.cit.gvsig.fmap.rendering.Legend; |
77 |
import com.iver.cit.gvsig.fmap.rendering.SingleSymbolLegend; |
78 |
import com.iver.cit.gvsig.fmap.rendering.UniqueValueLegend; |
79 |
import com.iver.cit.gvsig.fmap.rendering.VectorialIntervalLegend; |
80 |
import com.iver.cit.gvsig.fmap.rendering.VectorialUniqueValueLegend; |
81 |
import com.iver.cit.gvsig.project.documents.view.legend.PanelLegendBreaks; |
82 |
import com.iver.utiles.SimpleFileFilter; |
83 |
/**
|
84 |
*
|
85 |
* @author jmorell
|
86 |
*
|
87 |
* TODO To change the template for this generated type comment go to
|
88 |
* Window - Preferences - Java - Code Style - Code Templates
|
89 |
*/
|
90 |
public class FPanelLegendManager extends AbstractPanel { |
91 |
|
92 |
private ImageIcon iuniqueValues= new ImageIcon(this.getClass().getClassLoader() |
93 |
.getResource("images/ValoresUnicos.png"));
|
94 |
private ImageIcon iintervalValues= new ImageIcon(this.getClass().getClassLoader() |
95 |
.getResource("images/Intervalos.png"));
|
96 |
// private ImageIcon iuniqueValues= new ImageIcon("images/ValoresUnicos.png");
|
97 |
// private ImageIcon iintervalValues= new ImageIcon("images/Intervalos.png");
|
98 |
private MapContext mapContext;
|
99 |
private FLayer layer;
|
100 |
private Legend renderer; // Le asignaremos la leyenda del primer tema activo. |
101 |
private FPanelLegendDefault m_defaultLegendPanel;
|
102 |
private FPanelLegendValues m_valuesLegendPanel;
|
103 |
private PanelLegendBreaks m_breaksLegendPanel;
|
104 |
private FPanelLegendLabels m_labelsLegendPanel;
|
105 |
private JPanel cards; |
106 |
private ComandosListener m_actionListener = new ComandosListener(this); |
107 |
private int visibleCard; |
108 |
private final String oneSymHelp = PluginServices.getText(this,"Muestra_todos_los_elementos_de_una_capa_usando_el_mismo_simbolo"); |
109 |
private final String oneValHelp = PluginServices.getText(this,"Dado_un_campo_de_atributos") + "," + PluginServices.getText(this,"muestra_los_elementos_de_la_capa_usando_un_simbolo_por_cada_valor_unico") + "."; |
110 |
private final String intervalsHelp = PluginServices.getText(this,"Muestra_los_elementos_de_la_capa_usando_una_gama_de_colores_en_funcion_del_valor_de_un_determinado_campo_de_atributos") + "."; |
111 |
private final String labelsHelp = PluginServices.getText(this,"Permite_etiquetar_los_elementos_del_mapa_con_el_valor_de_un_determinado_campo") + "."; |
112 |
|
113 |
private JPanel topPanel = null; |
114 |
private JLabel jLabel = null; |
115 |
private JComboBox jComboBox = null; |
116 |
private JButton jButton = null; |
117 |
private JButton jButton1 = null; |
118 |
private JCheckBox jCheckBox = null; |
119 |
private JPanel jPanel = null; |
120 |
private JTextArea jTextArea = null; |
121 |
|
122 |
private JPanel jPanel1 = null; |
123 |
|
124 |
private JRadioButton symbolButton; |
125 |
private JRadioButton valuesButton; |
126 |
private JRadioButton intervalsButton; |
127 |
private JRadioButton labelsButton; |
128 |
|
129 |
private JScrollPane jScrollPane = null; |
130 |
public FPanelLegendManager() {
|
131 |
initialize(); |
132 |
this.setSize(500, 360); |
133 |
} |
134 |
|
135 |
private void initialize() { |
136 |
visibleCard=0;
|
137 |
JPanel selector = new JPanel(); |
138 |
selector.setLayout(null);
|
139 |
|
140 |
symbolButton = new JRadioButton(); |
141 |
symbolButton.setText(PluginServices.getText(this,"Simbolo_unico")); |
142 |
symbolButton.setActionCommand("SYMBOL_CHOOSE");
|
143 |
symbolButton.addActionListener(m_actionListener); |
144 |
|
145 |
valuesButton = new JRadioButton(); |
146 |
valuesButton.setText(PluginServices.getText(this,"Valores_unicos")); |
147 |
valuesButton.setActionCommand("VALUES_CHOOSE");
|
148 |
valuesButton.addActionListener(m_actionListener); |
149 |
|
150 |
intervalsButton = new JRadioButton(); |
151 |
intervalsButton.setText(PluginServices.getText(this,"Intervalos")); |
152 |
intervalsButton.setActionCommand("BREAKS_CHOOSE");
|
153 |
intervalsButton.addActionListener(m_actionListener); |
154 |
|
155 |
labelsButton = new JRadioButton(); |
156 |
labelsButton.setText(PluginServices.getText(this,"Etiquetados")); |
157 |
labelsButton.setActionCommand("LABELS_CHOOSE");
|
158 |
labelsButton.addActionListener(m_actionListener); |
159 |
|
160 |
ButtonGroup jButtonGroup = new ButtonGroup(); |
161 |
jButtonGroup.add(symbolButton); |
162 |
jButtonGroup.add(valuesButton); |
163 |
jButtonGroup.add(intervalsButton); |
164 |
jButtonGroup.add(labelsButton); |
165 |
|
166 |
|
167 |
//Create the cards.
|
168 |
m_defaultLegendPanel = new FPanelLegendDefault();
|
169 |
m_valuesLegendPanel = new FPanelLegendValues();
|
170 |
m_breaksLegendPanel = new PanelLegendBreaks();
|
171 |
m_labelsLegendPanel = new FPanelLegendLabels(this); |
172 |
|
173 |
//Create the panel that contains the cards.
|
174 |
cards = new JPanel(new CardLayout()); |
175 |
this.setLayout(null); |
176 |
selector.setBounds(5, 41, 134, 197); |
177 |
selector.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); |
178 |
selector.setBackground(java.awt.SystemColor.text); |
179 |
cards.setBounds(143, 88, 502, 270); |
180 |
cards.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
181 |
symbolButton.setBounds(1, 5, 131, 23); |
182 |
symbolButton.setSelected(true);
|
183 |
symbolButton.setBackground(java.awt.SystemColor.text); |
184 |
valuesButton.setBounds(1, 28, 131, 23); |
185 |
valuesButton.setBackground(java.awt.SystemColor.text); |
186 |
intervalsButton.setBounds(1, 51, 131, 23); |
187 |
intervalsButton.setBackground(java.awt.SystemColor.text); |
188 |
labelsButton.setBounds(1, 74, 131, 23); |
189 |
labelsButton.setBackground(java.awt.SystemColor.text); |
190 |
this.setSize(649, 377); |
191 |
cards.add(m_defaultLegendPanel, "symbol");
|
192 |
this.add(selector, null); |
193 |
selector.add(symbolButton, null);
|
194 |
cards.add(m_valuesLegendPanel, "values");
|
195 |
this.add(cards, null); |
196 |
selector.add(valuesButton, null);
|
197 |
cards.add(m_breaksLegendPanel, "breaks");
|
198 |
selector.add(intervalsButton, null);
|
199 |
this.add(getTopPanel(), null); |
200 |
cards.add(m_labelsLegendPanel, "labels");
|
201 |
selector.add(labelsButton, null);
|
202 |
this.add(getJPanel(), null); |
203 |
this.add(getJPanel1(), null); |
204 |
} |
205 |
|
206 |
|
207 |
|
208 |
/**
|
209 |
* En esta funci?n se coge el primer tema activo del TOC y se usa su
|
210 |
* renderer para inicializar. Hay que llamarla SIEMPRE que se abra el
|
211 |
* cuadro de di?logo, en el openLegendManager() de la vista.
|
212 |
*
|
213 |
* @param mapContext TOC que abre este cuadro de di?logo.
|
214 |
* @throws DriverException
|
215 |
*/
|
216 |
public void setMapContext(MapContext mapContext) throws DriverException { |
217 |
this.mapContext = mapContext;
|
218 |
layer = getFirstActiveLayerVect(mapContext.getLayers()); |
219 |
try {
|
220 |
ClassifiableVectorial aux = (ClassifiableVectorial) layer; |
221 |
renderer = (Legend) aux.getLegend().cloneLegend(); |
222 |
} catch (XMLException e) {
|
223 |
// TODO Auto-generated catch block
|
224 |
e.printStackTrace(); |
225 |
} |
226 |
actualizar(); |
227 |
} |
228 |
|
229 |
/**
|
230 |
* DOCUMENT ME!
|
231 |
*/
|
232 |
public void actualizar() { |
233 |
FLayer lyrSelected = getFirstActiveLayerVect(mapContext.getLayers()); |
234 |
|
235 |
m_defaultLegendPanel.setLayer(lyrSelected, renderer); |
236 |
m_valuesLegendPanel.setLayer(lyrSelected, renderer); |
237 |
m_breaksLegendPanel.setLayer(lyrSelected, renderer); |
238 |
m_labelsLegendPanel.setLayer(lyrSelected, renderer); |
239 |
|
240 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
241 |
if (renderer instanceof SingleSymbolLegend) { |
242 |
jTextArea.setText(oneSymHelp); |
243 |
getJPanel1().removeAll(); |
244 |
getJPanel1().add(m_defaultLegendPanel.getM_previewSymbol()); |
245 |
getJPanel1().repaint(); |
246 |
symbolButton.setSelected(true);
|
247 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Simbolo_unico") + ")"); |
248 |
cl.show(cards, "symbol");
|
249 |
setVisibleCard(0);
|
250 |
} |
251 |
if (renderer instanceof UniqueValueLegend) { |
252 |
jTextArea.setText(oneValHelp); |
253 |
getJPanel1().removeAll(); |
254 |
getJPanel1().repaint(); |
255 |
valuesButton.setSelected(true);
|
256 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Valores_unicos") + ")"); |
257 |
cl.show(cards, "values");
|
258 |
setVisibleCard(1);
|
259 |
} |
260 |
if (renderer instanceof IntervalLegend) { |
261 |
jTextArea.setText(intervalsHelp); |
262 |
getJPanel1().removeAll(); |
263 |
getJPanel1().repaint(); |
264 |
intervalsButton.setSelected(true);
|
265 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Intervalos") + ")"); |
266 |
cl.show(cards, "breaks");
|
267 |
setVisibleCard(2);
|
268 |
} |
269 |
|
270 |
} |
271 |
|
272 |
public void setLayer(FLayer lyr, Legend r) { |
273 |
layer = lyr; |
274 |
if (r instanceof SingleSymbolLegend) { |
275 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Simbolo_unico") + ")"); |
276 |
renderer = (SingleSymbolLegend)r; |
277 |
getJPanel1().add(m_defaultLegendPanel.getM_previewSymbol()); |
278 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
279 |
cl.show(cards, "symbol");
|
280 |
setVisibleCard(0);
|
281 |
} else if (r instanceof VectorialUniqueValueLegend) { |
282 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Valores_unicos") + ")"); |
283 |
renderer = (VectorialUniqueValueLegend)r; |
284 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
285 |
cl.show(cards, "values");
|
286 |
setVisibleCard(1);
|
287 |
} else if (r instanceof VectorialIntervalLegend) { |
288 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Intervalos") + ")"); |
289 |
renderer = (VectorialIntervalLegend)r; |
290 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
291 |
cl.show(cards, "breaks");
|
292 |
setVisibleCard(2);
|
293 |
} else {
|
294 |
getJComboBox().getModel().setSelectedItem(layer.getName() + " (" + PluginServices.getText(this,"Etiquetas_estandar") + ")"); |
295 |
renderer = (SingleSymbolLegend)r; |
296 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
297 |
cl.show(cards, "labels");
|
298 |
setVisibleCard(3);
|
299 |
} |
300 |
} |
301 |
|
302 |
private class ComandosListener implements ActionListener { |
303 |
// private FPanelLegendManager fPanSimMan;
|
304 |
|
305 |
public ComandosListener(FPanelLegendManager fPanSimMan) {
|
306 |
// this.fPanSimMan = fPanSimMan;
|
307 |
} |
308 |
|
309 |
public void actionPerformed(ActionEvent e) { |
310 |
if (e.getActionCommand() == "SYMBOL_CHOOSE") { |
311 |
jTextArea.setText(oneSymHelp); |
312 |
getJPanel1().removeAll(); |
313 |
getJPanel1().add(m_defaultLegendPanel.getM_previewSymbol()); |
314 |
getJPanel1().repaint(); |
315 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
316 |
cl.show(cards, "symbol");
|
317 |
visibleCard=0;
|
318 |
System.out.println("Symbol"); |
319 |
} else if (e.getActionCommand() == "VALUES_CHOOSE") { |
320 |
jTextArea.setText(oneValHelp); |
321 |
getJPanel1().removeAll(); |
322 |
getJPanel1().add(new JLabel(iuniqueValues)); |
323 |
getJPanel1().repaint(); |
324 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
325 |
cl.show(cards, "values");
|
326 |
visibleCard=1;
|
327 |
System.out.println("Values"); |
328 |
} else if (e.getActionCommand() == "BREAKS_CHOOSE") { |
329 |
jTextArea.setText(intervalsHelp); |
330 |
getJPanel1().removeAll(); |
331 |
getJPanel1().add(new JLabel(iintervalValues)); |
332 |
getJPanel1().repaint(); |
333 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
334 |
cl.show(cards, "breaks");
|
335 |
visibleCard=2;
|
336 |
System.out.println("Breaks"); |
337 |
} else if (e.getActionCommand() == "LABELS_CHOOSE") { |
338 |
jTextArea.setText(labelsHelp); |
339 |
getJPanel1().removeAll(); |
340 |
getJPanel1().add(m_labelsLegendPanel.getFPreviewSymbol()); |
341 |
getJPanel1().repaint(); |
342 |
CardLayout cl = (CardLayout)(cards.getLayout()); |
343 |
cl.show(cards, "labels");
|
344 |
visibleCard=3;
|
345 |
System.out.println("Labels"); |
346 |
} else {}
|
347 |
} |
348 |
} |
349 |
|
350 |
public int getVisibleCard() { |
351 |
return visibleCard;
|
352 |
} |
353 |
|
354 |
/**
|
355 |
* This method initializes jPanel
|
356 |
*
|
357 |
* @return javax.swing.JPanel
|
358 |
*/
|
359 |
private JPanel getTopPanel() { |
360 |
if (topPanel == null) { |
361 |
jLabel = new JLabel(); |
362 |
topPanel = new JPanel(); |
363 |
topPanel.setLayout(null);
|
364 |
topPanel.setBounds(5, 5, 638, 31); |
365 |
topPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
366 |
jLabel.setBounds(6, 4, 68, 22); |
367 |
jLabel.setText(PluginServices.getText(this,"Leyenda") + ":"); |
368 |
topPanel.add(jLabel, null);
|
369 |
topPanel.add(getJComboBox(), null);
|
370 |
topPanel.add(getJButton(), null);
|
371 |
topPanel.add(getJButton1(), null);
|
372 |
topPanel.add(getJCheckBox(), null);
|
373 |
} |
374 |
return topPanel;
|
375 |
} |
376 |
/**
|
377 |
* This method initializes jComboBox
|
378 |
*
|
379 |
* @return javax.swing.JComboBox
|
380 |
*/
|
381 |
public JComboBox getJComboBox() { |
382 |
if (jComboBox == null) { |
383 |
jComboBox = new JComboBox(); |
384 |
jComboBox.setBounds(78, 5, 250, 22); |
385 |
} |
386 |
return jComboBox;
|
387 |
} |
388 |
/**
|
389 |
* This method initializes jButton
|
390 |
*
|
391 |
* @return javax.swing.JButton
|
392 |
*/
|
393 |
private JButton getJButton() { |
394 |
if (jButton == null) { |
395 |
jButton = new JButton(); |
396 |
jButton.setBounds(345, 4, 22, 22); |
397 |
jButton.setEnabled(false);
|
398 |
} |
399 |
return jButton;
|
400 |
} |
401 |
/**
|
402 |
* This method initializes jButton1
|
403 |
*
|
404 |
* @return javax.swing.JButton
|
405 |
*/
|
406 |
private JButton getJButton1() { |
407 |
if (jButton1 == null) { |
408 |
jButton1 = new JButton(); |
409 |
jButton1.setBounds(371, 4, 22, 22); |
410 |
jButton1.setEnabled(false);
|
411 |
} |
412 |
return jButton1;
|
413 |
} |
414 |
/**
|
415 |
* This method initializes jCheckBox
|
416 |
*
|
417 |
* @return javax.swing.JCheckBox
|
418 |
*/
|
419 |
private JCheckBox getJCheckBox() { |
420 |
if (jCheckBox == null) { |
421 |
jCheckBox = new JCheckBox(); |
422 |
jCheckBox.setBounds(417, 4, 202, 22); |
423 |
jCheckBox.setText(PluginServices.getText(this,"Leyenda_Por_Defecto")); |
424 |
jCheckBox.setEnabled(false);
|
425 |
} |
426 |
return jCheckBox;
|
427 |
} |
428 |
/**
|
429 |
* This method initializes jPanel
|
430 |
*
|
431 |
* @return javax.swing.JPanel
|
432 |
*/
|
433 |
private JPanel getJPanel() { |
434 |
if (jPanel == null) { |
435 |
jPanel = new JPanel(); |
436 |
jPanel.setLayout(null);
|
437 |
jPanel.setBounds(143, 39, 501, 46); |
438 |
jPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); |
439 |
jPanel.add(getJScrollPane(), null);
|
440 |
} |
441 |
return jPanel;
|
442 |
} |
443 |
/**
|
444 |
* This method initializes jTextArea
|
445 |
*
|
446 |
* @return javax.swing.JTextArea
|
447 |
*/
|
448 |
private JTextArea getJTextArea() { |
449 |
if (jTextArea == null) { |
450 |
jTextArea = new JTextArea(); |
451 |
jTextArea.setText(oneSymHelp); |
452 |
jTextArea.setBackground(java.awt.SystemColor.control); |
453 |
jTextArea.setLineWrap(true);
|
454 |
jTextArea.setRows(0);
|
455 |
jTextArea.setWrapStyleWord(false);
|
456 |
jTextArea.setEditable(false);
|
457 |
jTextArea.setPreferredSize(new java.awt.Dimension(495,40)); |
458 |
} |
459 |
return jTextArea;
|
460 |
} |
461 |
/**
|
462 |
* This method initializes jPanel1
|
463 |
*
|
464 |
* @return javax.swing.JPanel
|
465 |
*/
|
466 |
private JPanel getJPanel1() { |
467 |
if (jPanel1 == null) { |
468 |
jPanel1 = new JPanel(); |
469 |
jPanel1.setBounds(6, 242, 132, 117); |
470 |
jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); |
471 |
jPanel1.setBackground(java.awt.SystemColor.text); |
472 |
} |
473 |
return jPanel1;
|
474 |
} |
475 |
/**
|
476 |
* @return Returns the m_breaksLegendPanel.
|
477 |
*/
|
478 |
public PanelLegendBreaks getM_breaksLegendPanel() {
|
479 |
return m_breaksLegendPanel;
|
480 |
} |
481 |
/**
|
482 |
* @param legendPanel The m_breaksLegendPanel to set.
|
483 |
*/
|
484 |
public void setM_breaksLegendPanel(PanelLegendBreaks legendPanel) { |
485 |
m_breaksLegendPanel = legendPanel; |
486 |
} |
487 |
/**
|
488 |
* @return Returns the m_defaultLegendPanel.
|
489 |
*/
|
490 |
public FPanelLegendDefault getM_defaultLegendPanel() {
|
491 |
return m_defaultLegendPanel;
|
492 |
} |
493 |
/**
|
494 |
* @param legendPanel The m_defaultLegendPanel to set.
|
495 |
*/
|
496 |
public void setM_defaultLegendPanel(FPanelLegendDefault legendPanel) { |
497 |
m_defaultLegendPanel = legendPanel; |
498 |
} |
499 |
/**
|
500 |
* @return Returns the m_labelsLegendPanel.
|
501 |
*/
|
502 |
public FPanelLegendLabels getM_labelsLegendPanel() {
|
503 |
return m_labelsLegendPanel;
|
504 |
} |
505 |
/**
|
506 |
* @param legendPanel The m_labelsLegendPanel to set.
|
507 |
*/
|
508 |
public void setM_labelsLegendPanel(FPanelLegendLabels legendPanel) { |
509 |
m_labelsLegendPanel = legendPanel; |
510 |
} |
511 |
/**
|
512 |
* @return Returns the m_valuesLegendPanel.
|
513 |
*/
|
514 |
public FPanelLegendValues getM_valuesLegendPanel() {
|
515 |
return m_valuesLegendPanel;
|
516 |
} |
517 |
/**
|
518 |
* @param legendPanel The m_valuesLegendPanel to set.
|
519 |
*/
|
520 |
public void setM_valuesLegendPanel(FPanelLegendValues legendPanel) { |
521 |
m_valuesLegendPanel = legendPanel; |
522 |
} |
523 |
/**
|
524 |
* @return Returns the renderer.
|
525 |
*/
|
526 |
public Legend getRenderer() {
|
527 |
return renderer;
|
528 |
} |
529 |
/**
|
530 |
* @param renderer The renderer to set.
|
531 |
*/
|
532 |
public void setRenderer(Legend renderer) { |
533 |
this.renderer = renderer;
|
534 |
} |
535 |
/**
|
536 |
* @param visibleCard The visibleCard to set.
|
537 |
*/
|
538 |
public void setVisibleCard(int visibleCard) { |
539 |
this.visibleCard = visibleCard;
|
540 |
} |
541 |
/**
|
542 |
* This method initializes jScrollPane
|
543 |
*
|
544 |
* @return javax.swing.JScrollPane
|
545 |
*/
|
546 |
private JScrollPane getJScrollPane() { |
547 |
if (jScrollPane == null) { |
548 |
jScrollPane = new JScrollPane(); |
549 |
jScrollPane.setBounds(2, 2, 498, 42); |
550 |
jScrollPane.setViewportView(getJTextArea()); |
551 |
} |
552 |
return jScrollPane;
|
553 |
} |
554 |
} // @jve:decl-index=0:visual-constraint="26,17"
|