- Timestamp:
- 2016-12-09T13:19:01+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r11369 r11373 80 80 */ 81 81 protected static final short FLAG_INCOMPLETE = 1 << 3; 82 83 /** 84 * An object can be disabled by the filter mechanism. 85 * Then it will show in a shade of gray on the map or it is completely 86 * hidden from the view. 87 * Disabled objects usually cannot be selected or modified 88 * while the filter is active. 89 */ 90 protected static final short FLAG_DISABLED = 1 << 4; 91 92 /** 93 * This flag is only relevant if an object is disabled by the 94 * filter mechanism (i.e. FLAG_DISABLED is set). 95 * Then it indicates, whether it is completely hidden or 96 * just shown in gray color. 97 * 98 * When the primitive is not disabled, this flag should be 99 * unset as well (for efficient access). 100 */ 101 protected static final short FLAG_HIDE_IF_DISABLED = 1 << 5; 102 103 /** 104 * Flag used internally by the filter mechanism. 105 */ 106 protected static final short FLAG_DISABLED_TYPE = 1 << 6; 107 108 /** 109 * Flag used internally by the filter mechanism. 110 */ 111 protected static final short FLAG_HIDDEN_TYPE = 1 << 7; 112 113 /** 114 * This flag is set if the primitive is a way and 115 * according to the tags, the direction of the way is important. 116 * (e.g. one way street.) 117 */ 118 protected static final short FLAG_HAS_DIRECTIONS = 1 << 8; 119 120 /** 121 * If the primitive is tagged. 122 * Some trivial tags like source=* are ignored here. 123 */ 124 protected static final short FLAG_TAGGED = 1 << 9; 125 126 /** 127 * This flag is only relevant if FLAG_HAS_DIRECTIONS is set. 128 * It shows, that direction of the arrows should be reversed. 129 * (E.g. oneway=-1.) 130 */ 131 protected static final short FLAG_DIRECTION_REVERSED = 1 << 10; 132 133 /** 134 * When hovering over ways and nodes in add mode, the 135 * "target" objects are visually highlighted. This flag indicates 136 * that the primitive is currently highlighted. 137 */ 138 protected static final short FLAG_HIGHLIGHTED = 1 << 11; 139 140 /** 141 * If the primitive is annotated with a tag such as note, fixme, etc. 142 * Match the "work in progress" tags in default map style. 143 */ 144 protected static final short FLAG_ANNOTATED = 1 << 12; 82 145 83 146 /** -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r11368 r11373 44 44 private static final String SPECIAL_VALUE_ID = "id"; 45 45 private static final String SPECIAL_VALUE_LOCAL_NAME = "localname"; 46 47 /**48 * An object can be disabled by the filter mechanism.49 * Then it will show in a shade of gray on the map or it is completely50 * hidden from the view.51 * Disabled objects usually cannot be selected or modified52 * while the filter is active.53 */54 protected static final short FLAG_DISABLED = 1 << 4;55 56 /**57 * This flag is only relevant if an object is disabled by the58 * filter mechanism (i.e. FLAG_DISABLED is set).59 * Then it indicates, whether it is completely hidden or60 * just shown in gray color.61 *62 * When the primitive is not disabled, this flag should be63 * unset as well (for efficient access).64 */65 protected static final short FLAG_HIDE_IF_DISABLED = 1 << 5;66 67 /**68 * Flag used internally by the filter mechanism.69 */70 protected static final short FLAG_DISABLED_TYPE = 1 << 6;71 72 /**73 * Flag used internally by the filter mechanism.74 */75 protected static final short FLAG_HIDDEN_TYPE = 1 << 7;76 77 /**78 * This flag is set if the primitive is a way and79 * according to the tags, the direction of the way is important.80 * (e.g. one way street.)81 */82 protected static final short FLAG_HAS_DIRECTIONS = 1 << 8;83 84 /**85 * If the primitive is tagged.86 * Some trivial tags like source=* are ignored here.87 */88 protected static final short FLAG_TAGGED = 1 << 9;89 90 /**91 * This flag is only relevant if FLAG_HAS_DIRECTIONS is set.92 * It shows, that direction of the arrows should be reversed.93 * (E.g. oneway=-1.)94 */95 protected static final short FLAG_DIRECTION_REVERSED = 1 << 10;96 97 /**98 * When hovering over ways and nodes in add mode, the99 * "target" objects are visually highlighted. This flag indicates100 * that the primitive is currently highlighted.101 */102 protected static final short FLAG_HIGHLIGHTED = 1 << 11;103 104 /**105 * If the primitive is annotated with a tag such as note, fixme, etc.106 * Match the "work in progress" tags in default map style.107 */108 protected static final short FLAG_ANNOTATED = 1 << 12;109 46 110 47 /**
Note:
See TracChangeset
for help on using the changeset viewer.