Changeset 8459 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2015-06-03T13:24:59+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 5 edited
-
FileDrop.java (modified) (2 diffs)
-
MenuScroller.java (modified) (2 diffs)
-
NavigatableComponent.java (modified) (8 diffs)
-
mappaint/Environment.java (modified) (1 diff)
-
mappaint/mapcss/ExpressionFactory.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r8443 r8459 34 34 import org.openstreetmap.josm.Main; 35 35 import org.openstreetmap.josm.actions.OpenFileAction; 36 import org.openstreetmap.josm.gui.FileDrop.TransferableObject; 36 37 37 38 /** … … 538 539 * {@link #DATA_FLAVOR}. 539 540 * 541 * @param fetcher The {@link Fetcher} that will return the data object 540 542 * @see Fetcher 541 * @param fetcher The {@link Fetcher} that will return the data object542 543 */ 543 544 public TransferableObject(Fetcher fetcher) { -
trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
r8441 r8459 151 151 * @param interval the scroll interval, in milliseconds 152 152 * @param topFixedCount the number of items to fix at the top. May be 0. 153 * @return the MenuScroller 153 154 * @throws IllegalArgumentException if scrollCount or interval is 0 or 154 155 * negative or if topFixedCount is negative 155 * @return the MenuScroller156 156 * @since 7463 157 157 */ … … 167 167 * @param interval the scroll interval, in milliseconds 168 168 * @param topFixedCount the number of items to fix at the top. May be 0 169 * @return the MenuScroller 169 170 * @throws IllegalArgumentException if scrollCount or interval is 0 or 170 171 * negative or if topFixedCount is negative 171 * @return the MenuScroller172 172 * @since 7463 173 173 */ -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8443 r8459 822 822 * 823 823 * Finally, if a node is not found at all, null is returned. 824 * @since 6065825 * @return A node within snap-distance to point p,826 * that is chosen by the algorithm described.827 824 * 828 825 * @param p the screen point … … 830 827 * give the nearest node that is tagged. 831 828 * @param preferredRefs primitives, whose nodes we prefer 829 * 830 * @return A node within snap-distance to point p, 831 * that is chosen by the algorithm described. 832 * @since 6065 832 833 */ 833 834 public final Node getNearestNode(Point p, Predicate<OsmPrimitive> predicate, … … 1009 1010 * The *result* depends on the current map selection state IF use_selected is true. 1010 1011 * 1012 * @param p the point for which to search the nearest segment. 1013 * @param predicate the returned object has to fulfill certain properties. 1014 * @param useSelected whether selected way segments should be preferred. 1015 * 1011 1016 * @return The nearest way segment to point p, 1012 1017 * and, depending on use_selected, prefers a selected way segment, if found. 1013 1018 * @see #getNearestWaySegments(Point, Collection, Predicate) 1014 *1015 * @param p the point for which to search the nearest segment.1016 * @param predicate the returned object has to fulfill certain properties.1017 * @param useSelected whether selected way segments should be preferred.1018 1019 */ 1019 1020 public final WaySegment getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate, boolean useSelected) { … … 1040 1041 * The *result* depends on the current map selection state IF use_selected is true. 1041 1042 * 1042 * @return The nearest way segment to point p,1043 * and, depending on use_selected, prefers a selected way segment, if found.1044 * Also prefers segments of ways that are related to one of preferredRefs primitives1045 * @see #getNearestWaySegments(Point, Collection, Predicate)1046 * @since 60651047 1043 * @param p the point for which to search the nearest segment. 1048 1044 * @param predicate the returned object has to fulfill certain properties. 1049 1045 * @param use_selected whether selected way segments should be preferred. 1050 1046 * @param preferredRefs - prefer segments related to these primitives, may be null 1047 * 1048 * @return The nearest way segment to point p, 1049 * and, depending on use_selected, prefers a selected way segment, if found. 1050 * Also prefers segments of ways that are related to one of preferredRefs primitives 1051 * 1052 * @see #getNearestWaySegments(Point, Collection, Predicate) 1053 * @since 6065 1051 1054 */ 1052 1055 public final WaySegment getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate, … … 1150 1153 * The *result* depends on the current map selection state. 1151 1154 * 1152 * @return The nearest way to point p,1153 * prefer a selected way if there are multiple nearest.1154 * @see #getNearestWaySegment(Point, Predicate)1155 *1156 1155 * @param p the point for which to search the nearest segment. 1157 1156 * @param predicate the returned object has to fulfill certain properties. 1157 * 1158 * @return The nearest way to point p, prefer a selected way if there are multiple nearest. 1159 * @see #getNearestWaySegment(Point, Predicate) 1158 1160 */ 1159 1161 public final Way getNearestWay(Point p, Predicate<OsmPrimitive> predicate) { … … 1249 1251 * Finally, if no nearest primitive is found at all, return null. 1250 1252 * 1253 * @param p The point on screen. 1254 * @param predicate the returned object has to fulfill certain properties. 1255 * @param use_selected whether to prefer primitives that are currently selected or referred by selected primitives 1256 * 1251 1257 * @return A primitive within snap-distance to point p, 1252 1258 * that is chosen by the algorithm described. 1253 1259 * @see #getNearestNode(Point, Predicate) 1254 1260 * @see #getNearestWay(Point, Predicate) 1255 *1256 * @param p The point on screen.1257 * @param predicate the returned object has to fulfill certain properties.1258 * @param use_selected whether to prefer primitives that are currently selected or referred by selected primitives1259 1261 */ 1260 1262 public final OsmPrimitive getNearestNodeOrWay(Point p, Predicate<OsmPrimitive> predicate, boolean use_selected) { … … 1346 1348 1347 1349 /** 1348 * The *result* does not depend on the current map selection state, 1349 * neither does the result *order*. 1350 * The *result* does not depend on the current map selection state, neither does the result *order*. 1350 1351 * It solely depends on the distance to point p. 1351 *1352 * @return a list of all objects that are nearest to point p and1353 * not in ignore or an empty list if nothing was found.1354 1352 * 1355 1353 * @param p The point on screen. 1356 1354 * @param ignore a collection of ways which are not to be returned. 1357 1355 * @param predicate the returned object has to fulfill certain properties. 1356 * 1357 * @return a list of all objects that are nearest to point p and 1358 * not in ignore or an empty list if nothing was found. 1358 1359 */ 1359 1360 public final List<OsmPrimitive> getAllNearest(Point p, … … 1395 1396 1396 1397 /** 1397 * The *result* does not depend on the current map selection state, 1398 * neither does the result *order*. 1398 * The *result* does not depend on the current map selection state, neither does the result *order*. 1399 1399 * It solely depends on the distance to point p. 1400 * 1401 * @param p The point on screen. 1402 * @param predicate the returned object has to fulfill certain properties. 1400 1403 * 1401 1404 * @return a list of all objects that are nearest to point p 1402 1405 * or an empty list if nothing was found. 1403 1406 * @see #getAllNearest(Point, Collection, Predicate) 1404 *1405 * @param p The point on screen.1406 * @param predicate the returned object has to fulfill certain properties.1407 1407 */ 1408 1408 public final List<OsmPrimitive> getAllNearest(Point p, Predicate<OsmPrimitive> predicate) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/Environment.java
r8419 r8459 148 148 * @param count count of nodes in parent way or members in parent relation 149 149 * @return A clone of this environment, with the specified child, index, and context set to {@code Context#LINK} 150 * @since 6175151 150 * @see #child 152 151 * @see #index 152 * @since 6175 153 153 */ 154 154 public Environment withChildAndIndexAndLinkContext(OsmPrimitive child, int index, int count) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r8440 r8459 578 578 * {@code sw}, {@code southwest}, {@code w}, {@code west}, {@code nw}, {@code northwest}. 579 579 * @param cardinal the angle in cardinal directions. 580 * @return the angle in radians 580 581 * @see RotationAngle#parseCardinalRotation(String) 581 * @return the angle in radians582 582 */ 583 583 public static Double cardinal_to_radians(String cardinal) {
Note:
See TracChangeset
for help on using the changeset viewer.
