Revision 20910 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/gui/dialogs/FFrameViewDialog.java
FFrameViewDialog.java | ||
---|---|---|
62 | 62 |
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.JPRotation; |
63 | 63 |
import com.iver.cit.gvsig.project.documents.view.ProjectView; |
64 | 64 |
import javax.swing.JButton; |
65 |
import javax.swing.JCheckBox; |
|
65 | 66 |
|
66 | 67 |
|
67 | 68 |
/** |
... | ... | |
96 | 97 |
private FFrameView newFFrameView=null; |
97 | 98 |
private JButton bGrid = null; |
98 | 99 |
private IFFrame grid; |
100 |
private JCheckBox chbShowGrid = null; |
|
99 | 101 |
/** |
100 | 102 |
* This is the default constructor |
101 | 103 |
* |
... | ... | |
115 | 117 |
private void initialize() { |
116 | 118 |
this.setLayout(null); |
117 | 119 |
this.add(getJContentPane(), null); |
118 |
this.setSize(463, 222);
|
|
120 |
this.setSize(478, 269);
|
|
119 | 121 |
|
120 | 122 |
if (fframeview.getTypeScale() == 0 || fframeview.getTypeScale() == 1) { |
121 | 123 |
getTEscalaNumerica().setEnabled(false); |
... | ... | |
158 | 160 |
jContentPane.add(getCbCalidad(), null); |
159 | 161 |
jContentPane.add(getbAceptar(), null); |
160 | 162 |
jContentPane.add(getBCancelar(), null); |
161 |
jContentPane.setSize(462, 220);
|
|
163 |
jContentPane.setSize(475, 264);
|
|
162 | 164 |
jContentPane.setPreferredSize(new java.awt.Dimension(60, 60)); |
163 | 165 |
jContentPane.setLocation(0, 0); |
164 | 166 |
jContentPane.add(getPRotation(), null); |
165 | 167 |
jContentPane.add(getBGrid(), null); |
168 |
jContentPane.add(getChbShowGrid(), null); |
|
166 | 169 |
} |
167 | 170 |
|
168 | 171 |
return jContentPane; |
... | ... | |
270 | 273 |
private javax.swing.JCheckBox getChbEnlaceVivo() { |
271 | 274 |
if (chbEnlaceVivo == null) { |
272 | 275 |
chbEnlaceVivo = new javax.swing.JCheckBox(); |
273 |
chbEnlaceVivo.setSize(88, 24);
|
|
276 |
chbEnlaceVivo.setSize(134, 24);
|
|
274 | 277 |
chbEnlaceVivo.setText(PluginServices.getText(this, "enlace_vivo")); |
275 | 278 |
chbEnlaceVivo.setSelected(fframeview.getLinked()); |
276 | 279 |
chbEnlaceVivo.setLocation(10, 75); |
... | ... | |
465 | 468 |
bAceptar = new javax.swing.JButton(); |
466 | 469 |
bAceptar.setSize(85, 26); |
467 | 470 |
bAceptar.setText(PluginServices.getText(this, "Aceptar")); |
468 |
bAceptar.setLocation(109, 179); |
|
471 |
bAceptar.setBounds(new java.awt.Rectangle(109,223,85,26)); |
|
472 |
// bAceptar.setLocation(109, 179); |
|
469 | 473 |
bAceptar.addActionListener(new java.awt.event.ActionListener() { |
470 | 474 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
471 | 475 |
newFFrameView=(FFrameView)fframeview.cloneFFrame(m_layout); |
... | ... | |
495 | 499 |
// ((FFrameGrid)grid).setBoundBox(); |
496 | 500 |
newFFrameView.setGrid(grid); |
497 | 501 |
} |
502 |
newFFrameView.showGrid(getChbShowGrid().isSelected()); |
|
498 | 503 |
newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect( |
499 | 504 |
rect, m_layout.getAT())); |
500 | 505 |
|
... | ... | |
540 | 545 |
bCancelar = new javax.swing.JButton(); |
541 | 546 |
bCancelar.setSize(85, 26); |
542 | 547 |
bCancelar.setText(PluginServices.getText(this, "Cancelar")); |
543 |
bCancelar.setLocation(207, 179); |
|
548 |
bCancelar.setBounds(new java.awt.Rectangle(207,223,85,26)); |
|
549 |
// bCancelar.setLocation(207, 179); |
|
544 | 550 |
bCancelar.addActionListener(new java.awt.event.ActionListener() { |
545 | 551 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
546 | 552 |
newFFrameView=null; |
... | ... | |
639 | 645 |
private JButton getBGrid() { |
640 | 646 |
if (bGrid == null) { |
641 | 647 |
bGrid = new JButton(); |
642 |
bGrid.setBounds(new java.awt.Rectangle(11,179,85,26));
|
|
648 |
bGrid.setBounds(new java.awt.Rectangle(207,186,85,26));
|
|
643 | 649 |
bGrid.setText("grid"); |
644 | 650 |
bGrid.addActionListener(new java.awt.event.ActionListener() { |
645 | 651 |
|
... | ... | |
663 | 669 |
} |
664 | 670 |
return bGrid; |
665 | 671 |
} |
672 |
|
|
673 |
/** |
|
674 |
* This method initializes chbShowGrid |
|
675 |
* |
|
676 |
* @return javax.swing.JCheckBox |
|
677 |
*/ |
|
678 |
private JCheckBox getChbShowGrid() { |
|
679 |
if (chbShowGrid == null) { |
|
680 |
chbShowGrid = new JCheckBox(); |
|
681 |
chbShowGrid.setBounds(new java.awt.Rectangle(13,191,181,21)); |
|
682 |
chbShowGrid.setSelected(fframeview.isShowGrid()); |
|
683 |
chbShowGrid.setText(PluginServices.getText(this,"show_grid")); |
|
684 |
} |
|
685 |
return chbShowGrid; |
|
686 |
} |
|
666 | 687 |
} // @jve:decl-index=0:visual-constraint="10,10" |
Also available in: Unified diff