Revision 42095

View differences:

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
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 {
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.mainplugin/src/main/resources-plugin/i18n/text.properties
1
_MultiLayer_selection=Selecci?n multi-capa
2
_Invalid_width_value=Valor de anchura no v?lido
3

  
4

  
1
Both=Dentro y fuera
2
bufferWidth_TOOLTIP_HTML_explanation=Anchura del buffer de selecci\u00f3n
3
distanceUnitsLabel_TOOLTIP_HTML_explanation=Unidades de la anchura del buffer de selecci\u00f3n (km=kil\u00f3metros, m=metros, cm=cent\u00edmetros, mm=mil\u00edmetros, mi=millas, Ya=yardas, ft=pies, in=pulgadas)
4
Inside=Dentro
5
Invalid_width_value=Valor de anchura no v\u00e1lido
6
lineSideLabel_TOOLTIP_HTML_explanation=Geometr\u00edas de tipo l\u00ednea (hacia fuera)
7
MultiLayer_selection=Selecci\u00f3n multi-capa
8
multiLayerSelection_checkbox_TOOLTIP_HTML_explanation=Activa la selecci\u00f3n para varias capas
9
MultiPoint=Multipunto
10
multiPointSideLabel_TOOLTIP_HTML_explanation=Geometr\u00edas de tipo multipunto (hacia fuera)
11
Options=Opciones
12
Outside=Fuera
13
pointSideLabel_TOOLTIP_HTML_explanation=Geometr\u00edas de tipo punto (hacia fuera)
14
polygonSideLabel_TOOLTIP_HTML_explanation=Geometr\u00edas de tipo pol\u00edgono (hacia dentro o hacia fuera)
15
Side=Lado
16
sideLabel_TOOLTIP_HTML_explanation=Selecciona el lado de creaci\u00f3n del buffer dependiendo de la geometr\u00eda seleccionada
17
Units=Unidades
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.selectiontools.app/org.gvsig.selectiontools.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties
1
_MultiLayer_selection=Multi-layer selection
2
_Invalid_width_value=Invalid width value
1
Both=Inside and outside
2
bufferWidth_TOOLTIP_HTML_explanation=Selection buffer width
3
distanceUnitsLabel_TOOLTIP_HTML_explanation=Width units of the selection buffer (km=kilometers, m=meters, cm=centimeters, mm=milimeters, mi=miles, Ya=yards, ft=feet, in=inches)
4
Inside=Inside
5
Invalid_width_value=Invalid width value
6
lineSideLabel_TOOLTIP_HTML_explanation=Line type geometries (towards outside)
7
MultiLayer_selection=Multi-layer selection
8
multiLayerSelection_checkbox_TOOLTIP_HTML_explanation=Enables selection for multiple layers
9
MultiPoint=Multi-point
10
multiPointSideLabel_TOOLTIP_HTML_explanation=Multipoint type geometries (towards outside)
11
Outside=Outside
12
Options=Options
13
pointSideLabel_TOOLTIP_HTML_explanation=Point type geometries (towards outside)
14
polygonSideLabel_TOOLTIP_HTML_explanation=Polygon type geometries (towards inside or towards outside)
15
Side=Side
16
sideLabel_TOOLTIP_HTML_explanation=Selects the buffer's creation side depending on the selected geometry
17
Units=Units

Also available in: Unified diff