/[schmitzm]/trunk/src/skrueger/geotools/CrsLabel.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/CrsLabel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1220 by alfonx, Wed Nov 3 13:09:32 2010 UTC revision 1221 by alfonx, Wed Nov 3 13:29:17 2010 UTC
# Line 15  public class CrsLabel extends JLabel { Line 15  public class CrsLabel extends JLabel {
15                          updateCrs();                          updateCrs();
16                  }                  }
17          };          };
18            
19          private final SelectableXMapPane mapPane;          private final SelectableXMapPane mapPane;
20    
21          CrsLabel(SelectableXMapPane mapPane) {          CrsLabel(SelectableXMapPane mapPane) {
# Line 29  public class CrsLabel extends JLabel { Line 29  public class CrsLabel extends JLabel {
29    
30          public void updateCrs() {          public void updateCrs() {
31                  try {                  try {
32                          setText(mapPane.getMapContext().getCoordinateReferenceSystem()                          setText("CRS:"
33                                          .getName().toString());                                          + mapPane.getMapContext().getCoordinateReferenceSystem()
34                                                            .getName().toString());
35                  } catch (Exception e) {                  } catch (Exception e) {
36                          setText("");                          setText("CRS:" + "NONE");
37                  }                  }
38          }          }
39    

Legend:
Removed from v.1220  
changed lines
  Added in v.1221

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26