Changeset 11731 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/TextLabel.java
- Timestamp:
- 2017-03-13T20:29:33+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/TextLabel.java
r11722 r11731 59 59 * The position strategy for this text label. 60 60 */ 61 private final PositionForAreaStrategy labelPositionSt eategy;61 private final PositionForAreaStrategy labelPositionStrategy; 62 62 63 63 /** … … 90 90 * @param haloRadius halo radius 91 91 * @param haloColor halo color 92 * @param labelPositionSteategy The position in the area. 93 */ 94 protected TextLabel(LabelCompositionStrategy strategy, Font font, int xOffset, int yOffset, Color color, Float haloRadius, Color haloColor, PositionForAreaStrategy labelPositionSteategy) { 92 * @param labelPositionStrategy The position in the area. 93 */ 94 protected TextLabel(LabelCompositionStrategy strategy, Font font, int xOffset, int yOffset, Color color, Float haloRadius, 95 Color haloColor, PositionForAreaStrategy labelPositionStrategy) { 95 96 this.labelCompositionStrategy = strategy; 96 97 this.font = Objects.requireNonNull(font, "font"); … … 100 101 this.haloRadius = haloRadius; 101 102 this.haloColor = haloColor; 102 this.labelPositionSt eategy = Objects.requireNonNull(labelPositionSteategy, "labelPositionSteategy");103 this.labelPositionStrategy = Objects.requireNonNull(labelPositionStrategy, "labelPositionStrategy"); 103 104 } 104 105 … … 116 117 this.haloColor = other.haloColor; 117 118 this.haloRadius = other.haloRadius; 118 this.labelPositionSt eategy = other.labelPositionSteategy;119 this.labelPositionStrategy = other.labelPositionStrategy; 119 120 } 120 121 … … 123 124 * 124 125 * @param other the other element. 125 * @param labelPositionSt eategy the position126 */ 127 private TextLabel(TextLabel other, PositionForAreaStrategy labelPositionSt eategy) {126 * @param labelPositionStrategy the position 127 */ 128 private TextLabel(TextLabel other, PositionForAreaStrategy labelPositionStrategy) { 128 129 this.labelCompositionStrategy = other.labelCompositionStrategy; 129 130 this.font = other.font; … … 133 134 this.haloColor = other.haloColor; 134 135 this.haloRadius = other.haloRadius; 135 this.labelPositionSt eategy = labelPositionSteategy;136 this.labelPositionStrategy = labelPositionStrategy; 136 137 } 137 138 … … 242 243 * @since 11722 243 244 */ 244 public PositionForAreaStrategy getLabelPositionSt eategy() {245 return labelPositionSt eategy;246 } 247 248 public TextLabel withPosition(PositionForAreaStrategy labelPositionSt eategy) {249 return new TextLabel(this, labelPositionSt eategy);245 public PositionForAreaStrategy getLabelPositionStrategy() { 246 return labelPositionStrategy; 247 } 248 249 public TextLabel withPosition(PositionForAreaStrategy labelPositionStrategy) { 250 return new TextLabel(this, labelPositionStrategy); 250 251 } 251 252
Note:
See TracChangeset
for help on using the changeset viewer.