Changeset 13673 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2018-04-24T02:36:44+02:00 (7 years ago)
Author:
Don-vip
Message:

support drawing INode in renderers

Location:
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java

    r13453 r13673  
    1111import org.openstreetmap.josm.data.osm.BBox;
    1212import org.openstreetmap.josm.data.osm.DataSet;
     13import org.openstreetmap.josm.data.osm.INode;
    1314import org.openstreetmap.josm.data.osm.Node;
    1415import org.openstreetmap.josm.data.osm.Way;
     
    8990     * @param fill determines if the square mmust be filled
    9091     */
    91     public abstract void drawNode(Node n, Color color, int size, boolean fill);
     92    public abstract void drawNode(INode n, Color color, int size, boolean fill);
    9293
    9394    /**
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r13662 r13673  
    4747import org.openstreetmap.josm.data.osm.BBox;
    4848import org.openstreetmap.josm.data.osm.DataSet;
     49import org.openstreetmap.josm.data.osm.INode;
    4950import org.openstreetmap.josm.data.osm.IPrimitive;
    5051import org.openstreetmap.josm.data.osm.Node;
     
    691692
    692693    @Override
    693     public void drawNode(Node n, Color color, int size, boolean fill) {
     694    public void drawNode(INode n, Color color, int size, boolean fill) {
    694695        if (size <= 0 && !n.isHighlighted())
    695696            return;
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java

    r12846 r13673  
    1919import org.openstreetmap.josm.data.osm.BBox;
    2020import org.openstreetmap.josm.data.osm.DataSet;
     21import org.openstreetmap.josm.data.osm.INode;
    2122import org.openstreetmap.josm.data.osm.Node;
    2223import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    388389
    389390    @Override
    390     public void drawNode(Node n, Color color, int size, boolean fill) {
     391    public void drawNode(INode n, Color color, int size, boolean fill) {
    391392        if (size > 1) {
    392393            MapViewPoint p = mapState.getPointFor(n);
Note: See TracChangeset for help on using the changeset viewer.