Changeset 31932 in osm
- Timestamp:
- 2016-01-04T01:45:24+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/public_transport_layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport_layer/build.xml
r31926 r31932 8 8 9 9 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 10 <property name="plugin.main.version" value=" 8339"/>10 <property name="plugin.main.version" value="9278"/> 11 11 12 12 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java
r31220 r31932 27 27 import org.openstreetmap.josm.gui.MapView; 28 28 import org.openstreetmap.josm.gui.layer.Layer; 29 import org.openstreetmap.josm.gui.mappaint. LabelCompositionStrategy;30 import org.openstreetmap.josm.gui.mappaint. TextElement;29 import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy; 30 import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel; 31 31 import org.openstreetmap.josm.tools.ColorHelper; 32 32 import org.openstreetmap.josm.tools.ImageProvider; … … 87 87 for (Pair<Node, Node> nodePair : segmentRefs.keySet()) { 88 88 final String label = Utils.join(tr(", "), new TreeSet<>(segmentRefs.get(nodePair))); 89 final Text Element text = new TextElement(new LabelCompositionStrategy.StaticLabelCompositionStrategy(label), new Font("SansSerif", Font.PLAIN, 16), 0, 0, new Color(0x80FFFFFF, true), 0f, null);89 final TextLabel text = new TextLabel(new LabelCompositionStrategy.StaticLabelCompositionStrategy(label), new Font("SansSerif", Font.PLAIN, 16), 0, 0, new Color(0x80FFFFFF, true), 0f, null); 90 90 final Way way = new Way(); 91 91 way.addNode(nodePair.a);
Note:
See TracChangeset
for help on using the changeset viewer.