Revision 42095 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.mainplugin/src/main/java/org/gvsig/selectiontools/app/extension/tools/buffer/gui/BufferConfigurationPanel.java
BufferConfigurationPanel.java | ||
---|---|---|
80 | 80 |
import org.gvsig.utils.swing.JComboBox; |
81 | 81 |
|
82 | 82 |
/** |
83 |
*
|
|
84 |
*
|
|
83 |
* |
|
84 |
* |
|
85 | 85 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) |
86 | 86 |
*/ |
87 | 87 |
public class BufferConfigurationPanel extends JPanel implements IWindow { |
... | ... | |
132 | 132 |
public BufferConfigurationPanel(FLyrVect[] array, IView view) { |
133 | 133 |
this(Arrays.asList(array),view); |
134 | 134 |
} |
135 |
|
|
135 |
|
|
136 | 136 |
/** |
137 | 137 |
* Initializes this component. |
138 | 138 |
*/ |
... | ... | |
172 | 172 |
multiLayerSelectionCBox = new JCheckBox(); |
173 | 173 |
multiLayerSelectionCBox.setPreferredSize(new Dimension(330, 22)); |
174 | 174 |
multiLayerSelectionCBox.setText(PluginServices.getText(multiLayerSelectionCBox, |
175 |
"_MultiLayer_selection"));
|
|
175 |
"MultiLayer_selection")); |
|
176 | 176 |
multiLayerSelectionCBox.setSelected(true); |
177 | 177 |
multiLayerSelectionCBox.setToolTipText(PluginServices.getText(null, |
178 | 178 |
"multiLayerSelection_checkbox_TOOLTIP_HTML_explanation")); |
... | ... | |
186 | 186 |
widthPanel = new JPanel(); |
187 | 187 |
widthPanel.setPreferredSize(new Dimension(344, 55)); |
188 | 188 |
widthPanel.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(widthPanel, |
189 |
"Width")));
|
|
189 |
"width")));
|
|
190 | 190 |
widthPanel.setLayout(new FlowLayout()); |
191 | 191 |
widthPanel.add(getWidthLabel()); |
192 | 192 |
widthPanel.add(getWidthText()); |
... | ... | |
213 | 213 |
if (distanceText == null) { |
214 | 214 |
/* |
215 | 215 |
DecimalFormat decimalFormat = new DecimalFormat(); |
216 |
|
|
216 |
|
|
217 | 217 |
decimalFormat.setDecimalSeparatorAlwaysShown(true); |
218 | 218 |
decimalFormat.setMaximumIntegerDigits(12); |
219 | 219 |
decimalFormat.setMinimumIntegerDigits(1); |
220 | 220 |
decimalFormat.setMinimumFractionDigits(2); |
221 | 221 |
decimalFormat.setMaximumFractionDigits(4); |
222 |
|
|
222 |
|
|
223 | 223 |
decimalFormat.getDecimalFormatSymbols().setDecimalSeparator('.'); |
224 | 224 |
|
225 | 225 |
NumberFormatter numberFormatter = new NumberFormatter(); |
... | ... | |
244 | 244 |
private JLabel getDistanceUnitsLabel() { |
245 | 245 |
if (distanceUnitsLabel == null) { |
246 | 246 |
distanceUnitsLabel = |
247 |
new JLabel(PluginServices.getText(distanceUnitsLabel, "Unit"));
|
|
247 |
new JLabel(PluginServices.getText(distanceUnitsLabel, "Units") + ":");
|
|
248 | 248 |
distanceUnitsLabel.setAlignmentX(JLabel.RIGHT_ALIGNMENT); |
249 | 249 |
distanceUnitsLabel.setPreferredSize(new Dimension(68, 22)); |
250 | 250 |
distanceUnitsLabel.setToolTipText(PluginServices.getText(null, |
... | ... | |
307 | 307 |
private JLabel getPolygonSideLabel() { |
308 | 308 |
if (polygonSideLabel == null) { |
309 | 309 |
polygonSideLabel = |
310 |
new JLabel(PluginServices.getText(polygonSideLabel, "Polygon")); |
|
310 |
new JLabel(PluginServices.getText(polygonSideLabel, "Polygon") + ":");
|
|
311 | 311 |
polygonSideLabel.setPreferredSize(new Dimension(90, 22)); |
312 | 312 |
polygonSideLabel.setToolTipText(PluginServices.getText(null, |
313 | 313 |
"polygonSideLabel_TOOLTIP_HTML_explanation")); |
... | ... | |
345 | 345 |
private JLabel getLineSideLabel() { |
346 | 346 |
if (lineSideLabel == null) { |
347 | 347 |
lineSideLabel = |
348 |
new JLabel(PluginServices.getText(lineSideLabel, "Line")); |
|
348 |
new JLabel(PluginServices.getText(lineSideLabel, "Line") + ":");
|
|
349 | 349 |
lineSideLabel.setPreferredSize(new Dimension(90, 22)); |
350 | 350 |
lineSideLabel.setToolTipText(PluginServices.getText(null, |
351 | 351 |
"lineSideLabel_TOOLTIP_HTML_explanation")); |
... | ... | |
380 | 380 |
private JLabel getPointSideLabel() { |
381 | 381 |
if (pointSideLabel == null) { |
382 | 382 |
pointSideLabel = |
383 |
new JLabel(PluginServices.getText(pointSideLabel, "Point")); |
|
383 |
new JLabel(PluginServices.getText(pointSideLabel, "Point") + ":");
|
|
384 | 384 |
pointSideLabel.setPreferredSize(new Dimension(90, 22)); |
385 | 385 |
pointSideLabel.setToolTipText(PluginServices.getText(null, |
386 | 386 |
"pointSideLabel_TOOLTIP_HTML_explanation")); |
... | ... | |
416 | 416 |
if (multiPointSideLabel == null) { |
417 | 417 |
multiPointSideLabel = |
418 | 418 |
new JLabel(PluginServices.getText(multiPointSideLabel, |
419 |
"MultiPoint")); |
|
419 |
"MultiPoint") + ":");
|
|
420 | 420 |
multiPointSideLabel.setPreferredSize(new Dimension(90, 22)); |
421 | 421 |
multiPointSideLabel.setToolTipText(PluginServices.getText(null, |
422 | 422 |
"multiPointSideLabel_TOOLTIP_HTML_explanation")); |
... | ... | |
441 | 441 |
* <p> |
442 | 442 |
* This method initializes acceptCancelPanel. |
443 | 443 |
* </p> |
444 |
*
|
|
444 |
* |
|
445 | 445 |
* @return an adapted {@link AcceptCancelPanel AcceptCancelPanel} |
446 | 446 |
*/ |
447 | 447 |
private AdaptedAcceptCancelPanel getAdaptedAcceptCancelPanel() { |
... | ... | |
454 | 454 |
|
455 | 455 |
/* |
456 | 456 |
* (non-Javadoc) |
457 |
*
|
|
457 |
* |
|
458 | 458 |
* @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo() |
459 | 459 |
*/ |
460 | 460 |
public WindowInfo getWindowInfo() { |
... | ... | |
474 | 474 |
* Adapts {@link AcceptCancelPanel AcceptCancelPanel} to be used as a |
475 | 475 |
* component of the <code>BufferConfigurationPanel</code> panel. |
476 | 476 |
* </p> |
477 |
*
|
|
477 |
* |
|
478 | 478 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) |
479 | 479 |
*/ |
480 | 480 |
private class AdaptedAcceptCancelPanel extends AcceptCancelPanel { |
... | ... | |
492 | 492 |
* Create the action that will be executed when user pressed the |
493 | 493 |
* <i>ok</i> button. |
494 | 494 |
* </p> |
495 |
*
|
|
495 |
* |
|
496 | 496 |
* @return action that will be executed when user pressed the |
497 | 497 |
* <i>cancel</i> |
498 | 498 |
* button |
... | ... | |
517 | 517 |
.replaceAll("(\\.)?", "") |
518 | 518 |
.replace(",", ".")); // Formats the decimal |
519 | 519 |
// number to be parsed |
520 |
*
|
|
520 |
* |
|
521 | 521 |
*/ |
522 | 522 |
} catch (Exception ex) { |
523 |
|
|
523 |
|
|
524 | 524 |
JOptionPane.showMessageDialog( |
525 | 525 |
ApplicationLocator.getManager().getRootComponent(), |
526 | 526 |
Messages.getText("_Invalid_width_value") |
... | ... | |
529 | 529 |
JOptionPane.WARNING_MESSAGE); |
530 | 530 |
return; |
531 | 531 |
} |
532 |
|
|
532 |
|
|
533 | 533 |
/* 2- Closes this window */ |
534 | 534 |
closeThis(); |
535 | 535 |
|
... | ... | |
603 | 603 |
* Create the action that will be executed when user pressed the |
604 | 604 |
* <i>cancel</i> button. |
605 | 605 |
* </p> |
606 |
*
|
|
606 |
* |
|
607 | 607 |
* @return action that will be executed when user pressed the |
608 | 608 |
* <i>cancel</i> |
609 | 609 |
* button |
... | ... | |
634 | 634 |
} |
635 | 635 |
|
636 | 636 |
/** |
637 |
*
|
|
638 |
*
|
|
639 |
*
|
|
637 |
* |
|
638 |
* |
|
639 |
* |
|
640 | 640 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) |
641 | 641 |
*/ |
642 | 642 |
private class SideInfo { |
Also available in: Unified diff