[Schmitzm-commits] r148 - in trunk/src: org/geotools/gui/swing skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 18 18:31:57 CEST 2009


Author: alfonx
Date: 2009-06-18 18:31:56 +0200 (Thu, 18 Jun 2009)
New Revision: 148

Modified:
   trunk/src/org/geotools/gui/swing/JMapPane.java
   trunk/src/skrueger/geotools/MapView.java
Log:
* Reorganized the UI of the Legend
* Solved the never-wide-enough legend, including the "..."

Modified: trunk/src/org/geotools/gui/swing/JMapPane.java
===================================================================
--- trunk/src/org/geotools/gui/swing/JMapPane.java	2009-06-18 12:59:20 UTC (rev 147)
+++ trunk/src/org/geotools/gui/swing/JMapPane.java	2009-06-18 16:31:56 UTC (rev 148)
@@ -57,6 +57,7 @@
 import java.util.Map;
 
 import javax.swing.JPanel;
+import javax.swing.LookAndFeel;
 
 import org.apache.log4j.Logger;
 import org.geotools.feature.FeatureCollection;
@@ -860,6 +861,7 @@
 															// vom L&F die
 															// hintergrundfarbe
 															// auslesen...
+				
 				g2.clearRect(0, 0, this.getWidth(), this.getHeight());
 				g2.drawImage(baseImage, dx, dy, this);
 				graphics.drawImage(panningImage, 0, 0, this);

Modified: trunk/src/skrueger/geotools/MapView.java
===================================================================
--- trunk/src/skrueger/geotools/MapView.java	2009-06-18 12:59:20 UTC (rev 147)
+++ trunk/src/skrueger/geotools/MapView.java	2009-06-18 16:31:56 UTC (rev 148)
@@ -26,7 +26,7 @@
 public class MapView extends JPanel {
 	private static final Logger LOGGER = Logger.getLogger(MapView.class);
 
-	private final JSplitPane splitPane = new JSplitPane(
+	public final JSplitPane splitPane = new JSplitPane(
 			JSplitPane.HORIZONTAL_SPLIT);
 
 	protected MapPaneStatusBar statusBar = null;
@@ -80,8 +80,10 @@
 				5, 2, 5)));
 		this.add(statusBar, BorderLayout.SOUTH);
 
-		splitPane.setDividerLocation(0.4);
+		splitPane.setDividerLocation(-1);
 		splitPane.setDividerSize(5);
+		
+		splitPane.setResizeWeight(0.0);
 
 		splitPane.add(getSidePane());
 



More information about the Schmitzm-commits mailing list