Changeset 12735 in josm for trunk/src/org/openstreetmap/josm/data/coor/CoordinateFormat.java
- Timestamp:
- 2017-09-05T17:58:01+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/CoordinateFormat.java
r11489 r12735 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import org.openstreetmap.josm.data.coor.conversion.CoordinateFormatManager; 7 import org.openstreetmap.josm.data.coor.conversion.DMSCoordinateFormat; 8 import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat; 9 import org.openstreetmap.josm.data.coor.conversion.ICoordinateFormat; 10 import org.openstreetmap.josm.data.coor.conversion.NauticalCoordinateFormat; 11 import org.openstreetmap.josm.data.coor.conversion.ProjectedCoordinateFormat; 12 6 13 /** 7 14 * An enumeration of coordinate formats 8 15 * @since 1990 16 * @deprecated use {@link CoordinateFormatManager} 9 17 */ 18 @Deprecated 10 19 public enum CoordinateFormat { 11 20 … … 13 22 * the decimal format 999.999 14 23 */ 15 DECIMAL_DEGREES(tr("Decimal Degrees") ),24 DECIMAL_DEGREES(tr("Decimal Degrees"), DecimalDegreesCoordinateFormat.INSTANCE), 16 25 17 26 /** 18 27 * the degrees/minutes/seconds format 9 deg 99 min 99 sec 19 28 */ 20 DEGREES_MINUTES_SECONDS(tr("deg\u00B0 min'' sec\"") ),29 DEGREES_MINUTES_SECONDS(tr("deg\u00B0 min'' sec\""), DMSCoordinateFormat.INSTANCE), 21 30 22 31 /** 23 32 * the nautical format 24 33 */ 25 NAUTICAL(tr("deg\u00B0 min'' (Nautical)") ),34 NAUTICAL(tr("deg\u00B0 min'' (Nautical)"), NauticalCoordinateFormat.INSTANCE), 26 35 27 36 /** 28 37 * coordinates East/North 29 38 */ 30 EAST_NORTH(tr("Projected Coordinates") );39 EAST_NORTH(tr("Projected Coordinates"), ProjectedCoordinateFormat.INSTANCE); 31 40 32 41 private final String displayName; 42 private final ICoordinateFormat migration; 33 43 34 CoordinateFormat(String displayName ) {44 CoordinateFormat(String displayName, ICoordinateFormat migration) { 35 45 this.displayName = displayName; 46 this.migration = migration; 36 47 } 37 48 … … 43 54 public String getDisplayName() { 44 55 return displayName; 56 } 57 58 /** 59 * Returns the corresponding {@link ICoordinateFormat} instance for 60 * migration. 61 * @return the corresponding {@link ICoordinateFormat} instance for 62 * migration 63 */ 64 public ICoordinateFormat getICoordinateFormat() { 65 return migration; 45 66 } 46 67
Note:
See TracChangeset
for help on using the changeset viewer.