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

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

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

revision 862 by alfonx, Sat May 22 01:24:46 2010 UTC revision 1222 by alfonx, Wed Nov 3 14:07:08 2010 UTC
# Line 48  import schmitzm.geotools.gui.SelectableX Line 48  import schmitzm.geotools.gui.SelectableX
48  import schmitzm.geotools.styling.ColorMapManager;  import schmitzm.geotools.styling.ColorMapManager;
49    
50  /**  /**
51   * Achtung! Dieser code ist verwuestet TODO DOKU und initialize schöner machen.   * TODO Dokument
  * SK  
52   */   */
53  public class MapView extends JPanel {  public class MapView extends JPanel {
54          private static final Logger LOGGER = Logger.getLogger(MapView.class);          private static final Logger LOGGER = Logger.getLogger(MapView.class);
# Line 58  public class MapView extends JPanel { Line 57  public class MapView extends JPanel {
57                          JSplitPane.HORIZONTAL_SPLIT);                          JSplitPane.HORIZONTAL_SPLIT);
58    
59          protected MapPaneStatusBar statusBar = null;          protected MapPaneStatusBar statusBar = null;
   
60          /**          /**
61           * Komponente, in der die Karten, der Massstab und das Koordinaten-Raster           * Komponente, in der die Karten, der Massstab und das Koordinaten-Raster
62           * dargestellt werden.           * dargestellt werden.
63           */           */
   
64          protected final GeoMapPane geoMapPane = new GeoMapPane();          protected final GeoMapPane geoMapPane = new GeoMapPane();
65    
66          private MapPaneToolBar jToolBar;          private MapPaneToolBar jToolBar;
# Line 79  public class MapView extends JPanel { Line 76  public class MapView extends JPanel {
76                  // Needed because variables for the overwritten methods                  // Needed because variables for the overwritten methods
77                  // are not yet set.                  // are not yet set.
78                  jToolBar = toolBar;                  jToolBar = toolBar;
79    
80                    // By default the MapPane will render with antialiasing on
81                    getGeoMapPane().getMapPane().setAntiAliasing(true);
82          }          }
83    
84          /**          /**
# Line 105  public class MapView extends JPanel { Line 105  public class MapView extends JPanel {
105    
106                  // Status-Line to show Coordinates and Rastervalues.                  // Status-Line to show Coordinates and Rastervalues.
107                  statusBar = new MapPaneStatusBar(getGeoMapPane().getMapPane());                  statusBar = new MapPaneStatusBar(getGeoMapPane().getMapPane());
108                  statusBar.setBorder(BorderFactory.createCompoundBorder(BorderFactory                  statusBar.setBorder(BorderFactory.createCompoundBorder(
109                                  .createLoweredBevelBorder(), BorderFactory.createEmptyBorder(2,                                  BorderFactory.createLoweredBevelBorder(),
110                                  5, 2, 5)));                                  BorderFactory.createEmptyBorder(2, 5, 2, 5)));
111                  this.add(statusBar, BorderLayout.SOUTH);                  this.add(statusBar, BorderLayout.SOUTH);
112    
113                  /**                  /**
# Line 124  public class MapView extends JPanel { Line 124  public class MapView extends JPanel {
124                   * To the right side we now add a JPanel that consists of a toolbar and                   * To the right side we now add a JPanel that consists of a toolbar and
125                   * a gmp                   * a gmp
126                   */                   */
127                  JPanel newRight = new JPanel(new MigLayout("center, wrap 1","[grow]","[][grow]"));                  JPanel newRight = new JPanel(new MigLayout("center, wrap 1", "[grow]",
128                                    "[][grow]"));
129                  newRight.add(getToolBar());                  newRight.add(getToolBar());
130                  newRight.add(getGeoMapPane(),"growx, growy");  //              / crsName
131    //              newRight.add(new CrsLabel(getGeoMapPane().getMapPane()), "align right");
132                    newRight.add(getGeoMapPane(), "growx, growy");
133                  getSplitPane().add(newRight);                  getSplitPane().add(newRight);
134    
135                  this.add(getSplitPane(), BorderLayout.CENTER);                  this.add(getSplitPane(), BorderLayout.CENTER);
136                    
137          }          }
138    
139          /**          /**

Legend:
Removed from v.862  
changed lines
  Added in v.1222

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26