[Schmitzm-commits] r2090 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/selection

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 3 12:53:08 CEST 2012


Author: mojays
Date: 2012-10-03 12:53:07 +0200 (Wed, 03 Oct 2012)
New Revision: 2090

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
Log:
FeatureMapLayerSelectionSynchronizer: Javadoc corrected

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/selection/FeatureMapLayerSelectionSynchronizer.java	2012-09-29 22:50:56 UTC (rev 2089)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/selection/FeatureMapLayerSelectionSynchronizer.java	2012-10-03 10:53:07 UTC (rev 2090)
@@ -1,34 +1,34 @@
 /*******************************************************************************
  * Copyright (c) 2009 Martin O. J. Schmitz.
- * 
- * This file is part of the SCHMITZM library - a collection of utility 
- * classes based on Java 1.6, focusing (not only) on Java Swing 
+ *
+ * This file is part of the SCHMITZM library - a collection of utility
+ * classes based on Java 1.6, focusing (not only) on Java Swing
  * and the Geotools library.
- * 
+ *
  * The SCHMITZM project is hosted at:
  * http://wald.intevation.org/projects/schmitzm/
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
  * as published by the Free Software Foundation; either version 3
  * of the License, or (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Lesser General Public License (license.txt)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  * or try this link: http://www.gnu.org/licenses/lgpl.html
- * 
+ *
  * Contributors:
  *     Martin O. J. Schmitz - initial API and implementation
  *     Stefan A. Tzeggai - additional utility classes
  ******************************************************************************/
-/** 
- Copyright 2008 Stefan Alfons Tzeggai 
+/**
+ Copyright 2008 Stefan Alfons Tzeggai
 
  atlas-framework - This file is part of the Atlas Framework
 
@@ -78,20 +78,19 @@
 import de.schmitzm.geotools.styling.StylingUtil.SelectionStylesTypes;
 
 /**
- * This class keeps the selection of a (feature) {@link JTable} synchronized
- * with the {@link StyledLayerSelectionModel} of a layer. This is done by
- * implementing:
+ * This class keeps the selection of a (feature) {@link SelectableXMapPane}
+ * synchronized with the {@link StyledLayerSelectionModel} of a layer.
+ * This is done by implementing:
  * <ul>
- * <li>a {@link PropertyChangeListener} which listens to the
- * {@link StyledLayerSelectionModel} and accordingly changes the {@link JTable}
- * selection</li>
- * <li>a {@link ListSelectionListener} which listens to the {@link JTable} and
- * accordingly changes the {@link StyledLayerSelectionModel} selection</li>
+ * <li>a {@link PropertyChangeListener} (by super class) which listens to the
+ *     {@link StyledLayerSelectionModel} and accordingly changes the
+ *     {@link SelectableXMapPane} selection</li>
+ * <li>a {@link JMapPaneListener} which listens to the {@link SelectableXMapPane}
+ *     and accordingly changes the {@link StyledLayerSelectionModel} selection</li>
  * </ul>
  * After creating, the instance of this synchronizer must be added as listener
- * to both, the {@link StyledLayerSelectionModel} and the table's
- * {@link ListSelectionModel}.
- * 
+ * to both, the {@link StyledLayerSelectionModel} and the {@link JMapPane}.
+ *
  * @author <a href="mailto:martin.schmitz at koeln.de">Martin Schmitz</a>
  *         (University of Bonn/Germany)
  */
@@ -117,11 +116,11 @@
 
 	/**
 	 * Creates a new synchronizer
-	 * 
+	 *
 	 * @param layerSelModel
 	 *            layer selection model to keep synchronized with the
 	 *            {@link MapLayer}
-	 * 
+	 *
 	 * @param mapLayer
 	 *            {@link MapLayer} to keep synchronized with.
 	 */
@@ -141,10 +140,10 @@
 	/**
 	 * Called by {@link StyledLayerSelectionModel} when a the selection on other
 	 * selection components (map, chart, ...) has changed. When calling this
-	 * 
+	 *
 	 * method changes the {@link MapLayer} selection according to the
 	 * {@link StyledLayerSelectionModel} selection.
-	 * 
+	 *
 	 * @param evt
 	 *            an event
 	 */
@@ -179,7 +178,7 @@
 	/**
 	 * Changes the Style of the {@link MapLayer} to reflect changes of the
 	 * selection.
-	 * 
+	 *
 	 * @param newSelection
 	 *            A {@link Vector} of SimpleFeature-IDs that are selected.
 	 */
@@ -231,13 +230,13 @@
 				selectionFTStyle.setName(SELECTION_STYLING_FTS_NAME);
 
 				/**
-				 * 
+				 *
 				 * Add a Filter to the selectionMapStyle, so that it is only
 				 * used on objects that are selected. <br/>
 				 * To optimize rendering speed, the filter checks whether more
 				 * than half of the features are selected. If so, the filter is
 				 * inverted to be shorter.
-				 * 
+				 *
 				 */
 				final FeatureCollection<SimpleFeatureType, SimpleFeature> featureCollectionFiltered = styledLayer
 						.getFeatureCollectionFiltered();
@@ -322,7 +321,7 @@
 	/**
 	 * Analyzes whether the selection has changed in comparison to the selection
 	 * stored in the mapLayer.Style
-	 * 
+	 *
 	 * @param newSelection
 	 *            a List<String> of all newly selected FIDs
 	 * @param originalStyle



More information about the Schmitzm-commits mailing list