Changeset 9231 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2016-01-01T02:35:34+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/mapmode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r9070 r9231 909 909 * For dual align, calculates positions of new nodes, aligning them to neighboring segments. 910 910 * Elsewhere, just adds the vetor returned by calculateBestMovement to {@link #initialN1en}, {@link #initialN2en}. 911 * @param mouseEn mouse coordinates 911 912 * @return best movement vector 912 913 */ … … 1109 1110 1110 1111 /** 1111 * Determines if from1-to1 and from2-to2 vertors directions are opposite 1112 * @return true if from1-to1 and from2-to2 vertors directions are opposite 1112 * Determines if from1-to1 and from2-to2 vectors directions are opposite 1113 * @param from1 vector1 start 1114 * @param to1 vector1 end 1115 * @param from2 vector2 start 1116 * @param to2 vector2 end 1117 * @return true if from1-to1 and from2-to2 vectors directions are opposite 1113 1118 */ 1114 1119 private static boolean isOppositeDirection(EastNorth from1, EastNorth to1, EastNorth from2, EastNorth to2) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r9059 r9231 18 18 /** 19 19 * A class implementing MapMode is able to be selected as an mode for map editing. 20 * As example scrolling the map is a MapMode, connecting Nodes to new Ways 21 * is another. 20 * As example scrolling the map is a MapMode, connecting Nodes to new Ways is another. 22 21 * 23 22 * MapModes should register/deregister all necessary listeners on the map's view control. … … 30 29 31 30 /** 32 * Constructor for mapmodes without an menu 31 * Constructor for mapmodes without a menu 32 * @param name the action's text 33 * @param iconName icon filename in {@code mapmode} directory 34 * @param tooltip a longer description of the action that will be displayed in the tooltip. 35 * @param shortcut a ready-created shortcut object or null if you don't want a shortcut. 33 36 * @param mapFrame unused but kept for plugin compatibility. Can be {@code null} 37 * @param cursor cursor displayed when map mode is active 34 38 */ 35 39 public MapMode(String name, String iconName, String tooltip, Shortcut shortcut, MapFrame mapFrame, Cursor cursor) { … … 40 44 41 45 /** 42 * Constructor for mapmodes with an menu (no shortcut will be registered) 46 * Constructor for mapmodes with a menu (no shortcut will be registered) 47 * @param name the action's text 48 * @param iconName icon filename in {@code mapmode} directory 49 * @param tooltip a longer description of the action that will be displayed in the tooltip. 43 50 * @param mapFrame unused but kept for plugin compatibility. Can be {@code null} 51 * @param cursor cursor displayed when map mode is active 44 52 */ 45 53 public MapMode(String name, String iconName, String tooltip, MapFrame mapFrame, Cursor cursor) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r9073 r9231 887 887 * key is pressed. If there is no such node, no action will be done and no error will be 888 888 * reported. If there is, it will execute the merge and add it to the undo buffer. 889 * @param p mouse position 889 890 */ 890 891 private void mergePrims(Point p) { … … 935 936 * Tries to find a node to merge to when in move-merge mode for the current mouse 936 937 * position. Either returns the node or null, if no suitable one is nearby. 938 * @param p mouse position 937 939 * @return node to merge to, or null 938 940 */ … … 1261 1263 1262 1264 /** 1263 * @return o as collection of o's type. 1265 * Returns {@code o} as collection of {@code o}'s type. 1266 * @param o any object 1267 * @return {@code o} as collection of {@code o}'s type. 1264 1268 */ 1265 1269 protected static <T> Collection<T> asColl(T o) {
Note:
See TracChangeset
for help on using the changeset viewer.