- Timestamp:
- 2015-08-22T19:08:28+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java
r8540 r8678 12 12 import java.text.ParsePosition; 13 13 import java.util.ArrayList; 14 import java.util.Arrays; 14 15 import java.util.List; 15 16 import java.util.Locale; … … 36 37 import org.openstreetmap.josm.gui.widgets.JosmTextField; 37 38 import org.openstreetmap.josm.tools.GBC; 39 import org.openstreetmap.josm.tools.Utils; 38 40 import org.openstreetmap.josm.tools.WindowGeometry; 39 41 … … 81 83 82 84 pnl.add(new HtmlPanel( 83 tr("Enter the coordinates for the new node.<br/>You can separate longitude and latitude with space, comma or semicolon.<br/>" + 84 "Use positive numbers or N, E characters to indicate North or East cardinal direction.<br/>" + 85 "For South and West cardinal directions you can use either negative numbers or S, W characters.<br/>" + 86 "Coordinate value can be in one of three formats:<ul>" + 87 "<li><i>degrees</i><tt>°</tt></li>" + 88 "<li><i>degrees</i><tt>°</tt> <i>minutes</i><tt>'</tt></li>" + 89 "<li><i>degrees</i><tt>°</tt> <i>minutes</i><tt>'</tt> <i>seconds</i><tt>"</tt></li>" + 90 "</ul>" + 91 "Symbols <tt>°</tt>, <tt>'</tt>, <tt>′</tt>, <tt>"</tt>, <tt>″</tt> are optional.<br/><br/>" + 92 "Some examples:<ul>{0}</ul>", 93 "<li>49.29918° 19.24788°</li>" + 94 "<li>N 49.29918 E 19.24788</li>" + 95 "<li>W 49°29.918' S 19°24.788'</li>" + 96 "<li>N 49°29'04" E 19°24'43"</li>" + 97 "<li>49.29918 N, 19.24788 E</li>" + 98 "<li>49°29'21" N 19°24'38" E</li>" + 99 "<li>49 29 51, 19 24 18</li>" + 100 "<li>49 29, 19 24</li>" + 101 "<li>E 49 29, N 19 24</li>" + 102 "<li>49° 29; 19° 24</li>" + 103 "<li>N 49° 29, W 19° 24</li>" + 104 "<li>49° 29.5 S, 19° 24.6 E</li>" + 105 "<li>N 49 29.918 E 19 15.88</li>" + 106 "<li>49 29.4 19 24.5</li>" + 107 "<li>-49 29.4 N -19 24.5 W</li>" + 108 "<li>48 deg 42' 52.13\" N, 21 deg 11' 47.60\" E</li>")), 85 Utils.join("<br/>", Arrays.asList( 86 tr("Enter the coordinates for the new node."), 87 tr("You can separate longitude and latitude with space, comma or semicolon."), 88 tr("Use positive numbers or N, E characters to indicate North or East cardinal direction."), 89 tr("For South and West cardinal directions you can use either negative numbers or S, W characters."), 90 tr("Coordinate value can be in one of three formats:") 91 )) + 92 Utils.joinAsHtmlUnorderedList(Arrays.asList( 93 tr("<i>degrees</i><tt>°</tt>"), 94 tr("<i>degrees</i><tt>°</tt> <i>minutes</i><tt>'</tt>"), 95 tr("<i>degrees</i><tt>°</tt> <i>minutes</i><tt>'</tt> <i>seconds</i><tt>"</tt>") 96 )) + 97 Utils.join("<br/><br/>", Arrays.asList( 98 tr("Symbols <tt>°</tt>, <tt>'</tt>, <tt>′</tt>, <tt>"</tt>, <tt>″</tt> are optional."), 99 tr("You can also use the syntax <tt>lat=\"...\" lon=\"...\"</tt> or <tt>lat=''...'' lon=''...''</tt>."), 100 tr("Some examples:") 101 )) + 102 "<table><tr><td>" + 103 Utils.joinAsHtmlUnorderedList(Arrays.asList( 104 "49.29918° 19.24788°", 105 "N 49.29918 E 19.24788", 106 "W 49°29.918' S 19°24.788'", 107 "N 49°29'04" E 19°24'43"", 108 "49.29918 N, 19.24788 E", 109 "49°29'21" N 19°24'38" E", 110 "49 29 51, 19 24 18", 111 "49 29, 19 24", 112 "E 49 29, N 19 24" 113 )) + 114 "</td><td>" + 115 Utils.joinAsHtmlUnorderedList(Arrays.asList( 116 "49° 29; 19° 24", 117 "N 49° 29, W 19° 24", 118 "49° 29.5 S, 19° 24.6 E", 119 "N 49 29.918 E 19 15.88", 120 "49 29.4 19 24.5", 121 "-49 29.4 N -19 24.5 W", 122 "48 deg 42' 52.13\" N, 21 deg 11' 47.60\" E", 123 "lat=\"49.29918\" lon=\"19.24788\"", 124 "lat='49.29918' lon='19.24788'" 125 )) + 126 "</td></tr></table>"), 109 127 GBC.eol().fill().weight(1.0, 1.0)); 110 128 … … 499 517 tfEastNorth.setText(text); 500 518 } 501 502 519 }
Note:
See TracChangeset
for help on using the changeset viewer.