Changeset 30223 in osm for applications/viewer/jmapviewer/src/org/openstreetmap
- Timestamp:
- 2014-01-24T02:16:20+01:00 (11 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 55 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AbstractLayer.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL.4 3 5 4 import static org.openstreetmap.gui.jmapviewer.FeatureAdapter.tr; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Coordinate.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2009 by Stefan Zeller4 3 5 4 import java.awt.geom.Point2D; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
r18772 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.Point; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Demo.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.BorderLayout; … … 32 31 33 32 /** 34 *35 33 * Demonstrates the usage of {@link JMapViewer} 36 34 * -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/FeatureAdapter.java
r26783 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL.4 3 5 4 import java.awt.Desktop; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapController.java
r18772 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.event.MouseListener; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.Dimension; … … 36 35 37 36 /** 38 *39 37 * Provides a simple panel that displays pre-rendered map tiles loaded from the 40 38 * OpenStreetMap project. -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewerTree.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JobDispatcher.java
r29173 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.util.concurrent.BlockingDeque; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Layer.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/LayerGroup.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapMarkerCircle.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.AlphaComposite; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapMarkerDot.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.Color; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapObjectImpl.java
r29517 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 … … 99 100 if(name!=null && g!=null && position!=null){ 100 101 if(getFont()==null){ 101 Font f = getDefaultFont(); // g.getFont();102 Font f = getDefaultFont(); 102 103 setFont(new Font(f.getName(), Font.BOLD, f.getSize())); 103 104 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapPolygonImpl.java
r29757 r30223 1 // License: GPL. For details, see LICENSEfile.1 // License: GPL. For details, see Readme.txt file. 2 2 package org.openstreetmap.gui.jmapviewer; 3 3 … … 18 18 import org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon; 19 19 20 /**21 * @author Vincent22 *23 */24 20 public class MapPolygonImpl extends MapObjectImpl implements MapPolygon { 25 21 … … 52 48 } 53 49 54 /* (non-Javadoc)55 * @see org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon#getPoints()56 */57 50 @Override 58 51 public List<? extends ICoordinate> getPoints() { … … 60 53 } 61 54 62 /* (non-Javadoc)63 * @see org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon#paint(java.awt.Graphics, java.util.List)64 */65 55 @Override 66 56 public void paint(Graphics g, List<Point> points) { … … 72 62 } 73 63 74 /* (non-Javadoc)75 * @see org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon#paint(java.awt.Graphics, java.awt.Polygon)76 */77 64 @Override 78 65 public void paint(Graphics g, Polygon polygon) { … … 111 98 return new Style(Color.BLUE, new Color(100,100,100,50), new BasicStroke(2), getDefaultFont()); 112 99 } 113 /* (non-Javadoc) 114 * @see java.lang.Object#toString() 115 */ 100 116 101 @Override 117 102 public String toString() { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java
r29518 r30223 1 // License: GPL. For details, see LICENSEfile.1 // License: GPL. For details, see Readme.txt file. 2 2 package org.openstreetmap.gui.jmapviewer; 3 3 … … 11 11 import org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle; 12 12 13 /**14 * @author Vincent15 *16 */17 13 public class MapRectangleImpl extends MapObjectImpl implements MapRectangle { 18 14 … … 38 34 } 39 35 40 /* (non-Javadoc)41 * @see org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle#getTopLeft()42 */43 36 @Override 44 37 public Coordinate getTopLeft() { … … 46 39 } 47 40 48 /* (non-Javadoc)49 * @see org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle#getBottomRight()50 */51 41 @Override 52 42 public Coordinate getBottomRight() { … … 54 44 } 55 45 56 /* (non-Javadoc)57 * @see org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle#paint(java.awt.Graphics, java.awt.Point, java.awt.Point)58 */59 46 @Override 60 47 public void paint(Graphics g, Point topLeft, Point bottomRight) { … … 80 67 if(getLayer()==null||getLayer().isVisibleTexts()) paintText(g, p); 81 68 } 69 82 70 public static Style getDefaultStyle(){ 83 71 return new Style(Color.BLUE, null, new BasicStroke(2), getDefaultFont()); 84 72 } 73 85 74 @Override 86 75 public String toString() { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
r29822 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.util.HashMap; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.io.BufferedReader; … … 278 277 } else { 279 278 fin = new FileInputStream(tileFile); 280 if (fin.available() == 0) 281 throw new IOException("File empty"); 282 tile.loadImage(fin); 283 fin.close(); 279 try { 280 if (fin.available() == 0) 281 throw new IOException("File empty"); 282 tile.loadImage(fin); 283 } finally { 284 fin.close(); 285 } 284 286 } 285 287 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmMercator.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 3 // License: GPL. Copyright 2007 by Tim Haussmann4 5 4 /** 6 * This class implements the Mercator Projection as it is used by Open streetmap5 * This class implements the Mercator Projection as it is used by OpenStreetMap 7 6 * (and google). It provides methods to translate coordinates from 'map space' 8 7 * into latitude and longitude (on the WGS84 ellipsoid) and vice versa. Map 9 8 * space is measured in pixels. The origin of the map space is the top left 10 * corner. The map space origin (0,0) has latitude ~85 and longitude -180 11 * 12 * @author Tim Haussmann 13 * 9 * corner. The map space origin (0,0) has latitude ~85 and longitude -180. 14 10 */ 15 16 11 public class OsmMercator { 17 12 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.io.IOException; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Style.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Tile.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.Graphics; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileController.java
r29245 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxNodeData.java
r29515 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.checkBoxTree; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxNodeEditor.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.checkBoxTree; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxNodePanel.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.checkBoxTree; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxNodeRenderer.java
r29516 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.checkBoxTree; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxTree.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.checkBoxTree; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/events/JMVCommandEvent.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.events; 2 3 //License: GPL.4 3 5 4 import java.util.EventObject; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/Attributed.java
r26806 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 … … 4 5 5 6 import org.openstreetmap.gui.jmapviewer.Coordinate; 6 7 //License: GPL.8 7 9 8 public interface Attributed { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/CachedTileLoader.java
r29731 r30223 1 // License: GPL 1 // License: GPL. For details, see Readme.txt file. 2 2 package org.openstreetmap.gui.jmapviewer.interfaces; 3 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/ICoordinate.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/JMapViewerEventListener.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 //License: GPL.4 3 5 4 import java.util.EventListener; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/MapMarker.java
r29757 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import java.awt.Graphics; … … 18 17 public interface MapMarker extends MapObject, ICoordinate{ 19 18 20 public static enum STYLE {FIXED, VARIABLE} ;19 public static enum STYLE {FIXED, VARIABLE} 21 20 22 21 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/MapObject.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/MapPolygon.java
r29757 r30223 1 // License: GPL. For details, see LICENSEfile.1 // License: GPL. For details, see Readme.txt file. 2 2 package org.openstreetmap.gui.jmapviewer.interfaces; 3 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/MapRectangle.java
r29513 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 //License: GPL. Copyright 2009 by Stefan Zeller4 3 5 4 import java.awt.Graphics; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java
r28427 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 3 4 import org.openstreetmap.gui.jmapviewer.JMapViewer; 4 5 import org.openstreetmap.gui.jmapviewer.Tile; 5 6 //License: GPL. Copyright 2008 by Jan Peter Stotz7 6 8 7 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileClearController.java
r29731 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileJob.java
r28505 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 //License: GPL. Copyright 2012 by Dirk Stöcker4 3 5 4 import org.openstreetmap.gui.jmapviewer.Tile; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileLoader.java
r28505 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 //License: GPL. Copyright 2008 by Jan Peter Stotz4 3 5 4 import org.openstreetmap.gui.jmapviewer.Tile; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileLoaderListener.java
r28505 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 3 4 import org.openstreetmap.gui.jmapviewer.Tile; 4 5 //License: GPL. Copyright 2008 by Jan Peter Stotz6 5 7 6 public interface TileLoaderListener { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
r29516 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.interfaces; 2 3 … … 4 5 5 6 import org.openstreetmap.gui.jmapviewer.JMapViewer; 6 7 //License: GPL. Copyright 2008 by Jan Peter Stotz8 7 9 8 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractMapQuestTileSource.java
r27992 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractOsmTileSource.java
r29883 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
r26807 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 3 //License: GPL.4 5 import java.awt.Image;6 4 import java.io.IOException; 7 8 import javax.swing.ImageIcon;9 10 import org.openstreetmap.gui.jmapviewer.Coordinate;11 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;12 5 13 6 public abstract class AbstractTMSTileSource extends AbstractTileSource { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTileSource.java
r26806 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 … … 5 6 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource; 6 7 import org.openstreetmap.gui.jmapviewer.Coordinate; 7 8 //License: GPL. Copyright 2008 by Jan Peter Stotz9 8 10 9 abstract public class AbstractTileSource implements TileSource { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java
r29187 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 //License: GPL.4 3 5 4 import java.awt.Image; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/MapQuestOpenAerialTileSource.java
r27992 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/MapQuestOsmTileSource.java
r29845 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/OsmTileSource.java
r29883 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r30222 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TMSTileSource.java
r26807 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3 //License: GPL.4 5 import java.awt.Image;6 7 import org.openstreetmap.gui.jmapviewer.Coordinate;8 3 9 4 public class TMSTileSource extends AbstractTMSTileSource { … … 36 31 return TileUpdate.IfNoneMatch; 37 32 } 38 39 33 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r26975 r30223 1 // License: GPL. For details, see Readme.txt file. 1 2 package org.openstreetmap.gui.jmapviewer.tilesources; 2 3
Note:
See TracChangeset
for help on using the changeset viewer.