/[schmitzm]/branches/2.2.x/src/skrueger/geotools/MapView.java
ViewVC logotype

Diff of /branches/2.2.x/src/skrueger/geotools/MapView.java

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

revision 111 by alfonx, Tue May 12 23:33:14 2009 UTC revision 162 by alfonx, Mon Jun 22 21:05:20 2009 UTC
# Line 9  import javax.swing.JPanel; Line 9  import javax.swing.JPanel;
9  import javax.swing.JSplitPane;  import javax.swing.JSplitPane;
10    
11  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
12    import org.geotools.renderer.lite.StreamingRenderer;
13    
14  import schmitzm.geotools.gui.GeoMapPane;  import schmitzm.geotools.gui.GeoMapPane;
15  import schmitzm.geotools.gui.JMapPane;  import schmitzm.geotools.gui.JMapPane;
# Line 18  import schmitzm.geotools.styling.ColorMa Line 19  import schmitzm.geotools.styling.ColorMa
19    
20  /**  /**
21   * Achtung! Dieser code ist verwuestet   * Achtung! Dieser code ist verwuestet
  */  
   
 /**  
22   * TODO DOKU und initialize schöner machen. SK   * TODO DOKU und initialize schöner machen. SK
23   */   */
24  public class MapView extends JPanel {  public class MapView extends JPanel {
25          private static final Logger LOGGER = Logger.getLogger(MapView.class);          private static final Logger LOGGER = Logger.getLogger(MapView.class);
26    
27          private final JSplitPane splitPane = new JSplitPane(          public final JSplitPane splitPane = new JSplitPane(
28                          JSplitPane.HORIZONTAL_SPLIT);                          JSplitPane.HORIZONTAL_SPLIT);
29    
30          protected MapPaneStatusBar statusBar = null;          protected MapPaneStatusBar statusBar = null;
31                    
32          /**          /**
33           * Komponente, in der die Karten, der Massstab und das Koordinaten-Raster           * Komponente, in der die Karten, der Massstab und das Koordinaten-Raster
34           * dargestellt werden           * dargestellt werden.
35           */           */
36          protected final GeoMapPane geoMapPane = new GeoMapPane();          
37            /**
38             * SK: 21.6.09: ShapeFileRenderer is supposed to be about 5x faster on
39             * ShapeFiles. The ShapeFileRenderer falls back to the
40             * StreamingRenderer.
41             */
42            // Old code:
43            //      protected final GeoMapPane geoMapPane = new GeoMapPane(null,null,null,null, new StreamingRenderer());
44            
45            // New Code uses Streaming renderer.
46            protected final GeoMapPane geoMapPane = new GeoMapPane(null,null,null,null, new StreamingRenderer());
47    
48          private MapPaneToolBar jToolBar;          private MapPaneToolBar jToolBar;
49    
# Line 71  public class MapView extends JPanel { Line 79  public class MapView extends JPanel {
79           */           */
80          public void initialize() {          public void initialize() {
81                  // horizontales SplitPane initialisieren                  // horizontales SplitPane initialisieren
82                    // Status-Line to show Coordinates and Rastervalues.
                 // Status-Zeile  
83                  statusBar = new MapPaneStatusBar(getGeoMapPane()                  statusBar = new MapPaneStatusBar(getGeoMapPane()
84                                  .getMapPane());                                  .getMapPane());
85                  statusBar.setBorder(BorderFactory.createCompoundBorder(BorderFactory                  statusBar.setBorder(BorderFactory.createCompoundBorder(BorderFactory
# Line 80  public class MapView extends JPanel { Line 87  public class MapView extends JPanel {
87                                  5, 2, 5)));                                  5, 2, 5)));
88                  this.add(statusBar, BorderLayout.SOUTH);                  this.add(statusBar, BorderLayout.SOUTH);
89    
90                  splitPane.setDividerLocation(0.4);                  splitPane.setDividerLocation(-1);
91                  splitPane.setDividerSize(5);                  splitPane.setDividerSize(5);
92                    
93                    splitPane.setResizeWeight(0.0);
94                  splitPane.add(getSidePane());                  splitPane.add(getSidePane());
95    
96                  /***********************************************************************                  /***********************************************************************

Legend:
Removed from v.111  
changed lines
  Added in v.162

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26