Ignore:
Timestamp:
2013-02-20T20:10:33+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/seamap/Renderer.java

    r29266 r29270  
    173173
    174174        public static void lineVector (Feature feature, LineStyle style) {
    175                 if (feature.flag != Fflag.POINT) {
    176                         ArrayList<Long> ways = new ArrayList<Long>();
    177 //                      if (map.outers.containsKey(feature.refs)) {
    178 //                              ways.addAll(map.mpolys.get(map.outers.get(feature.refs)));
    179 //                      } else {
    180 //                              if (map.mpolys.containsKey(feature.refs)) {
    181 //                                      ways.addAll(map.mpolys.get(feature.refs));
    182 //                              } else {
    183 //                                      ways.add(feature.refs);
    184 //                              }
    185 //                      }
    186                         Path2D.Double p = new Path2D.Double();
    187                         p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
     175                Path2D.Double p = new Path2D.Double();
     176                p.setWindingRule(GeneralPath.WIND_EVEN_ODD);
     177                switch (feature.flag) {
     178                case LINE:
     179                        break;
     180                case AREA:
     181                        break;
     182/*                      ArrayList<Long> ways = new ArrayList<Long>();
     183                        if (map.outers.containsKey(feature.refs)) {
     184                                ways.addAll(map.mpolys.get(map.outers.get(feature.refs)));
     185                        } else {
     186                                if (map.mpolys.containsKey(feature.refs)) {
     187                                        ways.addAll(map.mpolys.get(feature.refs));
     188                                } else {
     189                                        ways.add(feature.refs);
     190                                }
     191                        }
    188192                        for (long way : ways) {
    189193                                boolean first = true;
    190 /*                              for (long node : map.ways.get(way)) {
     194                                for (long node : map.ways.get(way)) {
    191195                                        Point2D point = helper.getPoint(map.points.get(node));
    192196                                        if (first) {
     
    215219                                g2.setPaint(style.fill);
    216220                                g2.fill(p);
    217 */                      }
     221                        }*/
    218222                }
    219223        }
Note: See TracChangeset for help on using the changeset viewer.