Changeset 11971 in josm


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

javadoc

Location:
trunk/src/org/openstreetmap/josm
Files:
5 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}
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/Offset.java

    r11914 r11971  
    1111import org.openstreetmap.josm.tools.Pair;
    1212
     13/**
     14 * Time offset of GPX correlation.
     15 * @since 11914 (extracted from {@link CorrelateGpxWithImages})
     16 */
    1317public final class Offset {
    1418
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/Timezone.java

    r11914 r11971  
    77import java.util.Objects;
    88
     9/**
     10 * Timezone in hours.<p>
     11 * TODO: should probably be replaced by {@link java.util.TimeZone}.
     12 * @since 11914 (extracted from {@link CorrelateGpxWithImages})
     13 */
    914public final class Timezone {
    1015
     
    1621    }
    1722
     23    /**
     24     * Returns the timezone in hours.
     25     * @return the timezone in hours
     26     */
    1827    public double getHours() {
    1928        return timezone;
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/ReprojectionTile.java

    r11954 r11971  
    9696    }
    9797
     98    /**
     99     * Transforms the given image.
     100     * @param imageIn tile image to reproject
     101     */
    98102    public void transform(BufferedImage imageIn) {
    99103        if (!Main.isDisplayingMapView()) {
  • trunk/src/org/openstreetmap/josm/tools/ImageWarp.java

    r11954 r11971  
    2525     */
    2626    public interface PointTransform {
     27        /**
     28         * Translates pixel coordinates.
     29         * @param pt pixel coordinates
     30         * @return transformed pixel coordinates
     31         */
    2732        Point2D transform(Point2D pt);
    2833    }
Note: See TracChangeset for help on using the changeset viewer.