Revision 2998 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/Panels/SelectPointsPanel.java
SelectPointsPanel.java | ||
---|---|---|
112 | 112 |
lPoint.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
113 | 113 |
lPoint.setPreferredSize(new java.awt.Dimension(46,15)); |
114 | 114 |
lNumberOfPoints = new JLabel(); |
115 |
lNumberOfPoints.setText(PluginServices.getText(this, "de") + " 1");
|
|
115 |
lNumberOfPoints.setText(PluginServices.getText(this, "de") + " 0");
|
|
116 | 116 |
lNumberOfPoints.setPreferredSize(new java.awt.Dimension(37,15)); |
117 | 117 |
FlowLayout flowLayout = new FlowLayout(); |
118 | 118 |
flowLayout.setVgap(8); |
... | ... | |
296 | 296 |
resetControls(false); |
297 | 297 |
isNew = true; |
298 | 298 |
getCPoint().removeAllItems(); |
299 |
lNumberOfPoints.setText(PluginServices.getText(this, "de") + " " + lyrPoints.getCountPoints()); |
|
299 | 300 |
checkArrows(); |
300 | 301 |
View theView = (View) PluginServices.getMDIManager().getActiveView(); |
301 | 302 |
theView.getMapControl().getMapContext().invalidate(); |
... | ... | |
382 | 383 |
lyrPoints.addPoint(null, null); |
383 | 384 |
isNew = true; |
384 | 385 |
getCPoint().addItem("" + lyrPoints.getCountPoints()); |
386 |
lNumberOfPoints.setText(PluginServices.getText(this, "de ") + " " + lyrPoints.getCountPoints()); |
|
385 | 387 |
isNew = true; |
386 | 388 |
lastIndexSelection = lyrPoints.getCountPoints() - 1; |
387 | 389 |
getCPoint().setSelectedIndex(getCPoint().getItemCount() - 1); |
... | ... | |
453 | 455 |
getCPoint().setSelectedIndex(posSelect - 1); |
454 | 456 |
loadInfoPoint(posSelect - 1); |
455 | 457 |
} |
458 |
lNumberOfPoints.setText(PluginServices.getText(this, "de ") + " " + lyrPoints.getCountPoints()); |
|
456 | 459 |
checkArrows(); |
457 | 460 |
} |
458 | 461 |
} |
... | ... | |
826 | 829 |
*/ |
827 | 830 |
public void loadFromLyrPoints(FLyrPoints lyr){ |
828 | 831 |
if(lyr != null){ |
832 |
lyr.clean(); |
|
829 | 833 |
lyrPoints = lyr; |
830 | 834 |
View theView = (View) PluginServices.getMDIManager().getActiveView(); |
831 | 835 |
theView.getMapControl().getMapContext().beginAtomicEvent(); |
... | ... | |
835 | 839 |
this.getCPoint().removeAllItems(); |
836 | 840 |
for(int i=0;i<lyr.getCountPoints();i++) |
837 | 841 |
this.getCPoint().addItem("" + (i + 1)); |
842 |
lNumberOfPoints.setText(PluginServices.getText(this, "de") + " " + lyrPoints.getCountPoints()); |
|
838 | 843 |
if(lyr.getCountPoints() >= 1){ |
839 | 844 |
changePoint(true, 0); |
840 | 845 |
getBSelectFromView().setEnabled(true); |
Also available in: Unified diff