Revision 30840 trunk/extensions/extGraph/src/org/gvsig/graph/gui/ConnectivityControlPanel.java
ConnectivityControlPanel.java | ||
---|---|---|
175 | 175 |
if (jPanelCenter == null) { |
176 | 176 |
jLblAssociatedLayer = new JLabel(); |
177 | 177 |
jLblAssociatedLayer.setBounds(new Rectangle(15, 57, 111, 14)); |
178 |
jLblAssociatedLayer.setText("Capa asociada:");
|
|
178 |
jLblAssociatedLayer.setText(_T("Associated_layer") + ":");
|
|
179 | 179 |
jLblOriginPoint = new JLabel(); |
180 | 180 |
jLblOriginPoint.setBounds(new Rectangle(15, 17, 111, 14)); |
181 |
jLblOriginPoint.setText("Punto or?gen:");
|
|
181 |
jLblOriginPoint.setText(_T("Origin_point") + ":");
|
|
182 | 182 |
jPanelCenter = new JPanel(); |
183 | 183 |
jPanelCenter.setLayout(null); |
184 | 184 |
jPanelCenter.add(jLblOriginPoint, null); |
... | ... | |
360 | 360 |
private JButton getJBtnCalculate() { |
361 | 361 |
if (jBtnCalculate == null) { |
362 | 362 |
jBtnCalculate = new JButton(); |
363 |
jBtnCalculate.setText("Calcular");
|
|
363 |
jBtnCalculate.setText(_T("Calculate"));
|
|
364 | 364 |
jBtnCalculate.addActionListener(new ActionListener() { |
365 | 365 |
public void actionPerformed(ActionEvent e) { |
366 | 366 |
doConnectivityAnalisys(); |
... | ... | |
476 | 476 |
double tol = mapCtrl.getViewPort().toMapDistance(FlagListener.pixelTolerance); |
477 | 477 |
sourceFlag = net.createFlag(x, y, tol); |
478 | 478 |
if (sourceFlag == null) { |
479 |
JOptionPane.showMessageDialog(this, "Error al posicionar el punto sobre la red.");
|
|
479 |
JOptionPane.showMessageDialog(this, _T("Error positioning point on network."));
|
|
480 | 480 |
return; |
481 | 481 |
} |
482 | 482 |
solver.setSourceFlag(sourceFlag); |
483 | 483 |
} |
484 | 484 |
catch (NumberFormatException e) { |
485 |
JOptionPane.showMessageDialog(this, "Error en las coordenadas del punto de or?gen:" + e.getMessage());
|
|
485 |
JOptionPane.showMessageDialog(this, _T("Error in origin coordinates:" + e.getMessage()));
|
|
486 | 486 |
return; |
487 | 487 |
} |
488 | 488 |
long t1 = System.currentTimeMillis(); |
... | ... | |
534 | 534 |
jPanelOptions.setLayout(null); |
535 | 535 |
jPanelOptions.setBounds(new Rectangle(15, 87, 315, 140)); |
536 | 536 |
jPanelOptions.setBorder(BorderFactory.createTitledBorder(null, |
537 |
"Options", TitledBorder.DEFAULT_JUSTIFICATION,
|
|
537 |
_T("Options"), TitledBorder.DEFAULT_JUSTIFICATION,
|
|
538 | 538 |
TitledBorder.DEFAULT_POSITION, new Font("Tahoma", |
539 | 539 |
Font.PLAIN, 11), Color.black)); |
540 | 540 |
ButtonGroup group = new ButtonGroup(); |
... | ... | |
560 | 560 |
jRadioBtnNormalDirection = new JRadioButton(); |
561 | 561 |
jRadioBtnNormalDirection.setBounds(new Rectangle(15, 25, 200, 21)); |
562 | 562 |
jRadioBtnNormalDirection.setSelected(true); |
563 |
jRadioBtnNormalDirection.setText("Sentido normal");
|
|
563 |
jRadioBtnNormalDirection.setText(_T("Normal_direction"));
|
|
564 | 564 |
} |
565 | 565 |
return jRadioBtnNormalDirection; |
566 | 566 |
} |
... | ... | |
574 | 574 |
if (jRadioBtnReverseDirection == null) { |
575 | 575 |
jRadioBtnReverseDirection = new JRadioButton(); |
576 | 576 |
jRadioBtnReverseDirection.setBounds(new Rectangle(15, 53, 180, 23)); |
577 |
jRadioBtnReverseDirection.setText("Sentido inverso");
|
|
577 |
jRadioBtnReverseDirection.setText(_T("Reverse_direction"));
|
|
578 | 578 |
jRadioBtnReverseDirection.setSelected(false); |
579 | 579 |
} |
580 | 580 |
return jRadioBtnReverseDirection; |
... | ... | |
589 | 589 |
if (jChkBoxUseMaxDist == null) { |
590 | 590 |
jChkBoxUseMaxDist = new JCheckBox(); |
591 | 591 |
jChkBoxUseMaxDist.setBounds(new Rectangle(15, 85, 168, 21)); |
592 |
jChkBoxUseMaxDist.setText("Usar distancia m?xima:");
|
|
592 |
jChkBoxUseMaxDist.setText(_T("Use_max_distance") + ":");
|
|
593 | 593 |
} |
594 | 594 |
return jChkBoxUseMaxDist; |
595 | 595 |
} |
... | ... | |
603 | 603 |
if (jChkBoxUseMaxCost == null) { |
604 | 604 |
jChkBoxUseMaxCost = new JCheckBox(); |
605 | 605 |
jChkBoxUseMaxCost.setBounds(new Rectangle(15, 112, 167, 23)); |
606 |
jChkBoxUseMaxCost.setText("Usar coste m?ximo:");
|
|
606 |
jChkBoxUseMaxCost.setText(_T("Use_max_cost") + ":");
|
|
607 | 607 |
} |
608 | 608 |
return jChkBoxUseMaxCost; |
609 | 609 |
} |
... | ... | |
640 | 640 |
wi.setWidth(345); |
641 | 641 |
wi.setHeight(345); |
642 | 642 |
wi.setMinimumSize(new Dimension(345, 345)); |
643 |
wi.setTitle(PluginServices.getText(this, "connectivity_analisys")
|
|
643 |
wi.setTitle(PluginServices.getText(this, "connectivity_analysis")
|
|
644 | 644 |
+ "..."); |
645 | 645 |
} |
646 | 646 |
return wi; |
... | ... | |
725 | 725 |
} |
726 | 726 |
|
727 | 727 |
} |
728 |
private String _T(String str) { |
|
729 |
return PluginServices.getText(this, str); |
|
730 |
} |
|
728 | 731 |
|
729 | 732 |
} // @jve:decl-index=0:visual-constraint="10,10" |
Also available in: Unified diff