Ignore:
Timestamp:
2009-12-20T08:28:24+01:00 (14 years ago)
Author:
jttt
Message:

Simplified MapPaintVisitor (removed current* global state)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java

    r2662 r2663  
    66package org.openstreetmap.josm.gui.layer.geoimage;
    77
     8import java.awt.Image;
    89import java.io.File;
    910import java.util.Date;
    10 import java.awt.Image;
    1111
    1212import org.openstreetmap.josm.data.coor.CachedLatLon;
     
    2929
    3030    Image thumbnail;
    31    
     31
    3232    ImageEntry tmp;
    3333
    3434    public CachedLatLon getPos() {
    35         if (tmp != null) {
     35        if (tmp != null)
    3636            return tmp.pos;
    37         }
    3837        return pos;
    3938    }
    4039    public Double getSpeed() {
    41         if (tmp != null) {
     40        if (tmp != null)
    4241            return tmp.speed;
    43         }
    4442        return speed;
    4543    }
    4644    public Double getElevation() {
    47         if (tmp != null) {
     45        if (tmp != null)
    4846            return tmp.elevation;
    49         }
    5047        return elevation;
    5148    }
     
    5653        this.speed = speed;
    5754    }
    58     public void setElevation(Double speed) {
     55    public void setElevation(Double elevation) {
    5956        this.elevation = elevation;
    6057    }
     
    7067        return (ImageEntry) c;
    7168    }
    72    
     69
    7370    public void setCoor(LatLon latlon)
    7471    {
     
    8683            return 1;
    8784    }
    88    
     85
    8986    public void applyTmp() {
    9087        if (tmp != null) {
     
    10097        tmp.tmp = null;
    10198    }
    102    
     99
    103100    public boolean isTagged() {
    104101        return pos != null;
    105102    }
    106    
     103
    107104    /**
    108105     * only partial info
    109106     */
     107    @Override
    110108    public String toString() {
    111109        String result = file.getName()+": "+
    112             "pos = "+pos+" | "+
    113             "exifCoor = "+exifCoor+" | "+
    114             (tmp == null ? " tmp==null" :
    115                 " [tmp] pos = "+tmp.pos+"");
     110        "pos = "+pos+" | "+
     111        "exifCoor = "+exifCoor+" | "+
     112        (tmp == null ? " tmp==null" :
     113            " [tmp] pos = "+tmp.pos+"");
    116114        return result;
    117115    }
Note: See TracChangeset for help on using the changeset viewer.