Changeset 4281 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-08-05T23:59:55+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r4169 r4281 280 280 " dashed=" + Arrays.toString(line.getDashArray()) + 281 281 (line.getDashPhase() == 0f ? "" : " dashesOffses=" + line.getDashPhase()) + 282 " dashedColor=" + Utils.toString(dashesBackground) + '}'; 282 " dashedColor=" + Utils.toString(dashesBackground) + 283 " linejoin=" + linejoinToString(line.getLineJoin()) + 284 " linecap=" + linecapToString(line.getEndCap()) + 285 '}'; 286 } 287 288 public String linejoinToString(int linejoin) { 289 switch (linejoin) { 290 case BasicStroke.JOIN_BEVEL: return "bevel"; 291 case BasicStroke.JOIN_ROUND: return "round"; 292 case BasicStroke.JOIN_MITER: return "miter"; 293 default: return null; 294 } 295 } 296 public String linecapToString(int linecap) { 297 switch (linecap) { 298 case BasicStroke.CAP_BUTT: return "none"; 299 case BasicStroke.CAP_ROUND: return "round"; 300 case BasicStroke.CAP_SQUARE: return "square"; 301 default: return null; 302 } 283 303 } 284 304 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/LineTextElemStyle.java
r4006 r4281 25 25 26 26 TextElement text = TextElement.create(c, PaintColors.TEXT.get(), false); 27 if (text == null) 28 return null; 27 29 return new LineTextElemStyle(c, text); 28 30 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/TextElement.java
r4191 r4281 122 122 123 123 LabelCompositionStrategy strategy = buildLabelCompositionStrategy(c, defaultAnnotate); 124 if (strategy == null) return null; 124 125 Font font = ElemStyle.getFont(c); 125 126
Note:
See TracChangeset
for help on using the changeset viewer.