Changeset 2466 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-11-16T20:49:05+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r2460 r2466 76 76 protected double dist; 77 77 protected Collection<String> regionalNameOrder; 78 protected Boolean useStyleCache;78 protected boolean useStyleCache; 79 79 private static int paintid = 0; 80 private static int viewid = 0;81 80 private EastNorth minEN; 82 81 private EastNorth maxEN; … … 250 249 } 251 250 252 public void drawWay(Way w, LineElemStyle l, Color color, Boolean selected) {251 public void drawWay(Way w, LineElemStyle l, Color color, boolean selected) { 253 252 /* show direction arrows, if draw.segment.relevant_directions_only is not set, 254 253 the way is tagged with a direction key … … 388 387 { 389 388 Way w = null; 390 Boolean selected = false;389 boolean selected = false; 391 390 List<Node> n = null; 392 Boolean joined = true;391 boolean joined = true; 393 392 while(joined && left != 0) 394 393 { … … 487 486 } 488 487 489 public void drawSelectedMember(OsmPrimitive osm, ElemStyle style, Boolean area,490 Boolean areaselected)488 public void drawSelectedMember(OsmPrimitive osm, ElemStyle style, boolean area, 489 boolean areaselected) 491 490 { 492 491 if(osm instanceof Way) 493 492 { 494 Way w = (Way)osm;495 493 if(style instanceof AreaElemStyle) 496 494 { … … 520 518 521 519 @Override 522 public void visit(Relation r) {} ;520 public void visit(Relation r) {} 523 521 public void paintUnselectedRelation(Relation r) { 524 522 … … 648 646 Node firstNode = viaWay.firstNode(); 649 647 Node lastNode = viaWay.lastNode(); 650 Boolean onewayvia = false;648 boolean onewayvia = false; 651 649 652 650 String onewayviastr = viaWay.get("oneway"); … … 908 906 } 909 907 910 public Boolean drawMultipolygon(Relation r) {908 public boolean drawMultipolygon(Relation r) { 911 909 Collection<Way> inner = new LinkedList<Way>(); 912 910 Collection<Way> outer = new LinkedList<Way>(); 913 911 Collection<Way> innerclosed = new LinkedList<Way>(); 914 912 Collection<Way> outerclosed = new LinkedList<Way>(); 915 Boolean incomplete = false;916 Boolean drawn = false;913 boolean incomplete = false; 914 boolean drawn = false; 917 915 918 916 for (RelationMember m : r.getMembers()) … … 967 965 if(wayStyle != null && wayStyle instanceof AreaElemStyle) 968 966 { 969 Boolean zoomok = isZoomOk(wayStyle);970 Boolean visible = false;967 boolean zoomok = isZoomOk(wayStyle); 968 boolean visible = false; 971 969 Collection<Way> outerjoin = new LinkedList<Way>(); 972 970 Collection<Way> innerjoin = new LinkedList<Way>(); … … 1212 1210 } 1213 1211 1214 protected void drawNode(Node n, ImageIcon icon, boolean annotate, Boolean selected) {1212 protected void drawNode(Node n, ImageIcon icon, boolean annotate, boolean selected) { 1215 1213 Point p = nc.getPoint(n); 1216 1214 if ((p.x < 0) || (p.y < 0) || (p.x > nc.getWidth()) || (p.y > nc.getHeight())) return; … … 1459 1457 1460 1458 ++paintid; 1461 viewid = nc.getViewID();1462 1459 1463 1460 //profilerVisibleNodes = 0; … … 1622 1619 } 1623 1620 1621 1624 1622 //if(profiler) 1625 1623 //{ -
trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r2450 r2466 105 105 } 106 106 107 protected void getSettings( Boolean virtual) {107 protected void getSettings(boolean virtual) { 108 108 showDirectionArrow = Main.pref.getBoolean("draw.segment.direction", true); 109 109 showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true); … … 132 132 public void visitAll(DataSet data, boolean virtual, Bounds bounds) { 133 133 this.ds = data; 134 //boolean profiler = Main.pref.get Boolean("simplepaint.profiler",false);134 //boolean profiler = Main.pref.getboolean("simplepaint.profiler",false); 135 135 //long profilerStart = java.lang.System.currentTimeMillis(); 136 136 //long profilerLast = profilerStart; … … 264 264 } 265 265 266 public static Boolean isLargeSegment(Point p1, Point p2, int space)266 public static boolean isLargeSegment(Point p1, Point p2, int space) 267 267 { 268 268 int xd = p1.x-p2.x; if(xd < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.