Changeset 11615 in josm for trunk/src/org
- Timestamp:
- 2017-02-25T14:46:22+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r11589 r11615 140 140 Command createCommand(OsmPrimitive p, Selector matchingSelector); 141 141 142 /** 143 * Checks that object is either an {@link Expression} or a {@link String}. 144 * @param obj object to check 145 * @throws IllegalArgumentException if object is not an {@code Expression} or a {@code String} 146 */ 142 147 static void checkObject(final Object obj) { 143 148 CheckParameterUtil.ensureThat(obj instanceof Expression || obj instanceof String, … … 252 257 } 253 258 259 /** 260 * Tag check. 261 */ 254 262 public static class TagCheck implements Predicate<OsmPrimitive> { 255 263 /** The selector of this {@code TagCheck} */ -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LabelCompositionStrategy.java
r11553 r11615 28 28 * 29 29 * <li>{@link DeriveLabelFromNameTagsCompositionStrategy} - the label is given by the value 30 * of one 31 * of the configured "name tags". The list of relevant name tags can be configured 30 * of one of the configured "name tags". The list of relevant name tags can be configured 32 31 * in the JOSM preferences 33 * content of a tag whose name specified in the MapCSS style file, see the preference 34 * options <tt>mappaint.nameOrder</tt> and <tt>mappaint.nameComplementOrder</tt>.</li> 32 * see the preference options <tt>mappaint.nameOrder</tt> and <tt>mappaint.nameComplementOrder</tt>.</li> 35 33 * </ul> 36 34 * @since 3987 (creation) … … 50 48 String compose(OsmPrimitive primitive); 51 49 50 /** 51 * Strategy where the label is given by a static text specified in the MapCSS style file. 52 */ 52 53 class StaticLabelCompositionStrategy implements LabelCompositionStrategy { 53 54 private final String defaultLabel; … … 85 86 } 86 87 88 /** 89 * Strategy where the label is given by the content of a tag whose name specified in the MapCSS style file. 90 */ 87 91 class TagLookupCompositionStrategy implements LabelCompositionStrategy { 88 92 … … 129 133 } 130 134 135 /** 136 * Strategy where the label is given by the value of one of the configured "name tags". 137 * The list of relevant name tags can be configured in the JOSM preferences 138 * see the preference options <tt>mappaint.nameOrder</tt> and <tt>mappaint.nameComplementOrder</tt> 139 */ 131 140 class DeriveLabelFromNameTagsCompositionStrategy implements LabelCompositionStrategy, PreferenceChangedListener { 132 141 -
trunk/src/org/openstreetmap/josm/gui/widgets/ButtonColumn.java
r10755 r11615 1 1 // License: GPL. For details, see LICENSE file. 2 3 2 package org.openstreetmap.josm.gui.widgets; 4 3 … … 19 18 20 19 /** 21 *22 20 * Class based on: http://www.camick.com/java/source/ButtonColumn.java 23 21 * https://tips4java.wordpress.com/2009/07/12/table-button-column/ 24 * 22 * @since 10536 25 23 */ 26 24 public class ButtonColumn extends AbstractCellEditor implements TableCellRenderer, TableCellEditor, ActionListener { … … 38 36 } 39 37 38 /** 39 * Constructs a new {@code ButtonColumn}. 40 * @param action action 41 * @param buttonName button name 42 */ 40 43 public ButtonColumn(Action action, String buttonName) { 41 44 this(action); 42 45 this.buttonName = buttonName; 43 46 } 44 45 47 46 48 /** … … 116 118 return renderButton; 117 119 } 118 119 120 }
Note:
See TracChangeset
for help on using the changeset viewer.