Changeset 21 in josm
- Timestamp:
- 2005-10-20T13:00:33+02:00 (19 years ago)
- Files:
-
- 5 added
- 1 deleted
- 35 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r20 r21 1 1 // Licence: GPL 2 package org.openstreetmap.josm .gui;2 package org.openstreetmap.josm; 3 3 4 4 import java.awt.BorderLayout; … … 22 22 import org.openstreetmap.josm.data.Preferences; 23 23 import org.openstreetmap.josm.data.Preferences.PreferencesException; 24 import org.openstreetmap.josm.gui.ImageProvider; 25 import org.openstreetmap.josm.gui.MapFrame; 24 26 25 27 /** -
src/org/openstreetmap/josm/actions/AboutAction.java
r19 r21 24 24 import javax.swing.event.HyperlinkListener; 25 25 26 import org.openstreetmap.josm.Main; 26 27 import org.openstreetmap.josm.gui.GBC; 27 28 import org.openstreetmap.josm.gui.ImageProvider; 28 import org.openstreetmap.josm.gui.Main;29 29 30 30 /** -
src/org/openstreetmap/josm/actions/OpenGpxAction.java
r18 r21 17 17 import javax.swing.filechooser.FileFilter; 18 18 19 import org.openstreetmap.josm.data.osm.DataSet; 19 import org.openstreetmap.josm.Main; 20 import org.openstreetmap.josm.command.DataSet; 20 21 import org.openstreetmap.josm.gui.GBC; 21 22 import org.openstreetmap.josm.gui.ImageProvider; 22 import org.openstreetmap.josm.gui.Main;23 23 import org.openstreetmap.josm.gui.MapFrame; 24 24 import org.openstreetmap.josm.gui.layer.Layer; -
src/org/openstreetmap/josm/actions/OpenOsmServerAction.java
r20 r21 19 19 import javax.swing.event.ListSelectionListener; 20 20 21 import org.openstreetmap.josm.Main; 22 import org.openstreetmap.josm.command.DataSet; 21 23 import org.openstreetmap.josm.data.GeoPoint; 22 import org.openstreetmap.josm.data.osm.DataSet;23 24 import org.openstreetmap.josm.gui.BookmarkList; 24 25 import org.openstreetmap.josm.gui.GBC; 25 26 import org.openstreetmap.josm.gui.ImageProvider; 26 import org.openstreetmap.josm.gui.Main;27 27 import org.openstreetmap.josm.gui.MapFrame; 28 28 import org.openstreetmap.josm.gui.MapView; -
src/org/openstreetmap/josm/actions/SaveGpxAction.java
r17 r21 11 11 import javax.swing.JOptionPane; 12 12 13 import org.openstreetmap.josm.Main; 13 14 import org.openstreetmap.josm.gui.ImageProvider; 14 import org.openstreetmap.josm.gui.Main;15 15 import org.openstreetmap.josm.io.GpxWriter; 16 16 -
src/org/openstreetmap/josm/actions/mapmode/AddLineSegmentAction.java
r17 r21 10 10 import javax.swing.JOptionPane; 11 11 12 import org.openstreetmap.josm.data.osm.DataSet; 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.command.DataSet; 13 14 import org.openstreetmap.josm.data.osm.LineSegment; 14 15 import org.openstreetmap.josm.data.osm.Node; 15 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 17 import org.openstreetmap.josm.data.osm.Track; 17 import org.openstreetmap.josm.gui.Main;18 18 import org.openstreetmap.josm.gui.MapFrame; 19 19 -
src/org/openstreetmap/josm/actions/mapmode/AddTrackAction.java
r17 r21 6 6 import java.util.LinkedList; 7 7 8 import org.openstreetmap.josm. data.osm.DataSet;8 import org.openstreetmap.josm.command.DataSet; 9 9 import org.openstreetmap.josm.data.osm.LineSegment; 10 10 import org.openstreetmap.josm.data.osm.OsmPrimitive; -
src/org/openstreetmap/josm/actions/mapmode/CombineAction.java
r17 r21 9 9 import javax.swing.JOptionPane; 10 10 11 import org.openstreetmap.josm.data.osm.DataSet; 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.command.DataSet; 12 13 import org.openstreetmap.josm.data.osm.LineSegment; 13 14 import org.openstreetmap.josm.data.osm.Node; 14 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 16 import org.openstreetmap.josm.data.osm.Track; 16 import org.openstreetmap.josm.gui.Main;17 17 import org.openstreetmap.josm.gui.MapFrame; 18 18 -
src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r17 r21 10 10 import javax.swing.JOptionPane; 11 11 12 import org.openstreetmap.josm.data.osm.DataSet; 12 import org.openstreetmap.josm.Main; 13 import org.openstreetmap.josm.command.DataSet; 13 14 import org.openstreetmap.josm.data.osm.Key; 14 15 import org.openstreetmap.josm.data.osm.LineSegment; … … 16 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 18 import org.openstreetmap.josm.data.osm.Track; 18 import org.openstreetmap.josm.gui.Main;19 19 import org.openstreetmap.josm.gui.MapFrame; 20 20 -
src/org/openstreetmap/josm/actions/mapmode/MoveAction.java
r17 r21 8 8 import java.util.HashSet; 9 9 10 import org.openstreetmap.josm. data.osm.DataSet;10 import org.openstreetmap.josm.command.DataSet; 11 11 import org.openstreetmap.josm.data.osm.Node; 12 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; -
src/org/openstreetmap/josm/actions/mapmode/SelectionAction.java
r17 r21 5 5 import java.util.Collection; 6 6 7 import org.openstreetmap.josm. data.osm.DataSet;7 import org.openstreetmap.josm.command.DataSet; 8 8 import org.openstreetmap.josm.data.osm.OsmPrimitive; 9 9 import org.openstreetmap.josm.gui.MapFrame; -
src/org/openstreetmap/josm/command/DataSet.java
r18 r21 1 package org.openstreetmap.josm. data.osm;1 package org.openstreetmap.josm.command; 2 2 3 3 import java.util.Collection; … … 12 12 import org.openstreetmap.josm.data.Bounds; 13 13 import org.openstreetmap.josm.data.SelectionTracker; 14 import org.openstreetmap.josm.data.osm.LineSegment; 15 import org.openstreetmap.josm.data.osm.Node; 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 import org.openstreetmap.josm.data.osm.Track; 14 18 15 19 /** … … 18 22 * several different ones, saved, (up/down/disk)loaded etc. 19 23 * 20 * Note, that DataSet is not an osm-primitive, so it has no key association but a few 24 * Note, that DataSet is not an osm-primitive, it is not within 25 * org.openstreetmap.josm.data.osm and has no key association but a few 21 26 * members to store some information. 22 27 * … … 36 41 * are in this list but are in no track. 37 42 */ 38 privateCollection<LineSegment> pendingLineSegments = new LinkedList<LineSegment>();43 Collection<LineSegment> pendingLineSegments = new LinkedList<LineSegment>(); 39 44 40 45 /** … … 45 50 * track list. 46 51 */ 47 privateCollection<Track> tracks = new LinkedList<Track>();52 Collection<Track> tracks = new LinkedList<Track>(); 48 53 49 54 /** -
src/org/openstreetmap/josm/data/osm/LineSegment.java
r18 r21 18 18 * The starting node of the line segment 19 19 */ 20 Node start;20 public Node start; 21 21 22 22 /** 23 23 * The ending node of the line segment 24 24 */ 25 Node end;25 public Node end; 26 26 27 27 /** … … 69 69 * The LineSegment is going to be destroyed. Unlink all back references. 70 70 */ 71 void destroy() {71 public void destroy() { 72 72 start.parentSegment.remove(this); 73 73 end.parentSegment.remove(this); -
src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r10 r21 4 4 import java.util.Map; 5 5 6 import org.openstreetmap.josm.command.DataSet; 6 7 import org.openstreetmap.josm.data.osm.visitor.Visitor; 7 8 -
src/org/openstreetmap/josm/data/osm/Track.java
r9 r21 80 80 * The track is going to be destroyed. Unlink all back references. 81 81 */ 82 void destroy() {82 public void destroy() { 83 83 for (LineSegment ls : segments) { 84 84 ls.parent.remove(this); -
src/org/openstreetmap/josm/data/osm/visitor/SelectionComponentVisitor.java
r17 r21 19 19 * @author imi 20 20 */ 21 public class SelectionComponentVisitor extends Visitor {21 public class SelectionComponentVisitor implements Visitor { 22 22 23 23 /** … … 34 34 * A key icon and the name of the key. 35 35 */ 36 @Override37 36 public void visit(Key k) { 38 37 name = k.name; … … 45 44 * "(x1,y1) -> (x2,y2)" is displayed with the nodes coordinates. 46 45 */ 47 @Override48 46 public void visit(LineSegment ls) { 49 47 String name = getName(ls.keys); … … 59 57 * is displayed. 60 58 */ 61 @Override62 59 public void visit(Node n) { 63 60 String name = getName(n.keys); … … 73 70 * is displayed with x beeing the number of nodes in the track. 74 71 */ 75 @Override76 72 public void visit(Track t) { 77 73 String name = getName(t.keys); -
src/org/openstreetmap/josm/data/osm/visitor/Visitor.java
r8 r21 12 12 * @author imi 13 13 */ 14 abstract public classVisitor {15 public void visit(Node n) {}16 public void visit(LineSegment ls) {}17 public void visit(Track t) {}18 public void visit(Key k) {}14 public interface Visitor { 15 void visit(Node n); 16 void visit(LineSegment ls); 17 void visit(Track t); 18 void visit(Key k); 19 19 } -
src/org/openstreetmap/josm/data/projection/Projection.java
r16 r21 8 8 import javax.swing.event.ChangeListener; 9 9 10 import org.openstreetmap.josm.command.DataSet; 10 11 import org.openstreetmap.josm.data.GeoPoint; 11 import org.openstreetmap.josm.data.osm.DataSet;12 12 13 13 /** -
src/org/openstreetmap/josm/data/projection/UTM.java
r17 r21 15 15 import javax.swing.SpinnerNumberModel; 16 16 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.command.DataSet; 17 19 import org.openstreetmap.josm.data.Bounds; 18 20 import org.openstreetmap.josm.data.GeoPoint; 19 import org.openstreetmap.josm.data.osm.DataSet;20 21 import org.openstreetmap.josm.gui.GBC; 21 import org.openstreetmap.josm.gui.Main;22 22 23 23 /** -
src/org/openstreetmap/josm/gui/BookmarkList.java
r20 r21 16 16 import javax.swing.JOptionPane; 17 17 18 import org.openstreetmap.josm.Main; 18 19 import org.openstreetmap.josm.data.Preferences; 19 20 -
src/org/openstreetmap/josm/gui/ImageProvider.java
r17 r21 12 12 import javax.swing.Icon; 13 13 import javax.swing.ImageIcon; 14 15 import org.openstreetmap.josm.Main; 14 16 15 17 /** -
src/org/openstreetmap/josm/gui/MapView.java
r17 r21 17 17 import javax.swing.event.ChangeListener; 18 18 19 import org.openstreetmap.josm.Main; 20 import org.openstreetmap.josm.command.DataSet; 19 21 import org.openstreetmap.josm.data.Bounds; 20 22 import org.openstreetmap.josm.data.GeoPoint; 21 import org.openstreetmap.josm.data.osm.DataSet;22 23 import org.openstreetmap.josm.data.osm.LineSegment; 23 24 import org.openstreetmap.josm.data.osm.Node; … … 86 87 */ 87 88 public MapView(Layer layer) { 88 if (layer. getDataSet()== null)89 if (layer.dataSet == null) 89 90 throw new IllegalArgumentException("Initial layer must have a dataset."); 90 91 … … 114 115 layers.add(0,layer); 115 116 116 DataSet ds = layer.getDataSet(); 117 118 if (ds != null) { 117 if (layer.dataSet != null) { 119 118 // initialize the projection if it was the first layer 120 119 if (layers.size() == 1) 121 Main.pref.getProjection().init( ds);120 Main.pref.getProjection().init(layer.dataSet); 122 121 123 122 // initialize the dataset in the new layer 124 for (Node n : ds.nodes)123 for (Node n : layer.dataSet.nodes) 125 124 Main.pref.getProjection().latlon2xy(n.coor); 126 125 } … … 320 319 for (int i = layers.size()-1; i >= 0; --i) { 321 320 Layer l = layers.get(i); 322 if (l. isVisible())321 if (l.visible) 323 322 l.paint(g, this); 324 323 } … … 333 332 Projection p = Main.pref.getProjection(); 334 333 for (Layer l : layers) { 335 DataSet ds = l. getDataSet();334 DataSet ds = l.dataSet; 336 335 if (ds != null) 337 336 for (Node n : ds.nodes) … … 382 381 */ 383 382 public DataSet getActiveDataSet() { 384 if (activeLayer.getDataSet() != null) 385 return activeLayer.getDataSet(); 386 for (Layer l : layers) { 387 DataSet ds = l.getDataSet(); 388 if (ds != null) 389 return ds; 390 } 383 if (activeLayer.dataSet != null) 384 return activeLayer.dataSet; 385 for (Layer l : layers) 386 if (l.dataSet != null) 387 return l.dataSet; 391 388 throw new IllegalStateException("No dataset found."); 392 389 } … … 486 483 activeLayer = layer; 487 484 if (old != layer) { 488 if (old != null && old. getDataSet()!= null)489 old. getDataSet().clearSelection();485 if (old != null && old.dataSet != null) 486 old.dataSet.clearSelection(); 490 487 for (LayerChangeListener l : listeners) 491 488 l.activeLayerChange(old, layer); -
src/org/openstreetmap/josm/gui/PreferenceDialog.java
r20 r21 28 28 import javax.swing.UIManager.LookAndFeelInfo; 29 29 30 import org.openstreetmap.josm.Main; 30 31 import org.openstreetmap.josm.data.Preferences; 31 32 import org.openstreetmap.josm.data.Preferences.PreferencesException; -
src/org/openstreetmap/josm/gui/SelectionManager.java
r17 r21 15 15 import java.util.LinkedList; 16 16 17 import org.openstreetmap.josm. data.osm.DataSet;17 import org.openstreetmap.josm.command.DataSet; 18 18 import org.openstreetmap.josm.data.osm.LineSegment; 19 19 import org.openstreetmap.josm.data.osm.Node; -
src/org/openstreetmap/josm/gui/dialogs/LayerList.java
r18 r21 23 23 import javax.swing.event.ListSelectionListener; 24 24 25 import org.openstreetmap.josm.data.osm.DataSet; 25 import org.openstreetmap.josm.Main; 26 import org.openstreetmap.josm.command.DataSet; 26 27 import org.openstreetmap.josm.gui.ImageProvider; 27 import org.openstreetmap.josm.gui.Main;28 28 import org.openstreetmap.josm.gui.MapFrame; 29 29 import org.openstreetmap.josm.gui.MapView; … … 84 84 Layer layer = (Layer)value; 85 85 JLabel label = (JLabel)super.getListCellRendererComponent(list, 86 layer. getName(), index, isSelected, cellHasFocus);86 layer.name, index, isSelected, cellHasFocus); 87 87 Icon icon = layer.getIcon(); 88 if (!layer. isVisible())88 if (!layer.visible) 89 89 icon = ImageProvider.overlay(icon, invisible, ImageProvider.OverlayPosition.SOUTHEAST); 90 90 label.setIcon(icon); 91 91 92 DataSet ds = layer. getDataSet();92 DataSet ds = layer.dataSet; 93 93 if (ds != null) { 94 94 label.setToolTipText(ds.nodes.size()+" nodes, "+ … … 148 148 public void actionPerformed(ActionEvent e) { 149 149 Layer l = (Layer)layers.getSelectedValue(); 150 l. setVisible(!l.isVisible());150 l.visible = !l.visible; 151 151 mapView.repaint(); 152 152 layers.repaint(); … … 175 175 public void actionPerformed(ActionEvent e) { 176 176 Layer lFrom = (Layer)layers.getSelectedValue(); 177 DataSet dsFrom = lFrom. getDataSet();177 DataSet dsFrom = lFrom.dataSet; 178 178 Layer lTo = (Layer)model.get(layers.getSelectedIndex()+1); 179 DataSet dsTo = lTo. getDataSet();179 DataSet dsTo = lTo.dataSet; 180 180 dsTo.mergeFrom(dsFrom, Main.pref.mergeNodes); 181 181 layers.setSelectedValue(lTo, true); … … 198 198 boolean enable = model.getSize() > 1; 199 199 enable = enable && sel < model.getSize()-1; 200 enable = enable && l. getDataSet()!= null;201 enable = enable && ((Layer)model.get(sel+1)). getDataSet()!= null;200 enable = enable && l.dataSet != null; 201 enable = enable && ((Layer)model.get(sel+1)).dataSet != null; 202 202 enable = enable && l.isEditable() == ((Layer)model.get(sel+1)).isEditable(); 203 203 mergeButton.setEnabled(enable); -
src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r17 r21 8 8 import javax.swing.border.Border; 9 9 10 import org.openstreetmap.josm. gui.Main;10 import org.openstreetmap.josm.Main; 11 11 import org.openstreetmap.josm.gui.MapFrame; 12 12 -
src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r17 r21 16 16 import javax.swing.ListSelectionModel; 17 17 18 import org.openstreetmap.josm.Main; 19 import org.openstreetmap.josm.command.DataSet; 18 20 import org.openstreetmap.josm.data.SelectionChangedListener; 19 import org.openstreetmap.josm.data.osm.DataSet;20 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 21 22 import org.openstreetmap.josm.data.osm.visitor.SelectionComponentVisitor; 22 23 import org.openstreetmap.josm.gui.ImageProvider; 23 import org.openstreetmap.josm.gui.Main;24 24 import org.openstreetmap.josm.gui.MapFrame; 25 25 import org.openstreetmap.josm.gui.MapView; … … 127 127 128 128 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 129 DataSet ds = oldLayer. getDataSet();129 DataSet ds = oldLayer.dataSet; 130 130 if (ds != null) 131 131 ds.removeSelectionChangedListener(this); 132 ds = newLayer. getDataSet();132 ds = newLayer.dataSet; 133 133 if (ds != null) 134 134 ds.addSelectionChangedListener(this); -
src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r17 r21 13 13 import javax.swing.KeyStroke; 14 14 15 import org.openstreetmap.josm.Main; 15 16 import org.openstreetmap.josm.gui.ImageProvider; 16 import org.openstreetmap.josm.gui.Main;17 17 import org.openstreetmap.josm.gui.MapFrame; 18 18 -
src/org/openstreetmap/josm/gui/engine/RawGpsEngine.java
r18 r21 7 7 import java.beans.PropertyChangeListener; 8 8 9 import org.openstreetmap.josm.Main; 9 10 import org.openstreetmap.josm.data.osm.LineSegment; 10 11 import org.openstreetmap.josm.data.osm.Node; 11 12 import org.openstreetmap.josm.data.osm.Track; 12 import org.openstreetmap.josm.gui.Main;13 13 import org.openstreetmap.josm.gui.MapView; 14 14 -
src/org/openstreetmap/josm/gui/layer/Layer.java
r17 r21 5 5 import javax.swing.Icon; 6 6 7 import org.openstreetmap.josm.data.osm.DataSet; 7 import org.openstreetmap.josm.command.DataSet; 8 import org.openstreetmap.josm.data.osm.LineSegment; 9 import org.openstreetmap.josm.data.osm.Node; 10 import org.openstreetmap.josm.data.osm.Track; 8 11 import org.openstreetmap.josm.gui.MapView; 12 import org.openstreetmap.josm.gui.engine.Engine; 9 13 10 14 /** … … 23 27 * @author imi 24 28 */ 25 public interfaceLayer {29 abstract public class Layer { 26 30 27 31 /** 28 * Draw the layer on the given Graphics. The state of the graphics object 29 * can be changed (drawing color..) 30 * 31 * @param g The graphics to draw the layer on. 32 * @param mv The MapView with information about the screen layout. 32 * The visibility state of the layer. 33 33 */ 34 void paint(Graphics g, MapView mv); 34 public boolean visible = true; 35 /** 36 * The dataSet this layer operates on, if any. Not all layer may have a 37 * dataset associated. 38 */ 39 public final DataSet dataSet; 40 /** 41 * The name of this layer. 42 */ 43 public final String name; 44 /** 45 * The engine used to draw the data. 46 */ 47 private final Engine engine; 48 49 /** 50 * Create the layer and fill in the necessary components. 51 * @param dataSet The DataSet, this layer operates on. Can be <code>null</code>. 52 */ 53 public Layer(DataSet dataSet, Engine engine, String name) { 54 if (engine == null || name == null) 55 throw new NullPointerException(); 56 this.dataSet = dataSet; 57 this.name = name; 58 this.engine = engine; 59 } 60 61 /** 62 * Paint the dataset using the engine set. 63 * @param mv The object that can translate GeoPoints to screen coordinates. 64 */ 65 public final void paint(Graphics g, MapView mv) { 66 engine.init(g, mv); 67 68 for (Track t : dataSet.tracks()) 69 engine.drawTrack(t); 70 for (LineSegment ls : dataSet.pendingLineSegments()) 71 engine.drawPendingLineSegment(ls); 72 for (Node n : dataSet.nodes) 73 engine.drawNode(n); 74 } 35 75 36 76 /** … … 38 78 * be larger than 64 pixel in any dimension. 39 79 */ 40 Icon getIcon();80 abstract public Icon getIcon(); 41 81 42 /**43 * Provide a human readable name (may be in html format).44 */45 String getName();46 47 /**48 * If the layer has a dataset it can provide, return it here.49 * @return The dataset for this layer or <code>null</code> if no dataset50 * is available.51 */52 DataSet getDataSet();53 54 82 /** 55 83 * @return <code>true</code>, if the map data can be edited. 56 84 */ 57 boolean isEditable(); 58 59 /** 60 * @return <code>true</code>, if the layer is visible 61 */ 62 boolean isVisible(); 63 64 /** 65 * Set the visibility state of the layer. 66 */ 67 void setVisible(boolean visible); 85 public boolean isEditable() { 86 return false; 87 } 68 88 } -
src/org/openstreetmap/josm/gui/layer/LayerFactory.java
r17 r21 1 1 package org.openstreetmap.josm.gui.layer; 2 2 3 import org.openstreetmap.josm. data.osm.DataSet;3 import org.openstreetmap.josm.command.DataSet; 4 4 5 5 /** -
src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r17 r21 3 3 import javax.swing.Icon; 4 4 5 import org.openstreetmap.josm. data.osm.DataSet;5 import org.openstreetmap.josm.command.DataSet; 6 6 import org.openstreetmap.josm.gui.ImageProvider; 7 7 import org.openstreetmap.josm.gui.engine.SimpleEngine; … … 14 14 * @author imi 15 15 */ 16 public class OsmDataLayer extends DataLayer {16 public class OsmDataLayer extends Layer { 17 17 18 18 private static Icon icon; … … 29 29 * updated by a background thread to not disturb the running programm. 30 30 */ 31 @Override 31 32 public Icon getIcon() { 32 33 if (icon == null) … … 35 36 } 36 37 38 @Override 37 39 public boolean isEditable() { 38 40 return true; -
src/org/openstreetmap/josm/gui/layer/RawGpsDataLayer.java
r17 r21 3 3 import javax.swing.Icon; 4 4 5 import org.openstreetmap.josm. data.osm.DataSet;5 import org.openstreetmap.josm.command.DataSet; 6 6 import org.openstreetmap.josm.gui.ImageProvider; 7 7 import org.openstreetmap.josm.gui.engine.RawGpsEngine; … … 13 13 * @author imi 14 14 */ 15 public class RawGpsDataLayer extends DataLayer {15 public class RawGpsDataLayer extends Layer { 16 16 17 17 private static Icon icon; … … 24 24 * Return a static icon. 25 25 */ 26 @Override 26 27 public Icon getIcon() { 27 28 if (icon == null) … … 29 30 return icon; 30 31 } 31 32 public boolean isEditable() {33 return false;34 }35 32 } -
src/org/openstreetmap/josm/io/DataReader.java
r9 r21 1 1 package org.openstreetmap.josm.io; 2 2 3 import org.openstreetmap.josm. data.osm.DataSet;3 import org.openstreetmap.josm.command.DataSet; 4 4 5 5 /** -
src/org/openstreetmap/josm/io/GpxReader.java
r17 r21 9 9 import org.jdom.Namespace; 10 10 import org.jdom.input.SAXBuilder; 11 import org.openstreetmap.josm.Main; 12 import org.openstreetmap.josm.command.DataSet; 11 13 import org.openstreetmap.josm.data.GeoPoint; 12 import org.openstreetmap.josm.data.osm.DataSet;13 14 import org.openstreetmap.josm.data.osm.Key; 14 15 import org.openstreetmap.josm.data.osm.LineSegment; … … 16 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 18 import org.openstreetmap.josm.data.osm.Track; 18 import org.openstreetmap.josm.gui.Main;19 19 20 20 /** -
src/org/openstreetmap/josm/io/GpxWriter.java
r10 r21 14 14 import org.jdom.output.Format; 15 15 import org.jdom.output.XMLOutputter; 16 import org.openstreetmap.josm. data.osm.DataSet;16 import org.openstreetmap.josm.command.DataSet; 17 17 import org.openstreetmap.josm.data.osm.Key; 18 18 import org.openstreetmap.josm.data.osm.LineSegment; -
src/org/openstreetmap/josm/io/OsmReader.java
r20 r21 17 17 import javax.swing.JTextField; 18 18 19 import org.openstreetmap.josm.data.osm.DataSet; 19 import org.openstreetmap.josm.Main; 20 import org.openstreetmap.josm.command.DataSet; 20 21 import org.openstreetmap.josm.gui.GBC; 21 import org.openstreetmap.josm.gui.Main;22 22 23 23 /**
Note:
See TracChangeset
for help on using the changeset viewer.