[Schmitzm-commits] r86 - in trunk: dist src/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 23 20:50:08 CEST 2009


Author: mojays
Date: 2009-04-23 20:50:02 +0200 (Thu, 23 Apr 2009)
New Revision: 86

Modified:
   trunk/dist/schmitzm-src.zip
   trunk/dist/schmitzm.jar
   trunk/src/schmitzm/geotools/gui/FeatureCollectionFrame.java
   trunk/src/schmitzm/geotools/gui/GeoPositionLabel.java
Log:
FeatureCollectionFrame
- selection column added by using SelectionTableModel
GeoPositionLabel
- displaying position label on mousePressed disabled, so that the envelope label is no longer shown on simple clicks



Modified: trunk/dist/schmitzm-src.zip
===================================================================
(Binary files differ)

Modified: trunk/dist/schmitzm.jar
===================================================================
(Binary files differ)

Modified: trunk/src/schmitzm/geotools/gui/FeatureCollectionFrame.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/FeatureCollectionFrame.java	2009-04-23 11:17:43 UTC (rev 85)
+++ trunk/src/schmitzm/geotools/gui/FeatureCollectionFrame.java	2009-04-23 18:50:02 UTC (rev 86)
@@ -68,19 +68,18 @@
     super();
     this.setLayout( new BorderLayout() );
     this.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
-    this.featuresPane = new FeatureTablePane(fc,geomPreview);
-    // Reset the table model to show a selection column
-    this.featuresPane.featuresTable.setModel( new SelectionTableModel(
-        this.featuresPane.featuresTableModel,
-        this.featuresPane.featuresTable
-    ));
-    // Because SortableJTable is used, the first col is always a checkbox.
-    // TODO: How wide is a CheckBox in differnet L'n'F s?
-    int selCol = featuresPane.featuresTable.convertColumnIndexToModel(0);
-//    featuresPane.featuresTable.getColumnModel().getColumn(selCol).setPreferredWidth(17);
-    featuresPane.featuresTable.getColumnModel().getColumn(selCol).setMaxWidth(17);
-//    featuresPane.featuresTable.getColumnModel().getColumn(selCol).setMinWidth(17);
-    
+    this.featuresPane = new FeatureTablePane(fc,geomPreview) {
+      protected void initGUI(boolean geomPreview) {
+        super.initGUI(geomPreview);
+        // Reset the table model to show a selection column
+        featuresTable.setModel( new SelectionTableModel(featuresTableModel, featuresTable) );
+        // Because SortableJTable is used, the first col is always a checkbox.
+        // TODO: How wide is a CheckBox in differnet L'n'F s?
+        int selCol = featuresTable.convertColumnIndexToModel(0);
+        featuresTable.getColumnModel().getColumn(selCol).setMaxWidth(17);
+        featuresTable.getColumnModel().getColumn(selCol).setMinWidth(17);
+      }
+    };
     this.getContentPane().add( featuresPane );
     this.pack();
   }

Modified: trunk/src/schmitzm/geotools/gui/GeoPositionLabel.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/GeoPositionLabel.java	2009-04-23 11:17:43 UTC (rev 85)
+++ trunk/src/schmitzm/geotools/gui/GeoPositionLabel.java	2009-04-23 18:50:02 UTC (rev 86)
@@ -164,8 +164,10 @@
   public void mousePressed(final MouseEvent e) {
     final Point2D p = JMapPane.getMapCoordinatesFromEvent(e);
     if ( p != null && e.getButton() == MouseEvent.BUTTON1) {
-      selStartCoord = p;
-      displayCoordinates(e);
+      selStartCoord = p;
+      //MS: on simple click the Envelope-Coordinates should not
+      //    be shown!
+      //displayCoordinates(e);
     }
   }
 



More information about the Schmitzm-commits mailing list