[Schmitzm-commits] r164 - trunk/src/skrueger/geotools
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jun 23 18:06:23 CEST 2009
Author: alfonx
Date: 2009-06-23 18:06:23 +0200 (Tue, 23 Jun 2009)
New Revision: 164
Modified:
trunk/src/skrueger/geotools/MapView.java
Log:
* GP's MapComposer has a new button to store the ratio of legend and map. it can also be stored as the default for all maps.
Modified: trunk/src/skrueger/geotools/MapView.java
===================================================================
--- trunk/src/skrueger/geotools/MapView.java 2009-06-23 14:44:37 UTC (rev 163)
+++ trunk/src/skrueger/geotools/MapView.java 2009-06-23 16:06:23 UTC (rev 164)
@@ -24,7 +24,7 @@
public class MapView extends JPanel {
private static final Logger LOGGER = Logger.getLogger(MapView.class);
- public final JSplitPane splitPane = new JSplitPane(
+ private final JSplitPane splitPane = new JSplitPane(
JSplitPane.HORIZONTAL_SPLIT);
protected MapPaneStatusBar statusBar = null;
@@ -73,12 +73,16 @@
}
/**
- * Calls #getSidePanel() which can be overwritten.
+ * This routine creates the main components of the GUI: The left Side and the map on the right side.<br/>
+ * Calls #getSidePanel() which can be overwritten (call super!).<br/>
*
+ * This method initialized the variables {@link #statusBar} and {@link #splitPane}
+ *
* @see #adjustSizeOfGeoMapPane()
*/
public void initialize() {
// horizontales SplitPane initialisieren
+
// Status-Line to show Coordinates and Rastervalues.
statusBar = new MapPaneStatusBar(getGeoMapPane()
.getMapPane());
@@ -87,11 +91,15 @@
5, 2, 5)));
this.add(statusBar, BorderLayout.SOUTH);
- splitPane.setDividerLocation(-1);
- splitPane.setDividerSize(5);
- splitPane.setResizeWeight(0.0);
- splitPane.add(getSidePane());
+ /**
+ * The layout of the split pane can be configured in the atlas.
+ */
+ getSplitPane().setDividerSize(5);
+ getSplitPane().setDividerLocation(-1);
+
+ getSplitPane().setResizeWeight(0.0);
+ getSplitPane().add(getSidePane());
/***********************************************************************
* To the right side we now add a JPanel that consists of a toolbar and
@@ -100,9 +108,9 @@
JPanel newRight = new JPanel(new BorderLayout());
newRight.add(getToolBar(), BorderLayout.NORTH);
newRight.add(getGeoMapPane(), BorderLayout.CENTER);
- splitPane.add(newRight);
+ getSplitPane().add(newRight);
- this.add(splitPane, BorderLayout.CENTER);
+ this.add(getSplitPane(), BorderLayout.CENTER);
}
/**
@@ -117,7 +125,7 @@
* Returns the split pane which divides the layer list from the map panel.
*/
public JSplitPane getSplitPane() {
- return this.splitPane;
+ return splitPane;
}
More information about the Schmitzm-commits
mailing list