- Timestamp:
- 2017-03-20T22:35:41+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r11748 r11749 1030 1030 displayText(() -> translatedGvs.forEach(gv -> g.drawGlyphVector(gv, 0, 0)), 1031 1031 () -> translatedGvs.stream().collect( 1032 () -> new Path2D.Double(),1033 1034 1032 Path2D.Double::new, 1033 (p, gv) -> p.append(gv.getOutline(0, 0), false), 1034 (p1, p2) -> p1.append(p2, false)), 1035 1035 osm.isDisabled(), text); 1036 1036 } else if (Main.isTraceEnabled()) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
r11748 r11749 90 90 * @return The list of glyphs. 91 91 */ 92 private List<OffsetGlyph> computeOffsetGlyphs(List<GlyphVector> gvs, double startOffset, boolean rotateText) {92 private static List<OffsetGlyph> computeOffsetGlyphs(List<GlyphVector> gvs, double startOffset, boolean rotateText) { 93 93 double offset = startOffset; 94 94 ArrayList<OffsetGlyph> offsetGlyphs = new ArrayList<>(); … … 187 187 * This is used to always place at least 50% of the text correctly. 188 188 */ 189 private class UpsideComputingVisitor implements PathSegmentConsumer {189 private static class UpsideComputingVisitor implements PathSegmentConsumer { 190 190 191 191 private final double startOffset;
Note:
See TracChangeset
for help on using the changeset viewer.