/[schmitzm]/trunk/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java
ViewVC logotype

Annotation of /trunk/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 96 - (hide annotations)
Fri May 8 11:23:16 2009 UTC (15 years, 9 months ago) by alfonx
File MIME type: text/plain
File size: 3258 byte(s)
(Hacking Session in action - atomic commits can't be ensured)
- Remodeling the SelectionModels
1 alfonx 96 /**
2     Copyright 2008 Stefan Alfons Krüger
3    
4     atlas-framework - This file is part of the Atlas Framework
5    
6     This library 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 2.1 of the License, or (at your option) any later version.
7     This library 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 Lesser General Public License for more details.
8     You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
9    
10     Diese Bibliothek ist freie Software; Sie dürfen sie unter den Bedingungen der GNU Lesser General Public License, wie von der Free Software Foundation veröffentlicht, weiterverteilen und/oder modifizieren; entweder gemäß Version 2.1 der Lizenz oder (nach Ihrer Option) jeder späteren Version.
11     Diese Bibliothek wird in der Hoffnung weiterverbreitet, daß sie nützlich sein wird, jedoch OHNE IRGENDEINE GARANTIE, auch ohne die implizierte Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Mehr Details finden Sie in der GNU Lesser General Public License.
12     Sie sollten eine Kopie der GNU Lesser General Public License zusammen mit dieser Bibliothek erhalten haben; falls nicht, schreiben Sie an die Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
13     **/
14     package skrueger.geotools.selection;
15    
16     import java.beans.PropertyChangeEvent;
17    
18     /**
19     * Extends the {@link PropertyChangeEvent} by maintaining the event emitter.
20     * The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source}
21     * holds the component which is component which causes the {@link StyledLayerSelectionModel}
22     * to invoke the event (e.g. a chart, a map or a feature table).
23     * @author <a href="mailto:[email protected]">Martin Schmitz</a> (University of Bonn/Germany)
24     */
25     public class StyledLayerSelectionEvent extends PropertyChangeEvent {
26     /** Holds the {@link StyledLayerSelectionModel} which invokes the event. */
27     protected StyledLayerSelectionModel emitter = null;
28    
29     /**
30     * Creates a new event.
31     * @param emitter the {@link StyledLayerSelectionModel} which invokes the event
32     * @param source the object which is responsable for the change (e.g. map or table);
33     * can be {@code null} if its a refresh event with no responsible
34     * @param propertyName the name of the changed property
35     * @param oldValue the old property value (can be <code>null</code>)
36     * @param newValue the new property value (can be <code>null</code>)
37     */
38     public StyledLayerSelectionEvent(StyledLayerSelectionModel emitter, Object source, String propertyName, Object oldValue, Object newValue) {
39     super(source, propertyName, oldValue, newValue);
40     this.emitter = emitter;
41     }
42    
43     /**
44     * Returns the {@link StyledLayerSelectionModel} which invokes the event.
45     */
46     public StyledLayerSelectionModel getEmitter() {
47     return emitter;
48     }
49    
50     }

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/plain

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26