Changeset 11971 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/ComputeStyleListWorker.java
- Timestamp:
- 2017-04-22T02:10:14+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/ComputeStyleListWorker.java
r11970 r11971 30 30 31 31 /** 32 * Helper to c umpute style list.32 * Helper to compute style list. 33 33 * @since 11914 (extracted from StyledMapRenderer) 34 34 */ … … 85 85 } 86 86 87 /** 88 * Compute directly (without using fork/join) the style list. Only called for small input. 89 * @return list of computed style records 90 */ 87 91 public List<StyleRecord> computeDirectly() { 88 92 MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock(); … … 129 133 } 130 134 135 /** 136 * Add new style records for the given node. 137 * @param osm node 138 * @param flags flags 139 */ 131 140 public void add(Node osm, int flags) { 132 141 StyleElementList sl = styles.get(osm, circum, nc); … … 136 145 } 137 146 147 /** 148 * Add new style records for the given way. 149 * @param osm way 150 * @param flags flags 151 */ 152 public void add(Way osm, int flags) { 153 StyleElementList sl = styles.get(osm, circum, nc); 154 for (StyleElement s : sl) { 155 if ((drawArea && (flags & StyledMapRenderer.FLAG_DISABLED) == 0) || !(s instanceof AreaElement)) { 156 output.add(new StyleRecord(s, osm, flags)); 157 } 158 } 159 } 160 161 /** 162 * Add new style records for the given relation. 163 * @param osm relation 164 * @param flags flags 165 */ 138 166 public void add(Relation osm, int flags) { 139 167 StyleElementList sl = styles.get(osm, circum, nc); … … 151 179 && (flags & StyledMapRenderer.FLAG_DISABLED) == 0; 152 180 } 153 154 public void add(Way osm, int flags) {155 StyleElementList sl = styles.get(osm, circum, nc);156 for (StyleElement s : sl) {157 if ((drawArea && (flags & StyledMapRenderer.FLAG_DISABLED) == 0) || !(s instanceof AreaElement)) {158 output.add(new StyleRecord(s, osm, flags));159 }160 }161 }162 181 }
Note:
See TracChangeset
for help on using the changeset viewer.