Changeset 8958 in josm for trunk/src/org
- Timestamp:
- 2015-10-27T19:15:14+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r8955 r8958 301 301 * @since 8954 302 302 */ 303 public static abstractclass Strategy {303 public abstract static class Strategy { 304 304 305 305 /** -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r8840 r8958 258 258 /** 259 259 * <p>Creates an instance of the currently active renderer.</p> 260 * @return an instance of the currently active renderer 260 261 * 261 262 * @throws MapRendererFactoryException if creating an instance fails -
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r8846 r8958 215 215 216 216 /** 217 * Sets the ignore state for this error 217 * Returns the ignore state for this error. 218 * @return the ignore state for this error 218 219 */ 219 220 public String getIgnoreState() { -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r8936 r8958 149 149 /** 150 150 * Creates the fixing {@link Command} for the given primitive. The {@code matchingSelector} is used to evaluate placeholders 151 * (cf. {@link org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.TagCheck#insertArguments(Selector, String, OsmPrimitive)}). 151 * (cf. {@link MapCSSTagChecker.TagCheck#insertArguments(Selector, String, OsmPrimitive)}). 152 * @param p OSM primitive 153 * @param matchingSelector matching selector 154 * @return fix command 152 155 */ 153 156 abstract Command createCommand(final OsmPrimitive p, final Selector matchingSelector); -
trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
r8836 r8958 226 226 /** 227 227 * Translates and shortens the error/warning message. 228 * @param key OSM key 229 * @param o error/warnign message 230 * @return translated/shortened error/warnign message 228 231 */ 229 232 private String getErrorMessage(String key, Object o) { -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r8870 r8958 296 296 * Checks given string (key or value) if it contains characters with code below 0x20 (either newline or some other special characters) 297 297 * @param s string to check 298 * @return {@code true} if {@code s} contains characters with code below 0x20 298 299 */ 299 300 private static boolean containsLow(String s) { -
trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java
r8926 r8958 74 74 * (in order to provide a "Do not show again (this operation)" option). 75 75 * @param prefKey the preference key 76 * @return {@code true} if the key has been marked to be part of a bulk operation 76 77 */ 77 78 public static boolean isInBulkOperation(final String prefKey) { -
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r8870 r8958 34 34 import org.openstreetmap.josm.Main; 35 35 import org.openstreetmap.josm.actions.OpenFileAction; 36 import org.openstreetmap.josm.gui.FileDrop.TransferableObject;37 36 38 37 // CHECKSTYLE.OFF: HideUtilityClassConstructor … … 227 226 } 228 227 229 /** Determine if the dragged data is a file list. */ 228 /** 229 * Determines if the dragged data is a file list. 230 * @param evt the drag event 231 * @return {@code true} if the dragged data is a file list 232 */ 230 233 private static boolean isDragOk(final DropTargetDragEvent evt) { 231 234 boolean ok = false; -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8906 r8958 846 846 /** 847 847 * Create search field. 848 * @return the search field 848 849 */ 849 850 private DisableShortcutsOnFocusGainedTextField createSearchField() { -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r8949 r8958 330 330 * Call this to add new toggle dialogs to the left button-list 331 331 * @param dlg The toggle dialog. It must not be in the list already. 332 * @return button allowing to toggle the dialog 332 333 */ 333 334 public IconToggleButton addToggleDialog(final ToggleDialog dlg, boolean isExpert) { -
trunk/src/org/openstreetmap/josm/gui/OsmPrimitivRenderer.java
r8903 r8958 104 104 105 105 /** 106 * Can be overridden to customize the Text 106 * Returns the text representing an OSM primitive in a component. 107 * Can be overridden to customize the text 108 * @param value OSM primitive 109 * @return text representing the OSM primitive 107 110 */ 108 111 protected String getComponentText(OsmPrimitive value) { … … 111 114 112 115 /** 116 * Returns the text representing an OSM primitive in a tooltip. 113 117 * Can be overridden to customize the ToolTipText 118 * @param value OSM primitive 119 * @return text representing the OSM primitive 114 120 */ 115 121 protected String getComponentToolTipText(OsmPrimitive value) { -
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r8510 r8958 69 69 } 70 70 71 /** scales the given image proportionally so that the height is "iconHeight" **/ 71 /** 72 * Scales the given image proportionally so that the height is "iconHeight" 73 * @param im original image 74 * @return scaled image 75 */ 72 76 private static ImageIcon getScaledImage(Image im) { 73 77 int newWidth = im.getWidth(null) * iconHeight / im.getHeight(null); -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r8836 r8958 137 137 /** 138 138 * Returns a HTML representation for this task. 139 * @param sb a {@code StringBuilder} used to build the HTML code 140 * @return {@code sb} 139 141 */ 140 142 public abstract StringBuilder toHtml(StringBuilder sb); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r8836 r8958 321 321 * Wraps a command in a CommandListMutableTreeNode. 322 322 * Recursively adds child commands. 323 * @param c the command 324 * @return the resulting node 323 325 */ 324 326 protected CommandListMutableTreeNode getNodeForCommand(PseudoCommand c, int idx) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r8855 r8958 833 833 } 834 834 835 /* **835 /* 836 836 * The following methods are intended to be overridden, in order to customize 837 837 * the toggle dialog behavior. 838 * */839 840 /** 841 * Default size of the detached dialog.838 */ 839 840 /** 841 * Returns the default size of the detached dialog. 842 842 * Override this method to customize the initial dialog size. 843 * @return the default size of the detached dialog 843 844 */ 844 845 protected Dimension getDefaultDetachedSize() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java
r8840 r8958 52 52 } 53 53 54 /** Returns the edit field for this cell editor. */ 54 /** 55 * Returns the edit field for this cell editor. 56 * @return the edit field for this cell editor 57 */ 55 58 public AutoCompletingTextField getEditor() { 56 59 return editor; -
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r8864 r8958 174 174 * Return a representative small image for this layer. The image must not 175 175 * be larger than 64 pixel in any dimension. 176 * @return layer icon 176 177 */ 177 178 public abstract Icon getIcon(); … … 182 183 * is used. When this is true, then even for custom coloring the base 183 184 * color is returned - mainly for layer internal use. 185 * @return layer color 184 186 */ 185 187 public Color getColor(boolean ignoreCustom) { … … 225 227 * have correct equals implementation. 226 228 * 227 * Use SeparatorLayerAction.INSTANCEinstead of new JSeparator228 * 229 * Use {@link SeparatorLayerAction#INSTANCE} instead of new JSeparator 230 * @return menu actions for this layer 229 231 */ 230 232 public abstract Action[] getMenuEntries(); -
trunk/src/org/openstreetmap/josm/gui/mappaint/BoxTextElemStyle.java
r8846 r8958 35 35 36 36 /** 37 * The box 37 * Returns the box. 38 * @return the box 38 39 */ 39 40 public Rectangle getBox() { … … 42 43 43 44 /** 44 * True, if the box can change in future calls of the BoxProvider get() method 45 * Determines if the box can change in future calls of the {@link BoxProvider#get()} method 46 * @return {@code true} if the box can change in future calls of the {@code BoxProvider#get()} method 45 47 */ 46 48 public boolean isTemporary() { … … 52 54 private Rectangle box; 53 55 56 /** 57 * Constructs a new {@code SimpleBoxProvider}. 58 * @param box the box 59 */ 54 60 public SimpleBoxProvider(Rectangle box) { 55 61 this.box = box; -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapImage.java
r8840 r8958 137 137 138 138 /** 139 * Returns true, if image is not completely loaded and getImage() returns a temporary image. 139 * Determines if image is not completely loaded and {@code getImage()} returns a temporary image. 140 * @return {@code true} if image is not completely loaded and getImage() returns a temporary image 140 141 */ 141 142 public boolean isTemporary() { -
trunk/src/org/openstreetmap/josm/gui/mappaint/Range.java
r8846 r8958 32 32 /** 33 33 * provides the intersection of 2 overlapping ranges 34 * @param a first range 35 * @param b second range 36 * @return intersection of {@code a} and {@code b} 34 37 */ 35 38 public static Range cut(Range a, Range b) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java
r8950 r8958 520 520 /** 521 521 * {@code closed} tests whether the way is closed or the relation is a closed multipolygon 522 * @param e MapCSS environment 523 * @return {@code true} if the way is closed or the relation is a closed multipolygon 522 524 */ 523 525 static boolean closed(Environment e) { … … 531 533 /** 532 534 * {@code :modified} tests whether the object has been modified. 533 * @see OsmPrimitive#isModified() () 535 * @param e MapCSS environment 536 * @return {@code true} if the object has been modified 537 * @see OsmPrimitive#isModified() 534 538 */ 535 539 static boolean modified(Environment e) { … … 539 543 /** 540 544 * {@code ;new} tests whether the object is new. 545 * @param e MapCSS environment 546 * @return {@code true} if the object is new 541 547 * @see OsmPrimitive#isNew() 542 548 */ … … 547 553 /** 548 554 * {@code :connection} tests whether the object is a connection node. 555 * @param e MapCSS environment 556 * @return {@code true} if the object is a connection node 549 557 * @see Node#isConnectionNode() 550 558 */ … … 555 563 /** 556 564 * {@code :tagged} tests whether the object is tagged. 565 * @param e MapCSS environment 566 * @return {@code true} if the object is tagged 557 567 * @see OsmPrimitive#isTagged() 558 568 */ … … 563 573 /** 564 574 * {@code :same-tags} tests whether the object has the same tags as its child/parent. 575 * @param e MapCSS environment 576 * @return {@code true} if the object has the same tags as its child/parent 565 577 * @see OsmPrimitive#hasSameInterestingTags(OsmPrimitive) 566 578 */ … … 571 583 /** 572 584 * {@code :area-style} tests whether the object has an area style. This is useful for validators. 585 * @param e MapCSS environment 586 * @return {@code true} if the object has an area style 573 587 * @see ElemStyles#hasAreaElemStyle(OsmPrimitive, boolean) 574 588 */ … … 580 594 /** 581 595 * {@code unconnected}: tests whether the object is a unconnected node. 596 * @param e MapCSS environment 597 * @return {@code true} if the object is a unconnected node 582 598 */ 583 599 static boolean unconnected(Environment e) { … … 587 603 /** 588 604 * {@code righthandtraffic} checks if there is right-hand traffic at the current location. 605 * @param e MapCSS environment 606 * @return {@code true} if there is right-hand traffic at the current location 589 607 * @see ExpressionFactory.Functions#is_right_hand_traffic(Environment) 590 608 */ … … 595 613 /** 596 614 * {@code unclosed-multipolygon} tests whether the object is an unclosed multipolygon. 615 * @param e MapCSS environment 616 * @return {@code true} if the object is an unclosed multipolygon 597 617 */ 598 618 static boolean unclosed_multipolygon(Environment e) { … … 606 626 /** 607 627 * {@code in-downloaded-area} tests whether the object is within source area ("downloaded area"). 628 * @param e MapCSS environment 629 * @return {@code true} if the object is within source area ("downloaded area") 608 630 * @see InDataSourceArea 609 631 */ -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceSetting.java
r8512 r8958 16 16 * Called when OK is pressed to save the setting in the preferences file. 17 17 * Return true when restart is required. 18 * @return {@code true} if restart is required 18 19 */ 19 20 boolean ok(); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r8936 r8958 393 393 /** 394 394 * Load the list of source entries that the user has configured. 395 * @return list of source entries that the user has configured 395 396 */ 396 397 public abstract Collection<? extends SourceEntry> getInitialSourcesList(); … … 398 399 /** 399 400 * Load the list of configured icon paths. 401 * @return list of configured icon paths 400 402 */ 401 403 public abstract Collection<String> getInitialIconPathsList(); … … 403 405 /** 404 406 * Get the default list of entries (used when resetting the list). 407 * @return default list of entries 405 408 */ 406 409 public abstract Collection<ExtendedSourceEntry> getDefault(); -
trunk/src/org/openstreetmap/josm/gui/preferences/SubPreferenceSetting.java
r8512 r8958 12 12 /** 13 13 * Returns the preference setting (displayed in the specified preferences tab pane) that contains this preference setting. 14 * @return parent preference setting 14 15 */ 15 16 TabPreferenceSetting getTabPreferenceSetting(final PreferenceTabbedPane gui); -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionItemPriority.java
r8387 r8958 106 106 * Merges two priorities. 107 107 * The resulting priority is always >= the original ones. 108 * @return the merged priority 108 109 */ 109 110 public AutoCompletionItemPriority mergeWith(AutoCompletionItemPriority other) { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r8945 r8958 141 141 /** 142 142 * Returns the translated name of this preset, prefixed with the group names it belongs to. 143 * @return the translated name of this preset, prefixed with the group names it belongs to 143 144 */ 144 145 public String getName() { … … 148 149 /** 149 150 * Returns the non translated name of this preset, prefixed with the (non translated) group names it belongs to. 151 * @return the non translated name of this preset, prefixed with the (non translated) group names it belongs to 150 152 */ 151 153 public String getRawName() { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java
r8863 r8958 91 91 /** 92 92 * Returns the last inserted element. 93 * @return the last inserted element 93 94 */ 94 95 public E getLast() { … … 402 403 403 404 /** 404 * Returns true if icon images should be loaded. 405 * Determines if icon images should be loaded. 406 * @return {@code true} if icon images should be loaded 405 407 */ 406 408 public static boolean isLoadIcons() { … … 410 412 /** 411 413 * Sets whether icon images should be loaded. 414 * @param loadIcons {@code true} if icon images should be loaded 412 415 */ 413 416 public static void setLoadIcons(boolean loadIcons) {
Note:
See TracChangeset
for help on using the changeset viewer.