Changeset 30759 in osm for applications/viewer/jmapviewer/src/org
- Timestamp:
- 2014-10-21T02:58:34+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r30628 r30759 43 43 public class JMapViewer extends JPanel implements TileLoaderListener { 44 44 45 private static final long serialVersionUID = 1L;46 47 45 public static boolean debug = false; 48 46 … … 100 98 * retrieving the tiles. 101 99 */ 100 @SuppressWarnings("unused") 102 101 public JMapViewer() { 103 102 this(new MemoryTileCache(), 8); … … 1066 1065 } 1067 1066 1068 protected EventListenerList listenerList = new EventListenerList();1067 protected EventListenerList evtListenerList = new EventListenerList(); 1069 1068 1070 1069 /** … … 1072 1071 */ 1073 1072 public void addJMVListener(JMapViewerEventListener listener) { 1074 listenerList.add(JMapViewerEventListener.class, listener);1073 evtListenerList.add(JMapViewerEventListener.class, listener); 1075 1074 } 1076 1075 … … 1079 1078 */ 1080 1079 public void removeJMVListener(JMapViewerEventListener listener) { 1081 listenerList.remove(JMapViewerEventListener.class, listener);1080 evtListenerList.remove(JMapViewerEventListener.class, listener); 1082 1081 } 1083 1082 … … 1088 1087 */ 1089 1088 void fireJMVEvent(JMVCommandEvent evt) { 1090 Object[] listeners = listenerList.getListenerList();1089 Object[] listeners = evtListenerList.getListenerList(); 1091 1090 for (int i=0; i<listeners.length; i+=2) { 1092 1091 if (listeners[i]==JMapViewerEventListener.class) {
Note:
See TracChangeset
for help on using the changeset viewer.