Ignore:
Timestamp:
2017-04-22T02:10:14+02:00 (7 years ago)
Author:
Don-vip
Message:

javadoc

File:
1 edited

Legend:

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

    r11970 r11971  
    3030
    3131/**
    32  * Helper to cumpute style list.
     32 * Helper to compute style list.
    3333 * @since 11914 (extracted from StyledMapRenderer)
    3434 */
     
    8585    }
    8686
     87    /**
     88     * Compute directly (without using fork/join) the style list. Only called for small input.
     89     * @return list of computed style records
     90     */
    8791    public List<StyleRecord> computeDirectly() {
    8892        MapCSSStyleSource.STYLE_SOURCE_LOCK.readLock().lock();
     
    129133    }
    130134
     135    /**
     136     * Add new style records for the given node.
     137     * @param osm node
     138     * @param flags flags
     139     */
    131140    public void add(Node osm, int flags) {
    132141        StyleElementList sl = styles.get(osm, circum, nc);
     
    136145    }
    137146
     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     */
    138166    public void add(Relation osm, int flags) {
    139167        StyleElementList sl = styles.get(osm, circum, nc);
     
    151179                && (flags & StyledMapRenderer.FLAG_DISABLED) == 0;
    152180    }
    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     }
    162181}
Note: See TracChangeset for help on using the changeset viewer.