Revision 42250 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/VectorialInterval.java
VectorialInterval.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.app.project.documents.view.legend.gui; |
25 | 25 |
|
26 |
import java.awt.BorderLayout; |
|
27 |
import java.awt.Color; |
|
28 |
import java.awt.Dimension; |
|
29 |
import java.awt.FlowLayout; |
|
30 |
import java.awt.GridLayout; |
|
26 |
import java.awt.*; |
|
31 | 27 |
import java.awt.event.ActionEvent; |
32 | 28 |
import java.awt.event.ActionListener; |
33 | 29 |
import java.text.NumberFormat; |
... | ... | |
43 | 39 |
import javax.swing.JOptionPane; |
44 | 40 |
import javax.swing.JPanel; |
45 | 41 |
import javax.swing.JTextField; |
42 |
import javax.swing.border.EmptyBorder; |
|
46 | 43 |
|
47 | 44 |
import org.gvsig.andami.IconThemeHelper; |
48 | 45 |
import org.gvsig.andami.PluginServices; |
... | ... | |
124 | 121 |
*/ |
125 | 122 |
private void initialize() { |
126 | 123 |
this.setLayout(new BorderLayout()); |
127 |
this.setSize(700, 350); |
|
124 |
this.setSize(700, 300); |
|
125 |
this.setBorder(new EmptyBorder(new Insets(5,5,5,5))); |
|
126 |
|
|
128 | 127 |
this.add(getPnlNorth(), BorderLayout.NORTH); |
129 |
|
|
130 | 128 |
this.add(getPnlButtons(), BorderLayout.SOUTH); |
131 | 129 |
this.add(getPnlCenter(), BorderLayout.CENTER); |
132 | 130 |
setOptionPanel(getOptionPanel()); |
... | ... | |
134 | 132 |
|
135 | 133 |
private JPanel getPnlNorth() { |
136 | 134 |
if (pnlNorth == null) { |
137 |
pnlNorth = new JPanel(new GridLayout(1, 2)); |
|
135 |
pnlNorth = new JPanel(new GridLayout(1, 2, 5, 5));
|
|
138 | 136 |
pnlNorth.add(getGeneralPanel()); |
139 | 137 |
} |
140 | 138 |
return pnlNorth; |
... | ... | |
151 | 149 |
pnlGeneral.setBorder(BorderFactory. |
152 | 150 |
createTitledBorder(null, |
153 | 151 |
PluginServices.getText(this, "fields"))); |
154 |
pnlGeneral.addComponent(PluginServices.getText(this, "Campo_de_clasificacion"), |
|
155 |
getCmbFields()); |
|
156 |
pnlGeneral.addComponent(PluginServices.getText(this, "tipo_de_intervalo"), |
|
157 |
getCmbIntervalTypes()); |
|
152 |
pnlGeneral.addComponent(PluginServices.getText(this, "Campo_de_clasificacion_XcolonX"),
|
|
153 |
getCmbFields(),new Insets(2, 5, 2, 5));
|
|
154 |
pnlGeneral.addComponent(PluginServices.getText(this, "tipo_de_intervalo_XcolonX"),
|
|
155 |
getCmbIntervalTypes(),new Insets(2, 5, 2, 5));
|
|
158 | 156 |
|
159 | 157 |
JPanel aux = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0)); |
160 | 158 |
aux.add(getTxtNumIntervals()); |
161 |
pnlGeneral.addComponent(PluginServices.getText(this, "No_de_intervalos"), |
|
162 |
aux); |
|
159 |
pnlGeneral.addComponent(PluginServices.getText(this, "No_de_intervalos_XcolonX"),
|
|
160 |
aux,new Insets(2, 5, 2, 5));
|
|
163 | 161 |
defaultSymbolPanel.add(getChkDefaultvalues(), null); |
164 |
pnlGeneral.addComponent(defaultSymbolPanel); |
|
162 |
pnlGeneral.addComponent(defaultSymbolPanel,new Insets(10, 25, 2, 5));
|
|
165 | 163 |
} |
166 | 164 |
return pnlGeneral; |
167 | 165 |
} |
... | ... | |
174 | 172 |
PluginServices.getText(this, "color_ramp"))); |
175 | 173 |
|
176 | 174 |
GridBagLayoutPanel aux = new GridBagLayoutPanel(); |
177 |
aux.addComponent(PluginServices.getText(this, "Color_inicio"), |
|
175 |
aux.addComponent(PluginServices.getText(this, "Color_inicio_XcolonX"),
|
|
178 | 176 |
getColorChooserPanel()); |
179 |
aux.addComponent(PluginServices.getText(this, "Color_final"), |
|
177 |
aux.addComponent(PluginServices.getText(this, "Color_final_XcolonX"),
|
|
180 | 178 |
getColorChooserPanel1()); |
181 | 179 |
optionPanel.add(aux); |
182 | 180 |
} |
Also available in: Unified diff