/[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 1195 by alfonx, Tue Nov 2 10:33:32 2010 UTC
# Line 58  public class MapView extends JPanel { Line 58  public class MapView extends JPanel {
58                          JSplitPane.HORIZONTAL_SPLIT);                          JSplitPane.HORIZONTAL_SPLIT);
59    
60          protected MapPaneStatusBar statusBar = null;          protected MapPaneStatusBar statusBar = null;
   
61          /**          /**
62           * Komponente, in der die Karten, der Massstab und das Koordinaten-Raster           * Komponente, in der die Karten, der Massstab und das Koordinaten-Raster
63           * dargestellt werden.           * dargestellt werden.
64           */           */
   
65          protected final GeoMapPane geoMapPane = new GeoMapPane();          protected final GeoMapPane geoMapPane = new GeoMapPane();
66    
67          private MapPaneToolBar jToolBar;          private MapPaneToolBar jToolBar;
# Line 79  public class MapView extends JPanel { Line 77  public class MapView extends JPanel {
77                  // Needed because variables for the overwritten methods                  // Needed because variables for the overwritten methods
78                  // are not yet set.                  // are not yet set.
79                  jToolBar = toolBar;                  jToolBar = toolBar;
80    
81                    // By default the MapPane will render with antialiasing on
82                    getGeoMapPane().getMapPane().setAntiAliasing(true);
83          }          }
84    
85          /**          /**
# Line 105  public class MapView extends JPanel { Line 106  public class MapView extends JPanel {
106    
107                  // Status-Line to show Coordinates and Rastervalues.                  // Status-Line to show Coordinates and Rastervalues.
108                  statusBar = new MapPaneStatusBar(getGeoMapPane().getMapPane());                  statusBar = new MapPaneStatusBar(getGeoMapPane().getMapPane());
109                  statusBar.setBorder(BorderFactory.createCompoundBorder(BorderFactory                  statusBar.setBorder(BorderFactory.createCompoundBorder(
110                                  .createLoweredBevelBorder(), BorderFactory.createEmptyBorder(2,                                  BorderFactory.createLoweredBevelBorder(),
111                                  5, 2, 5)));                                  BorderFactory.createEmptyBorder(2, 5, 2, 5)));
112                  this.add(statusBar, BorderLayout.SOUTH);                  this.add(statusBar, BorderLayout.SOUTH);
113    
114                  /**                  /**
# Line 124  public class MapView extends JPanel { Line 125  public class MapView extends JPanel {
125                   * 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
126                   * a gmp                   * a gmp
127                   */                   */
128                  JPanel newRight = new JPanel(new MigLayout("center, wrap 1","[grow]","[][grow]"));                  JPanel newRight = new JPanel(new MigLayout("center, wrap 1", "[grow]",
129                                    "[][grow]"));
130                  newRight.add(getToolBar());                  newRight.add(getToolBar());
131                  newRight.add(getGeoMapPane(),"growx, growy");                  newRight.add(getGeoMapPane(), "growx, growy");
132                  getSplitPane().add(newRight);                  getSplitPane().add(newRight);
133    
134                  this.add(getSplitPane(), BorderLayout.CENTER);                  this.add(getSplitPane(), BorderLayout.CENTER);
135                    
136          }          }
137    
138          /**          /**

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26