/[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 417 by alfonx, Fri Sep 25 16:34:10 2009 UTC revision 516 by alfonx, Wed Nov 11 21:17:33 2009 UTC
# Line 42  import net.miginfocom.swing.MigLayout; Line 42  import net.miginfocom.swing.MigLayout;
42  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
43    
44  import schmitzm.geotools.gui.GeoMapPane;  import schmitzm.geotools.gui.GeoMapPane;
 import schmitzm.geotools.gui.JMapPane;  
45  import schmitzm.geotools.gui.MapContextControlPane;  import schmitzm.geotools.gui.MapContextControlPane;
46  import schmitzm.geotools.gui.MapPaneStatusBar;  import schmitzm.geotools.gui.MapPaneStatusBar;
47    import schmitzm.geotools.gui.SelectableXMapPane;
48  import schmitzm.geotools.styling.ColorMapManager;  import schmitzm.geotools.styling.ColorMapManager;
49    
50  /**  /**
# Line 71  public class MapView extends JPanel { Line 71  public class MapView extends JPanel {
71          /**          /**
72           * Creates a new {@link MapView}. A {@link MapView} is a combination of a           * Creates a new {@link MapView}. A {@link MapView} is a combination of a
73           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and
74           * some buttons floating over the {@link JMapPane}           * some buttons floating over the {@link SelectableXMapPane}
75           */           */
76          public MapView(Component parentGui, MapPaneToolBar toolBar) {          public MapView(Component parentGui, MapPaneToolBar toolBar) {
77                  super(new BorderLayout());                  super(new BorderLayout());
78                  // Call initialize() by yourself afterwards.                  // Call initialize() by yourself afterwards.
79                  // Needed because variables for the overwritten methods                  // Needed because variables for the overwritten methods
80                  // are not yet set.                  // are not yet set.
                 getGeoMapPane().getMapPane().setWaitCursorComponent(parentGui);  
81                  jToolBar = toolBar;                  jToolBar = toolBar;
82          }          }
83    
84          /**          /**
85           * Creates a new {@link MapView}. A {@link MapView} is a combination of a           * Creates a new {@link MapView}. A {@link MapView} is a combination of a
86           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and
87           * some buttons floating over the {@link JMapPane}           * some buttons floating over the {@link SelectableXMapPane}
88           */           */
89          public MapView(Component parentGui) {          public MapView(Component parentGui) {
90                  this(parentGui, null);                  this(parentGui, null);
# Line 131  public class MapView extends JPanel { Line 130  public class MapView extends JPanel {
130                  getSplitPane().add(newRight);                  getSplitPane().add(newRight);
131    
132                  this.add(getSplitPane(), BorderLayout.CENTER);                  this.add(getSplitPane(), BorderLayout.CENTER);
133                    
134          }          }
135    
136          /**          /**
# Line 226  public class MapView extends JPanel { Line 226  public class MapView extends JPanel {
226          /**          /**
227           * Liefert den Karten-Bereich der Komponente.           * Liefert den Karten-Bereich der Komponente.
228           */           */
229          public final JMapPane getMapPane() {          public final SelectableXMapPane getMapPane() {
230                  return getGeoMapPane().getMapPane();                  return getGeoMapPane().getMapPane();
231          }          }
232    

Legend:
Removed from v.417  
changed lines
  Added in v.516

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26