Changeset 31932 in osm


Ignore:
Timestamp:
2016-01-04T01:45:24+01:00 (9 years ago)
Author:
donvip
Message:

[josm_public_transport_layer] update to JOSM 9278

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  
    88
    99    <!-- 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"/>
    1111
    1212    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/public_transport_layer/src/ptl/PublicTransportLayer.java

    r31220 r31932  
    2727import org.openstreetmap.josm.gui.MapView;
    2828import org.openstreetmap.josm.gui.layer.Layer;
    29 import org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy;
    30 import org.openstreetmap.josm.gui.mappaint.TextElement;
     29import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy;
     30import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel;
    3131import org.openstreetmap.josm.tools.ColorHelper;
    3232import org.openstreetmap.josm.tools.ImageProvider;
     
    8787        for (Pair<Node, Node> nodePair : segmentRefs.keySet()) {
    8888            final String label = Utils.join(tr(", "), new TreeSet<>(segmentRefs.get(nodePair)));
    89             final TextElement 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);
    9090            final Way way = new Way();
    9191            way.addNode(nodePair.a);
Note: See TracChangeset for help on using the changeset viewer.