/[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 165 by alfonx, Tue Jun 23 16:31:32 2009 UTC revision 226 by alfonx, Thu Jul 16 07:37:43 2009 UTC
# Line 1  Line 1 
1  package skrueger.geotools;  package skrueger.geotools;
2    
3  import java.awt.BorderLayout;  import java.awt.BorderLayout;
4  import java.awt.Window;  import java.awt.Component;
5    
6  import javax.swing.BorderFactory;  import javax.swing.BorderFactory;
7  import javax.swing.JComponent;  import javax.swing.JComponent;
# Line 10  import javax.swing.JSplitPane; Line 10  import javax.swing.JSplitPane;
10    
11  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
12  import org.geotools.renderer.lite.StreamingRenderer;  import org.geotools.renderer.lite.StreamingRenderer;
13    import org.geotools.renderer.shape.TransitionShapefileRenderer;
14    
15  import schmitzm.geotools.gui.GeoMapPane;  import schmitzm.geotools.gui.GeoMapPane;
16  import schmitzm.geotools.gui.JMapPane;  import schmitzm.geotools.gui.JMapPane;
# Line 43  public class MapView extends JPanel { Line 44  public class MapView extends JPanel {
44          // GeoMapPane(null,null,null,null, new StreamingRenderer());          // GeoMapPane(null,null,null,null, new StreamingRenderer());
45          // New Code uses Streaming renderer.          // New Code uses Streaming renderer.
46          protected final GeoMapPane geoMapPane = new GeoMapPane(null, null, null,          protected final GeoMapPane geoMapPane = new GeoMapPane(null, null, null,
47                          null, new StreamingRenderer());                          null, new TransitionShapefileRenderer());
48    
49          private MapPaneToolBar jToolBar;          private MapPaneToolBar jToolBar;
50    
# Line 52  public class MapView extends JPanel { Line 53  public class MapView extends JPanel {
53           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and
54           * some buttons floating over the {@link JMapPane}           * some buttons floating over the {@link JMapPane}
55           */           */
56          public MapView(Window parentGui, MapPaneToolBar toolBar) {          public MapView(Component parentGui, MapPaneToolBar toolBar) {
57                  super(new BorderLayout());                  super(new BorderLayout());
58                  // Call initialize() by yourself afterwards.                  // Call initialize() by yourself afterwards.
59                  // Needed because variables for the overwritten methods                  // Needed because variables for the overwritten methods
# Line 68  public class MapView extends JPanel { Line 69  public class MapView extends JPanel {
69           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and           * {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and
70           * some buttons floating over the {@link JMapPane}           * some buttons floating over the {@link JMapPane}
71           */           */
72          public MapView(Window parentGui) {          public MapView(Component parentGui) {
73                  this(parentGui, null);                  this(parentGui, null);
74          }          }
75    

Legend:
Removed from v.165  
changed lines
  Added in v.226

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26