Changeset 12381 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-10T00:17:52+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleKeys.java
r12259 r12381 4 4 /** 5 5 * Interface defining string constants (MapCSS property keys). 6 * 6 * 7 7 * For the implementation of the <code>@supports</code> feature, the list of 8 8 * supported keys is loaded from this interface using reflection. … … 11 11 public interface StyleKeys { 12 12 13 /** 14 * MapCSS color property key 15 */ 13 16 String COLOR = "color"; 17 /** 18 * MapCSS dashes property key 19 */ 14 20 String DASHES = "dashes"; 21 /** 22 * MapCSS dashes-background-color property key 23 */ 15 24 String DASHES_BACKGROUND_COLOR = "dashes-background-color"; 25 /** 26 * MapCSS dashes-background-opacity property key 27 */ 16 28 String DASHES_BACKGROUND_OPACITY = "dashes-background-opacity"; 29 /** 30 * MapCSS dashes-offset property key 31 */ 17 32 String DASHES_OFFSET = "dashes-offset"; 33 /** 34 * MapCSS fill-color property key 35 */ 18 36 String FILL_COLOR = "fill-color"; 37 /** 38 * MapCSS fill-extent property key 39 */ 19 40 String FILL_EXTENT = "fill-extent"; 41 /** 42 * MapCSS fill-extent-threshold property key 43 */ 20 44 String FILL_EXTENT_THRESHOLD = "fill-extent-threshold"; 45 /** 46 * MapCSS fill-image property key 47 */ 21 48 String FILL_IMAGE = "fill-image"; 49 /** 50 * MapCSS fill-opacity property key 51 */ 22 52 String FILL_OPACITY = "fill-opacity"; 53 /** 54 * MapCSS font-family property key 55 */ 23 56 String FONT_FAMILY = "font-family"; 57 /** 58 * MapCSS font-size property key 59 */ 24 60 String FONT_SIZE = "font-size"; 61 /** 62 * MapCSS font-style property key 63 */ 25 64 String FONT_STYLE = "font-style"; 65 /** 66 * MapCSS font-weight property key 67 */ 26 68 String FONT_WEIGHT = "font-weight"; 69 /** 70 * MapCSS icon-image property key 71 */ 27 72 String ICON_IMAGE = "icon-image"; 73 /** 74 * MapCSS icon-height property key 75 */ 28 76 String ICON_HEIGHT = "icon-height"; 77 /** 78 * MapCSS icon-offset-x property key 79 */ 29 80 String ICON_OFFSET_X = "icon-offset-x"; 81 /** 82 * MapCSS icon-offset-y property key 83 */ 30 84 String ICON_OFFSET_Y = "icon-offset-y"; 85 /** 86 * MapCSS icon-opacity property key 87 */ 31 88 String ICON_OPACITY = "icon-opacity"; 89 /** 90 * MapCSS icon-rotation property key 91 */ 32 92 String ICON_ROTATION = "icon-rotation"; 93 /** 94 * MapCSS icon-width property key 95 */ 33 96 String ICON_WIDTH = "icon-width"; 34 97 /** … … 36 99 */ 37 100 String ICON_POSITION = "icon-position"; 101 /** 102 * MapCSS linecap property key 103 */ 38 104 String LINECAP = "linecap"; 105 /** 106 * MapCSS linejoin property key 107 */ 39 108 String LINEJOIN = "linejoin"; 109 /** 110 * MapCSS major-z-index property key 111 */ 40 112 String MAJOR_Z_INDEX = "major-z-index"; 113 /** 114 * MapCSS miterlimit property key 115 */ 41 116 String MITERLIMIT = "miterlimit"; 117 /** 118 * MapCSS modifier property key 119 */ 42 120 String MODIFIER = "modifier"; 121 /** 122 * MapCSS object-z-index property key 123 */ 43 124 String OBJECT_Z_INDEX = "object-z-index"; 125 /** 126 * MapCSS offset property key 127 */ 44 128 String OFFSET = "offset"; 129 /** 130 * MapCSS opacity property key 131 */ 45 132 String OPACITY = "opacity"; 133 /** 134 * MapCSS real-width property key 135 */ 46 136 String REAL_WIDTH = "real-width"; 137 /** 138 * MapCSS repeat-image property key 139 */ 47 140 String REPEAT_IMAGE = "repeat-image"; 141 /** 142 * MapCSS repeat-image-align property key 143 */ 48 144 String REPEAT_IMAGE_ALIGN = "repeat-image-align"; 145 /** 146 * MapCSS repeat-image-height property key 147 */ 49 148 String REPEAT_IMAGE_HEIGHT = "repeat-image-height"; 149 /** 150 * MapCSS repeat-image-offset property key 151 */ 50 152 String REPEAT_IMAGE_OFFSET = "repeat-image-offset"; 153 /** 154 * MapCSS repeat-image-opacity property key 155 */ 51 156 String REPEAT_IMAGE_OPACITY = "repeat-image-opacity"; 157 /** 158 * MapCSS repeat-image-phase property key 159 */ 52 160 String REPEAT_IMAGE_PHASE = "repeat-image-phase"; 161 /** 162 * MapCSS repeat-image-spacing property key 163 */ 53 164 String REPEAT_IMAGE_SPACING = "repeat-image-spacing"; 165 /** 166 * MapCSS repeat-image-width property key 167 */ 54 168 String REPEAT_IMAGE_WIDTH = "repeat-image-width"; 169 /** 170 * MapCSS text property key 171 */ 55 172 String TEXT = "text"; 173 /** 174 * MapCSS text-anchor-horizontal property key 175 */ 56 176 String TEXT_ANCHOR_HORIZONTAL = "text-anchor-horizontal"; 177 /** 178 * MapCSS text-anchor-vertical property key 179 */ 57 180 String TEXT_ANCHOR_VERTICAL = "text-anchor-vertical"; 181 /** 182 * MapCSS text-color property key 183 */ 58 184 String TEXT_COLOR = "text-color"; 185 /** 186 * MapCSS text-halo-color property key 187 */ 59 188 String TEXT_HALO_COLOR = "text-halo-color"; 189 /** 190 * MapCSS text-halo-opacity property key 191 */ 60 192 String TEXT_HALO_OPACITY = "text-halo-opacity"; 193 /** 194 * MapCSS text-halo-radius property key 195 */ 61 196 String TEXT_HALO_RADIUS = "text-halo-radius"; 197 /** 198 * MapCSS text-offset property key 199 */ 62 200 String TEXT_OFFSET = "text-offset"; 201 /** 202 * MapCSS text-offset-x property key 203 */ 63 204 String TEXT_OFFSET_X = "text-offset-x"; 205 /** 206 * MapCSS text-offset-y property key 207 */ 64 208 String TEXT_OFFSET_Y = "text-offset-y"; 209 /** 210 * MapCSS text-opacity property key 211 */ 65 212 String TEXT_OPACITY = "text-opacity"; 213 /** 214 * MapCSS text-position property key 215 */ 66 216 String TEXT_POSITION = "text-position"; 217 /** 218 * MapCSS way-direction-arrows property key 219 */ 67 220 String WAY_DIRECTION_ARROWS = "way-direction-arrows"; 221 /** 222 * MapCSS width property key 223 */ 68 224 String WIDTH = "width"; 225 /** 226 * MapCSS z-index property key 227 */ 69 228 String Z_INDEX = "z-index"; 70 229 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r12131 r12381 1222 1222 } 1223 1223 1224 /** 1225 * Compute the minimum / maximum over the list 1226 * @param lst The list 1227 * @return The minimum or maximum depending on {@link #computeMax} 1228 */ 1224 1229 public Float aggregateList(List<?> lst) { 1225 1230 final List<Float> floats = Utils.transform(lst, (Function<Object, Float>) x -> Cascade.convertTo(x, float.class)); -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/TextLabel.java
r12303 r12381 232 232 } 233 233 234 /** 235 * Creates a new text label with a different position strategy 236 * @param labelPositionStrategy The new position strategy to use 237 * @return The new label 238 */ 234 239 public TextLabel withPosition(PositionForAreaStrategy labelPositionStrategy) { 235 240 return new TextLabel(this, labelPositionStrategy);
Note:
See TracChangeset
for help on using the changeset viewer.