Ignore:
Timestamp:
2005-10-07T01:13:49+02:00 (14 years ago)
Author:
imi
Message:

renamed alot (Layer instead of MapView) and removed feature of having
projections on every Layer.

Location:
src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/projection/Projection.java

    r7 r15  
    1010import org.openstreetmap.josm.data.GeoPoint;
    1111import org.openstreetmap.josm.data.osm.DataSet;
    12 import org.openstreetmap.josm.data.osm.Node;
    1312
    1413/**
     
    6665         */
    6766        abstract public JComponent getConfigurationPanel();
    68        
     67
    6968        /**
    7069         * Initialize itself with the given dataSet.
    7170         *
    7271         * This function should initialize own parameters needed to do the
    73          * projection and then initialize every Node of the dataset with x/y
    74          * projection values.
     72         * projection at best effort.
    7573         *
    76          * This implementation loops through the dataset's nodes and call latlon2xy
    77          * for each member. Subclasses can call this to initialize the dataset.
    78          * 
    79          * init must not fire an state changed event, since it is usually called
    80          * from the event handler.
     74         * Init must not fire an state changed event, since it is usually called
     75         * during the initialization of the mapFrame.
     76         *
     77         * This implementation does nothing. It is provided only for subclasses
     78         * to initialize their data members.
    8179         *
    8280         * @param dataSet
     
    8886         *            is far away from any coordinate in the dataset)
    8987         */
    90         public void init(DataSet dataSet) {
    91                 for (Node w : dataSet.nodes)
    92                         latlon2xy(w.coor);
    93         }
    94        
    95         /**
    96          * All projections support cloning.
    97          */
    98         @Override
    99         public Projection clone() {
    100                 try {return (Projection)super.clone();} catch (CloneNotSupportedException e) {}
    101                 return null;
    102         }
     88        public void init(DataSet dataSet) {}
    10389       
    10490        /**
  • src/org/openstreetmap/josm/data/projection/UTM.java

    r6 r15  
    210210                        hemisphere = lat > 0 ? Hemisphere.north : Hemisphere.south;
    211211                }
    212                 super.init(dataSet);
    213212        }
    214213
Note: See TracChangeset for help on using the changeset viewer.