Revision 9024
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/gui/dialogs/FFrameTextDialog.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
import java.awt.Color; |
48 | 48 |
import java.awt.Component; |
49 |
import java.awt.Font; |
|
50 |
import java.awt.event.ActionEvent; |
|
49 | 51 |
import java.awt.geom.Rectangle2D; |
50 | 52 |
|
51 | 53 |
import javax.swing.ImageIcon; |
... | ... | |
63 | 65 |
import com.iver.cit.gvsig.AddLayer; |
64 | 66 |
import com.iver.cit.gvsig.gui.layout.Layout; |
65 | 67 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameText; |
68 |
import com.iver.cit.gvsig.gui.panels.ColorChooserPanel; |
|
66 | 69 |
import com.iver.cit.gvsig.gui.utils.FontChooser; |
67 | 70 |
import com.iver.cit.gvsig.project.documents.layout.FLayoutUtilities; |
68 | 71 |
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.JPRotation; |
... | ... | |
82 | 85 |
private javax.swing.JPanel jContentPane = null; // @jve:visual-info decl-index=0 visual-constraint="593,10" |
83 | 86 |
private javax.swing.JScrollPane jScrollPane = null; |
84 | 87 |
private javax.swing.JTextArea taTexto = null; |
85 |
private javax.swing.JLabel lAlinear = null; |
|
86 | 88 |
private JToggleButton bIzquierda = null; |
87 | 89 |
private JToggleButton bCentro = null; |
88 | 90 |
private JToggleButton bDerecha = null; |
89 |
private javax.swing.JCheckBox chkEscalaVista = null; |
|
90 | 91 |
private javax.swing.JButton bAceptar = null; |
91 | 92 |
private javax.swing.JButton bCancelar = null; |
92 | 93 |
private Layout m_layout = null; |
... | ... | |
114 | 115 |
private JLabel jLabel5 = null; |
115 | 116 |
private JLabel jLabel6 = null; |
116 | 117 |
private JLabel jLabel7 = null; |
117 |
private JButton jButton1 = null; |
|
118 |
private JButton jButton2 = null; |
|
119 | 118 |
private JPRotation pRotation = null; |
119 |
private ColorChooserPanel m_colorChooser; |
|
120 |
private JPanel jPanel2 = null; |
|
121 |
private JPanel jPanel21 = null; |
|
122 |
private ColorChooserPanel m_colorFont; // @jve:decl-index=0:visual-constraint="474,139" |
|
123 |
private ColorChooserPanel m_colorTitle; |
|
120 | 124 |
/** |
121 | 125 |
* This is the default constructor |
122 | 126 |
* |
... | ... | |
163 | 167 |
jContentPane = new javax.swing.JPanel(); |
164 | 168 |
jContentPane.setLayout(null); |
165 | 169 |
jContentPane.add(getJScrollPane(), null); |
166 |
jContentPane.add(getLAlinear(), null); |
|
167 |
jContentPane.add(getBIzquierda(), null); |
|
168 |
jContentPane.add(getBCentro(), null); |
|
169 |
jContentPane.add(getBDerecha(), null); |
|
170 |
|
|
171 |
//jContentPane.add(getJLabel1(), null); |
|
172 | 170 |
//jContentPane.add(getJComboBox(), null); |
173 | 171 |
//jContentPane.add(getJLabel2(), null); |
174 |
jContentPane.add(getChkEscalaVista(), null); |
|
175 | 172 |
jContentPane.add(getBAceptar(), null); |
176 | 173 |
jContentPane.add(getBCancelar(), null); |
177 | 174 |
jContentPane.add(getBFuente(), null); |
175 |
jContentPane.add(getColorFont(),null); |
|
178 | 176 |
jContentPane.setSize(412, 422); |
179 | 177 |
jContentPane.setLocation(3, 4); |
180 |
jContentPane.add(getJButton(), null); |
|
181 | 178 |
// jaume |
182 | 179 |
jLabel.setText(PluginServices.getText(this, "Milimetros")); |
183 |
jLabel.setSize(100, 16);
|
|
184 |
jLabel.setLocation(215, 74);
|
|
180 |
jLabel.setSize(110, 16);
|
|
181 |
jLabel.setLocation(244, 74);
|
|
185 | 182 |
jContentPane.add(getJPanel1(), null); |
186 | 183 |
jContentPane.add(getJPanel(), null); |
187 | 184 |
jContentPane.add(getChkFontSize(), null); |
188 | 185 |
jContentPane.add(getTxtFontSize(), null); |
189 | 186 |
jContentPane.add(getPRotation(), null); |
187 |
jContentPane.add(getJPanel21(), null); |
|
190 | 188 |
} |
191 | 189 |
|
192 | 190 |
return jContentPane; |
... | ... | |
229 | 227 |
} |
230 | 228 |
|
231 | 229 |
/** |
232 |
* This method initializes lAlinear |
|
233 |
* |
|
234 |
* @return javax.swing.JLabel |
|
235 |
*/ |
|
236 |
private javax.swing.JLabel getLAlinear() { |
|
237 |
if (lAlinear == null) { |
|
238 |
lAlinear = new javax.swing.JLabel(); |
|
239 |
lAlinear.setSize(52, 27); |
|
240 |
lAlinear.setText(PluginServices.getText(this, "alinear")); //$NON-NLS-1$ |
|
241 |
lAlinear.setLocation(5, 98); |
|
242 |
} |
|
243 |
|
|
244 |
return lAlinear; |
|
245 |
} |
|
246 |
|
|
247 |
/** |
|
248 | 230 |
* This method initializes bIzquierda |
249 | 231 |
* |
250 | 232 |
* @return javax.swing.JButton |
... | ... | |
252 | 234 |
private JToggleButton getBIzquierda() { |
253 | 235 |
if (bIzquierda == null) { |
254 | 236 |
bIzquierda = new JToggleButton(); |
255 |
bIzquierda.setSize(30, 27); |
|
256 | 237 |
bIzquierda.setPreferredSize(new java.awt.Dimension(28, 20)); |
257 |
bIzquierda.setLocation(60, 98); |
|
258 |
|
|
259 | 238 |
if (fframetext.getPos() == FFrameText.LEFT) { |
260 | 239 |
bIzquierda.setSelected(true); |
261 | 240 |
} |
... | ... | |
282 | 261 |
private JToggleButton getBCentro() { |
283 | 262 |
if (bCentro == null) { |
284 | 263 |
bCentro = new JToggleButton(); |
285 |
bCentro.setSize(30, 27); |
|
286 | 264 |
bCentro.setPreferredSize(new java.awt.Dimension(28, 20)); |
287 |
bCentro.setLocation(93, 98); |
|
288 |
|
|
289 | 265 |
if (fframetext.getPos() == FFrameText.CENTER) { |
290 | 266 |
bCentro.setSelected(true); |
291 | 267 |
} |
... | ... | |
312 | 288 |
private JToggleButton getBDerecha() { |
313 | 289 |
if (bDerecha == null) { |
314 | 290 |
bDerecha = new JToggleButton(); |
315 |
bDerecha.setSize(30, 27); |
|
316 | 291 |
bDerecha.setPreferredSize(new java.awt.Dimension(28, 20)); |
317 |
bDerecha.setLocation(126, 98); |
|
318 |
|
|
319 | 292 |
if (fframetext.getPos() == FFrameText.RIGTH) { |
320 | 293 |
bDerecha.setSelected(true); |
321 | 294 |
} |
... | ... | |
335 | 308 |
} |
336 | 309 |
|
337 | 310 |
/** |
338 |
* This method initializes chbEscalaVista |
|
339 |
* |
|
340 |
* @return javax.swing.JCheckBox |
|
341 |
*/ |
|
342 |
private javax.swing.JCheckBox getChkEscalaVista() { |
|
343 |
if (chkEscalaVista == null) { |
|
344 |
chkEscalaVista = new javax.swing.JCheckBox(); |
|
345 |
chkEscalaVista.setSize(280, 20); |
|
346 |
chkEscalaVista.setText( |
|
347 |
PluginServices.getText(this, "__redimensionar_texto_escala")); //$NON-NLS-1$ |
|
348 |
chkEscalaVista.setSelected(fframetext.isSizeFixed()); |
|
349 |
chkEscalaVista.setLocation(6, 153); |
|
350 |
chkEscalaVista.setEnabled(true); |
|
351 |
chkEscalaVista.setVisible(false); |
|
352 |
} |
|
353 |
|
|
354 |
return chkEscalaVista; |
|
355 |
} |
|
356 |
|
|
357 |
/** |
|
358 | 311 |
* This method initializes bAceptar |
359 | 312 |
* |
360 | 313 |
* @return javax.swing.JButton |
... | ... | |
385 | 338 |
} |
386 | 339 |
} |
387 | 340 |
fframetext.setTextColor(textcolor); |
388 |
fframetext.setSizeFixed(!getChkEscalaVista().isSelected()); |
|
341 |
//fframetext.setSizeFixed(!getChkEscalaVista().isSelected());
|
|
389 | 342 |
|
390 | 343 |
// jaume |
391 | 344 |
boolean b = getChkSurroundingRectangle().isSelected(); |
... | ... | |
492 | 445 |
private javax.swing.JButton getBFuente() { |
493 | 446 |
if (bFuente == null) { |
494 | 447 |
bFuente = new javax.swing.JButton(); |
495 |
bFuente.setBounds(157, 98, 73, 27);
|
|
448 |
bFuente.setBounds(158, 98, 78, 24);
|
|
496 | 449 |
bFuente.setText(PluginServices.getText(this, "fuente")); //$NON-NLS-1$ |
497 | 450 |
bFuente.addActionListener(new java.awt.event.ActionListener() { |
498 | 451 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
499 |
fframetext.setFont(FontChooser.showDialog( |
|
500 |
PluginServices.getText(this, "__seleccion_de_fuente"), fframetext.getFont())); // fchoser=new FontChooser(); //$NON-NLS-1$ |
|
452 |
Font font=FontChooser.showDialog( |
|
453 |
PluginServices.getText(this, "__seleccion_de_fuente"), fframetext.getFont()); |
|
454 |
if (font!=null) |
|
455 |
fframetext.setFont(font); // fchoser=new FontChooser(); //$NON-NLS-1$ |
|
501 | 456 |
} |
502 | 457 |
}); |
503 | 458 |
} |
... | ... | |
510 | 465 |
*/ |
511 | 466 |
public void viewActivated() { |
512 | 467 |
} |
513 |
/** |
|
514 |
* This method initializes jButton |
|
515 |
* |
|
516 |
* @return javax.swing.JButton |
|
517 |
*/ |
|
518 |
private JButton getJButton() { |
|
519 |
if (jButton == null) { |
|
520 |
jButton = new JButton(); |
|
521 |
jButton.setForeground(Color.white); |
|
522 |
jButton.setBackground(textcolor); |
|
523 |
jButton.setBounds(235, 98, 32, 27); |
|
524 |
jButton.addActionListener(new java.awt.event.ActionListener() { |
|
525 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
526 |
JDialog dlg; |
|
527 |
JColorChooser colorChooser; |
|
528 |
colorChooser = new JColorChooser(); |
|
529 |
dlg = JColorChooser.createDialog((Component) PluginServices.getMainFrame(), |
|
530 |
PluginServices.getText(this, "Elegir_Color"), |
|
531 |
true, colorChooser, null, null); |
|
532 |
dlg.setVisible(true); |
|
533 | 468 |
|
534 |
textcolor = colorChooser.getColor(); |
|
535 |
|
|
536 |
//getJPanel1().setBackground(textcolor); |
|
537 |
jButton.setBackground(textcolor); |
|
538 |
|
|
539 |
} |
|
540 |
}); |
|
541 |
} |
|
542 |
return jButton; |
|
543 |
} |
|
544 | 469 |
/** |
545 | 470 |
* This method initializes chbSurroundingRectangle |
546 | 471 |
* |
... | ... | |
552 | 477 |
chkSurroundingRectangle = new JCheckBox(); |
553 | 478 |
chkSurroundingRectangle.setText(PluginServices.getText(this, "usar_marco")); |
554 | 479 |
chkSurroundingRectangle.setSelected(fframetext.isSurrounded()); |
555 |
chkSurroundingRectangle.setBounds(5, 20, 143, 19);
|
|
480 |
chkSurroundingRectangle.setBounds(34, 20, 122, 19);
|
|
556 | 481 |
chkSurroundingRectangle.addItemListener(new java.awt.event.ItemListener() { |
557 | 482 |
public void itemStateChanged(java.awt.event.ItemEvent e) { |
558 | 483 |
getTxtCellPadding().setEnabled(getChkSurroundingRectangle().isSelected()); |
... | ... | |
593 | 518 |
private JCheckBox getChkFontSize() { |
594 | 519 |
if (chkFontSize == null) { |
595 | 520 |
chkFontSize = new JCheckBox(); |
596 |
chkFontSize.setBounds(6, 174, 143, 19);
|
|
521 |
chkFontSize.setBounds(7, 160, 143, 19);
|
|
597 | 522 |
chkFontSize.setText(PluginServices.getText(this, "tamanyo_fuente")); |
598 | 523 |
chkFontSize.setSelected(fframetext.isFontSizeFixed()); |
599 | 524 |
chkFontSize.addItemListener(new java.awt.event.ItemListener() { |
... | ... | |
612 | 537 |
private JTextField getTxtFontSize() { |
613 | 538 |
if (txtFontSize == null) { |
614 | 539 |
txtFontSize = new JTextField(); |
615 |
txtFontSize.setBounds(153, 176, 60, 17);
|
|
540 |
txtFontSize.setBounds(158, 162, 60, 17);
|
|
616 | 541 |
txtFontSize.setEnabled(fframetext.isFontSizeFixed()); |
617 | 542 |
if (txtFontSize.isEnabled()) txtFontSize.setText(fframetext.getFontSize()+""); |
618 | 543 |
txtFontSize.addKeyListener(new java.awt.event.KeyAdapter() { |
... | ... | |
633 | 558 |
chkTitle = new JCheckBox(); |
634 | 559 |
chkTitle.setText(PluginServices.getText(this, "usar_titulo")); |
635 | 560 |
chkTitle.setSelected(fframetext.hasTitle()); |
636 |
chkTitle.setBounds(6, 17, 122, 19);
|
|
561 |
chkTitle.setBounds(36, 17, 118, 19);
|
|
637 | 562 |
chkTitle.addChangeListener(new javax.swing.event.ChangeListener() { |
638 | 563 |
public void stateChanged(javax.swing.event.ChangeEvent e) { |
639 | 564 |
getTxtTitle().setEnabled(chkTitle.isSelected()); |
... | ... | |
655 | 580 |
txtTitle.setEnabled(fframetext.hasTitle()); |
656 | 581 |
if (fframetext.hasTitle()) |
657 | 582 |
txtTitle.setText(fframetext.getTitle()); |
658 |
txtTitle.setBounds(132, 17, 230, 20);
|
|
583 |
txtTitle.setBounds(35, 39, 254, 20);
|
|
659 | 584 |
} |
660 | 585 |
return txtTitle; |
661 | 586 |
} |
... | ... | |
669 | 594 |
jPanel = new JPanel(); |
670 | 595 |
jLabel3 = new JLabel(); |
671 | 596 |
jPanel.setLayout(null); |
672 |
jPanel.setBounds(4, 307, 403, 76);
|
|
597 |
jPanel.setBounds(4, 294, 403, 89);
|
|
673 | 598 |
jPanel.setBorder(javax.swing.BorderFactory.createTitledBorder( |
674 | 599 |
null, PluginServices.getText(this, "titulo_fframetext"), |
675 | 600 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
676 | 601 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
677 |
jLabel3.setBounds(5, 47, 200, 20);
|
|
602 |
jLabel3.setBounds(35, 64, 170, 20);
|
|
678 | 603 |
jLabel3.setText(PluginServices.getText(this, "tamanyo_fuente")); |
679 | 604 |
jLabel3.setEnabled(fframetext.hasTitle()); |
680 | 605 |
jPanel.add(getTxtTitleSize(), null); |
... | ... | |
682 | 607 |
jPanel.add(getChkTitle(), null); |
683 | 608 |
jPanel.add(getTxtTitle(), null); |
684 | 609 |
jLabel4 = new JLabel(); |
685 |
jLabel4.setBounds(215, 45, 100, 16);
|
|
610 |
jLabel4.setBounds(245, 64, 96, 20);
|
|
686 | 611 |
jPanel.add(jLabel4, null); |
687 | 612 |
jLabel4.setText(PluginServices.getText(this, "pixeles")); |
688 |
jPanel.add(getJButton2(), null); |
|
689 |
|
|
613 |
jPanel.add(getColorTitle(), null); |
|
690 | 614 |
} |
691 | 615 |
return jPanel; |
692 | 616 |
} |
... | ... | |
698 | 622 |
private JTextField getTxtTitleSize() { |
699 | 623 |
if (txtTitleSize == null) { |
700 | 624 |
txtTitleSize = new JTextField(); |
701 |
txtTitleSize.setBounds(149, 47, 60, 20);
|
|
625 |
txtTitleSize.setBounds(146, 65, 60, 20);
|
|
702 | 626 |
txtTitleSize.setEnabled(fframetext.hasTitle()); |
703 | 627 |
int i = fframetext.getTitleSize(); |
704 | 628 |
if (i == 0 && !txtTitleSize.isEnabled()) i = 5; |
... | ... | |
742 | 666 |
jLabel6 = new JLabel(); |
743 | 667 |
jLabel7 = new JLabel(); |
744 | 668 |
jPanel1.setLayout(null); |
745 |
jPanel1.setBounds(4, 199, 403, 106);
|
|
669 |
jPanel1.setBounds(5, 185, 403, 106);
|
|
746 | 670 |
jPanel1.add(getTxtCellPadding(), null); |
747 | 671 |
jPanel1.add(getChkSurroundingRectangle(), null); |
748 | 672 |
jPanel1.add(jLabel, null); |
... | ... | |
751 | 675 |
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, |
752 | 676 |
javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
753 | 677 |
jLabel5.setText(PluginServices.getText(this, "Milimetros")); |
754 |
jLabel5.setLocation(215, 46);
|
|
755 |
jLabel5.setSize(100, 16);
|
|
678 |
jLabel5.setLocation(244, 46);
|
|
679 |
jLabel5.setSize(110, 16);
|
|
756 | 680 |
jLabel5.setPreferredSize(new java.awt.Dimension(40,16)); |
757 |
jLabel6.setBounds(5, 47, 200, 20);
|
|
681 |
jLabel6.setBounds(34, 47, 204, 20);
|
|
758 | 682 |
jLabel6.setText(PluginServices.getText(this, "tamanyo_borde")); |
759 | 683 |
jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
760 |
jLabel7.setBounds(5, 73, 200, 20);
|
|
684 |
jLabel7.setBounds(34, 73, 202, 20);
|
|
761 | 685 |
jLabel7.setText(PluginServices.getText(this, "margenes")); |
762 | 686 |
jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
763 | 687 |
jPanel1.add(getTxtFrameSize(), null); |
764 | 688 |
jPanel1.add(jLabel6, null); |
765 | 689 |
jPanel1.add(jLabel7, null); |
766 | 690 |
jPanel1.add(jLabel5, null); |
767 |
jPanel1.add(getJButton1(), null); |
|
691 |
//jPanel1.add(getColorFrame(), null); |
|
692 |
jPanel1.add(getColorFrame(), null); |
|
693 |
jPanel1.add(getColorFrame(), null); |
|
768 | 694 |
} |
769 | 695 |
return jPanel1; |
770 | 696 |
} |
... | ... | |
792 | 718 |
* |
793 | 719 |
* @return javax.swing.JButton |
794 | 720 |
*/ |
795 |
private JButton getJButton1() { |
|
796 |
if (jButton1 == null) { |
|
797 |
jButton1 = new JButton(); |
|
798 |
jButton1.setForeground(fframetext.getFrameColor()); |
|
799 |
jButton1.setBackground(fframetext.getFrameColor()); |
|
800 |
jButton1.setBounds(365, 12, 32, 27); |
|
801 |
jButton1.addActionListener(new java.awt.event.ActionListener() { |
|
802 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
803 |
// color del marco |
|
804 |
JDialog dlg; |
|
805 |
JColorChooser colorChooser; |
|
806 |
colorChooser = new JColorChooser(); |
|
807 |
dlg = JColorChooser.createDialog((Component) PluginServices.getMainFrame(), |
|
808 |
PluginServices.getText(this, "Elegir_Color"), |
|
809 |
true, colorChooser, null, null); |
|
810 |
dlg.setVisible(true); |
|
811 |
|
|
812 |
frameColor = colorChooser.getColor(); |
|
813 |
|
|
814 |
//getJPanel1().setBackground(textcolor); |
|
815 |
jButton1.setBackground(frameColor); |
|
816 |
} |
|
817 |
}); |
|
721 |
private ColorChooserPanel getColorFrame() { |
|
722 |
if (m_colorChooser==null) { |
|
723 |
m_colorChooser=new ColorChooserPanel(); |
|
724 |
m_colorChooser.setAlpha(255); |
|
725 |
m_colorChooser.setBounds(new java.awt.Rectangle(155,15,80,25)); |
|
726 |
m_colorChooser.addActionListener(new java.awt.event.ActionListener() { |
|
727 |
public void actionPerformed(ActionEvent e) { |
|
728 |
frameColor = m_colorChooser.getColor(); |
|
729 |
} |
|
730 |
}); |
|
818 | 731 |
} |
819 |
return jButton1;
|
|
732 |
return m_colorChooser;
|
|
820 | 733 |
} |
821 | 734 |
/** |
822 |
* This method initializes jButton2
|
|
735 |
* This method initializes jButton1
|
|
823 | 736 |
* |
824 | 737 |
* @return javax.swing.JButton |
825 | 738 |
*/ |
826 |
private JButton getJButton2() { |
|
827 |
if (jButton2 == null) { |
|
828 |
jButton2 = new JButton(); |
|
829 |
jButton2.setForeground(fframetext.getTitleColor()); |
|
830 |
jButton2.setBackground(fframetext.getTitleColor()); |
|
831 |
jButton2.addActionListener(new java.awt.event.ActionListener() { |
|
832 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
833 |
// color del t?tulo |
|
834 |
JDialog dlg; |
|
835 |
JColorChooser colorChooser; |
|
836 |
colorChooser = new JColorChooser(); |
|
837 |
dlg = JColorChooser.createDialog((Component) PluginServices.getMainFrame(), |
|
838 |
PluginServices.getText(this, "Elegir_Color"), |
|
839 |
true, colorChooser, null, null); |
|
840 |
dlg.setVisible(true); |
|
841 |
|
|
842 |
titleColor = colorChooser.getColor(); |
|
843 |
jButton2.setBackground(titleColor); |
|
844 |
} |
|
845 |
}); |
|
846 |
|
|
847 |
jButton2.setBounds(365, 12, 32, 27); |
|
739 |
private ColorChooserPanel getColorFont() { |
|
740 |
if (m_colorFont==null) { |
|
741 |
m_colorFont=new ColorChooserPanel(); |
|
742 |
m_colorFont.setAlpha(255); |
|
743 |
m_colorFont.setLocation(new java.awt.Point(158,129)); |
|
744 |
m_colorFont.setSize(new java.awt.Dimension(80,25)); |
|
745 |
m_colorFont.addActionListener(new java.awt.event.ActionListener() { |
|
746 |
public void actionPerformed(ActionEvent e) { |
|
747 |
textcolor = m_colorFont.getColor(); |
|
748 |
} |
|
749 |
}); |
|
848 | 750 |
} |
849 |
return jButton2;
|
|
751 |
return m_colorFont;
|
|
850 | 752 |
} |
851 |
|
|
852 | 753 |
/** |
754 |
* This method initializes jButton1 |
|
755 |
* |
|
756 |
* @return javax.swing.JButton |
|
757 |
*/ |
|
758 |
private ColorChooserPanel getColorTitle() { |
|
759 |
if (m_colorTitle==null) { |
|
760 |
m_colorTitle=new ColorChooserPanel(); |
|
761 |
m_colorTitle.setAlpha(255); |
|
762 |
m_colorTitle.setBounds(new java.awt.Rectangle(155,11,80,25)); |
|
763 |
m_colorTitle.addActionListener(new java.awt.event.ActionListener() { |
|
764 |
public void actionPerformed(ActionEvent e) { |
|
765 |
titleColor = m_colorTitle.getColor(); |
|
766 |
} |
|
767 |
}); |
|
768 |
} |
|
769 |
return m_colorTitle; |
|
770 |
} |
|
771 |
/** |
|
853 | 772 |
* This method initializes pRotation |
854 | 773 |
* |
855 | 774 |
* @return javax.swing.JPanel |
... | ... | |
861 | 780 |
} |
862 | 781 |
return pRotation; |
863 | 782 |
} |
783 |
|
|
784 |
/** |
|
785 |
* This method initializes jPanel21 |
|
786 |
* |
|
787 |
* @return javax.swing.JPanel |
|
788 |
*/ |
|
789 |
private JPanel getJPanel21() { |
|
790 |
if (jPanel21 == null) { |
|
791 |
jPanel21 = new JPanel(); |
|
792 |
jPanel21.setBounds(new java.awt.Rectangle(6,95,126,60)); |
|
793 |
jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, PluginServices.getText(this, "alinear"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null)); |
|
794 |
jPanel21.add(getBIzquierda(), null); |
|
795 |
jPanel21.add(getBCentro(), null); |
|
796 |
jPanel21.add(getBDerecha(), null); |
|
797 |
} |
|
798 |
return jPanel21; |
|
799 |
} |
|
800 |
|
|
801 |
|
|
864 | 802 |
} // @jve:decl-index=0:visual-constraint="10,10" |
Also available in: Unified diff