Changeset 1272 in josm
- Timestamp:
- 2009-01-17T10:53:39+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r1270 r1272 121 121 } 122 122 n.mappaintVisibleCode = 0; 123 124 profilerVisibleNodes++;125 123 126 124 IconElemStyle nodeStyle = (IconElemStyle)getPrimitiveStyle(n); … … 753 751 Point p = nc.getPoint(n.eastNorth); 754 752 if ((p.x < 0) || (p.y < 0) || (p.x > nc.getWidth()) || (p.y > nc.getHeight())) return; 753 754 profilerVisibleNodes++; 755 755 756 int w = icon.getIconWidth(), h=icon.getIconHeight(); 756 757 icon.paintIcon ( Main.map.mapView, g, p.x-w/2, p.y-h/2 ); … … 846 847 || (p.y > nc.getHeight())) 847 848 return; 849 850 profilerVisibleNodes++; 851 848 852 g.setColor(color); 849 853 if (fill) { … … 868 872 } 869 873 870 public void getColors()874 /*public void getColors() 871 875 { 872 876 super.getColors(); 873 877 untaggedColor = Main.pref.getColor(marktr("untagged"),Color.GRAY); 874 878 textColor = Main.pref.getColor (marktr("text"), Color.WHITE); 875 } 879 }*/ 876 880 877 881 // Shows areas before non-areas … … 944 948 if(profiler) 945 949 { 946 System.out.format("Relations: %4dms, calls=% 5d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN);950 System.out.format("Relations: %4dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN); 947 951 profilerLast = java.lang.System.currentTimeMillis(); 948 952 } … … 966 970 if(profiler) 967 971 { 968 System.out.format("Areas : %4dms, calls=% 5d, visible=%d\n",972 System.out.format("Areas : %4dms, calls=%7d, visible=%d\n", 969 973 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleAreas); 970 974 profilerLast = java.lang.System.currentTimeMillis(); … … 982 986 if(profiler) 983 987 { 984 System.out.format("Ways : %4dms, calls=% 5d, visible=%d\n",988 System.out.format("Ways : %4dms, calls=%7d, visible=%d\n", 985 989 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleWays); 986 990 profilerLast = java.lang.System.currentTimeMillis(); … … 1001 1005 if(profiler) 1002 1006 { 1003 System.out.format("Ways : %4dms, calls=% 5d, visible=%d\n",1007 System.out.format("Ways : %4dms, calls=%7d, visible=%d\n", 1004 1008 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleWays); 1005 1009 profilerLast = java.lang.System.currentTimeMillis(); … … 1021 1025 if(profiler) 1022 1026 { 1023 System.out.format("Selected : %4dms, calls=% 5d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN);1027 System.out.format("Selected : %4dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN); 1024 1028 profilerLast = java.lang.System.currentTimeMillis(); 1025 1029 } … … 1045 1049 if(profiler) 1046 1050 { 1047 System.out.format("Nodes : %4dms, calls=% 5d, visible=%d\n",1051 System.out.format("Nodes : %4dms, calls=%7d, visible=%d\n", 1048 1052 (java.lang.System.currentTimeMillis()-profilerLast), profilerN, profilerVisibleNodes); 1049 1053 profilerLast = java.lang.System.currentTimeMillis(); … … 1067 1071 if(profiler) 1068 1072 { 1069 System.out.format("Virtual : %4dms, calls=% 5d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN);1073 System.out.format("Virtual : %4dms, calls=%7d\n", (java.lang.System.currentTimeMillis()-profilerLast), profilerN); 1070 1074 profilerLast = java.lang.System.currentTimeMillis(); 1071 1075 } … … 1081 1085 if(profiler) 1082 1086 { 1083 System.out.format("Segments : calls=% 5d, visible=%d\n", profilerSegments, profilerVisibleSegments);1087 System.out.format("Segments : calls=%7d, visible=%d\n", profilerSegments, profilerVisibleSegments); 1084 1088 System.out.format("All : %4dms\n", (profilerLast-profilerStart)); 1085 1089 }
Note:
See TracChangeset
for help on using the changeset viewer.