Changeset 12082 in josm
- Timestamp:
- 2017-05-07T16:37:57+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java
r11809 r12082 31 31 public static final LineElement UNTAGGED_WAY = createSimpleLineStyle(null, false); 32 32 33 private BasicStroke line; 33 private final BasicStroke line; 34 34 public Color color; 35 35 public Color dashesBackground; … … 38 38 public boolean wayDirectionArrows; 39 39 40 private BasicStroke dashesLine; 40 private final BasicStroke dashesLine; 41 41 42 42 public enum LineType { -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/TextLabel.java
r11748 r12082 77 77 @Deprecated 78 78 public TextLabel(LabelCompositionStrategy strategy, Font font, int xOffset, int yOffset, Color color, Float haloRadius, Color haloColor) { 79 this(strategy, font, xOffset, yOffset, color, haloRadius, haloColor, newCompletelyInsideAreaStrategy());79 this(strategy, font, xOffset, yOffset, color, haloRadius, haloColor, CompletelyInsideAreaStrategy.INSTANCE); 80 80 } 81 81 … … 254 254 @Override 255 255 public String toString() { 256 return "Text Element{" + toStringImpl() + '}';256 return "TextLabel{" + toStringImpl() + '}'; 257 257 } 258 258 -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/CompletelyInsideAreaStrategy.java
r11810 r12082 21 21 */ 22 22 public static final CompletelyInsideAreaStrategy INSTANCE = new CompletelyInsideAreaStrategy(); 23 24 protected CompletelyInsideAreaStrategy() { 25 } 23 26 24 27 @Override -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/PartiallyInsideAreaStrategy.java
r11748 r12082 22 22 public static final PartiallyInsideAreaStrategy INSTANCE = new PartiallyInsideAreaStrategy(); 23 23 24 private PartiallyInsideAreaStrategy() { 25 } 26 24 27 @Override 25 28 public MapViewPositionAndRotation findLabelPlacement(MapViewPath path, Rectangle2D nb) {
Note:
See TracChangeset
for help on using the changeset viewer.