org.openstreetmap.josm.gui.layer.geoimage
Class ImageEntry

java.lang.Object
  extended by org.openstreetmap.josm.gui.layer.geoimage.ImageEntry
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<ImageEntry>

public final class ImageEntry
extends java.lang.Object
implements java.lang.Comparable<ImageEntry>, java.lang.Cloneable


Field Summary
private  java.lang.Double elevation
          Elevation (altitude) in meters
private  LatLon exifCoor
           
private  java.lang.Double exifImgDir
           
private  java.lang.Integer exifOrientation
           
private  java.util.Date exifTime
           
private  java.io.File file
           
private  java.util.Date gpsTime
          The time after correlation with a gpx track
private  CachedLatLon pos
          The following values are computed from the correlation with the gpx track
private  java.lang.Double speed
          Speed in kilometer per second
(package private)  java.awt.Image thumbnail
           
(package private)  ImageEntry tmp
          When the corralation dialog is open, we like to show the image position for the current time offset on the map in real time.
 
Constructor Summary
ImageEntry()
           
 
Method Summary
 void applyTmp()
          Copy the values from the temporary variable to the main instance.
 void cleanTmp()
          Make a fresh copy and save it in the temporary variable.
 ImageEntry clone()
           
 int compareTo(ImageEntry image)
           
 java.lang.Double getElevation()
           
(package private)  LatLon getExifCoor()
           
 java.lang.Double getExifImgDir()
           
 java.lang.Integer getExifOrientation()
           
 java.util.Date getExifTime()
           
 java.io.File getFile()
          other getter methods
 java.util.Date getGpsTime()
           
 CachedLatLon getPos()
          getter methods that refer to the temporary value
 java.lang.Double getSpeed()
           
 boolean isTagged()
          If it has been tagged i.e.
 void setElevation(java.lang.Double elevation)
           
(package private)  void setExifCoor(LatLon exifCoor)
           
(package private)  void setExifImgDir(double exifDir)
           
(package private)  void setExifOrientation(java.lang.Integer exifOrientation)
           
(package private)  void setExifTime(java.util.Date exifTime)
           
(package private)  void setFile(java.io.File file)
           
(package private)  void setGpsTime(java.util.Date gpsTime)
           
 void setPos(CachedLatLon pos)
          setter methods
 void setPos(LatLon pos)
           
 void setSpeed(java.lang.Double speed)
           
 java.lang.String toString()
          String representation.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file

private java.io.File file

exifOrientation

private java.lang.Integer exifOrientation

exifCoor

private LatLon exifCoor

exifImgDir

private java.lang.Double exifImgDir

exifTime

private java.util.Date exifTime

thumbnail

java.awt.Image thumbnail

pos

private CachedLatLon pos
The following values are computed from the correlation with the gpx track


speed

private java.lang.Double speed
Speed in kilometer per second


elevation

private java.lang.Double elevation
Elevation (altitude) in meters


gpsTime

private java.util.Date gpsTime
The time after correlation with a gpx track


tmp

ImageEntry tmp
When the corralation dialog is open, we like to show the image position for the current time offset on the map in real time. On the other hand, when the user aborts this operation, the old values should be restored. We have a temprary copy, that overrides the normal values if it is not null. (This may be not the most elegant solution for this, but it works.)

Constructor Detail

ImageEntry

public ImageEntry()
Method Detail

getPos

public CachedLatLon getPos()
getter methods that refer to the temporary value


getSpeed

public java.lang.Double getSpeed()

getElevation

public java.lang.Double getElevation()

getGpsTime

public java.util.Date getGpsTime()

getFile

public java.io.File getFile()
other getter methods


getExifOrientation

public java.lang.Integer getExifOrientation()

getExifTime

public java.util.Date getExifTime()

getExifCoor

LatLon getExifCoor()

getExifImgDir

public java.lang.Double getExifImgDir()

setPos

public void setPos(CachedLatLon pos)
setter methods


setPos

public void setPos(LatLon pos)

setSpeed

public void setSpeed(java.lang.Double speed)

setElevation

public void setElevation(java.lang.Double elevation)

setFile

void setFile(java.io.File file)

setExifOrientation

void setExifOrientation(java.lang.Integer exifOrientation)

setExifTime

void setExifTime(java.util.Date exifTime)

setGpsTime

void setGpsTime(java.util.Date gpsTime)

setExifCoor

void setExifCoor(LatLon exifCoor)

setExifImgDir

void setExifImgDir(double exifDir)

clone

public ImageEntry clone()
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(ImageEntry image)
Specified by:
compareTo in interface java.lang.Comparable<ImageEntry>

cleanTmp

public void cleanTmp()
Make a fresh copy and save it in the temporary variable.


applyTmp

public void applyTmp()
Copy the values from the temporary variable to the main instance.


isTagged

public boolean isTagged()
If it has been tagged i.e. matched to a gpx track or retrieved lat/lon from exif


toString

public java.lang.String toString()
String representation. (only partial info)

Overrides:
toString in class java.lang.Object


JOSM