[Schmitzm-commits] r476 - in branches/1.0-gt2-2.6/src/skrueger: geotools/selection swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 16 16:40:47 CEST 2009


Author: alfonx
Date: 2009-10-16 16:40:47 +0200 (Fri, 16 Oct 2009)
New Revision: 476

Added:
   branches/1.0-gt2-2.6/src/skrueger/swing/ThinButton.java
Modified:
   branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
Log:
* Improved GUI for UniqueValuesGUI

Modified: branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
===================================================================
--- branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java	2009-10-16 11:18:34 UTC (rev 475)
+++ branches/1.0-gt2-2.6/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java	2009-10-16 14:40:47 UTC (rev 476)
@@ -239,6 +239,8 @@
 				for (String fid : newSelection) {
 					fids.add(FilterUtil.FILTER_FAC2.featureId(fid));
 				}
+				
+				LOGGER.debug("The selection filter:"+fids);
 
 				selectionFTStyle.rules().get(0).setFilter(
 						FilterUtil.FILTER_FAC2.id(fids));
@@ -362,7 +364,7 @@
 			return;
 		}
 
-		LOGGER.debug("do event " + fse);
+//		LOGGER.debug("do event " + fse);
 
 		// Avoid event circles in propertyChange(..)
 		selectionChangeCausedByMe = true;

Added: branches/1.0-gt2-2.6/src/skrueger/swing/ThinButton.java
===================================================================
--- branches/1.0-gt2-2.6/src/skrueger/swing/ThinButton.java	2009-10-16 11:18:34 UTC (rev 475)
+++ branches/1.0-gt2-2.6/src/skrueger/swing/ThinButton.java	2009-10-16 14:40:47 UTC (rev 476)
@@ -0,0 +1,37 @@
+package skrueger.swing;
+
+import java.awt.Font;
+
+import javax.swing.Action;
+import javax.swing.Icon;
+import javax.swing.JButton;
+import javax.swing.JLabel;
+
+public class ThinButton extends JButton {
+
+	public static final float BUTTON_FONT_SIZE = 11;
+	public static final int BUTTON_FONT_STYLE = Font.PLAIN;
+	static final Font thinFont = new JLabel().getFont().deriveFont(
+			BUTTON_FONT_STYLE, BUTTON_FONT_SIZE);
+
+	public ThinButton(String label) {
+		this(label, null);
+	}
+
+	public ThinButton(Action action) {
+		super(action);
+		
+		init();
+	}
+
+	private void init() {
+		setFont(thinFont);
+	}
+
+	public ThinButton(String label, Icon icon) {
+		super(label, icon);
+
+		init();
+	}
+
+}


Property changes on: branches/1.0-gt2-2.6/src/skrueger/swing/ThinButton.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + Id URL
Name: svn:eol-style
   + native



More information about the Schmitzm-commits mailing list