public final class ImageEntry extends java.lang.Object implements java.lang.Comparable<ImageEntry>, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
elevation
Elevation (altitude) in meters
|
private LatLon |
exifCoor |
private java.util.Date |
exifGpsTime
Temporary source of GPS time if not correlated with GPX track.
|
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 boolean |
isNewGpsData
Flag isNewGpsData indicates that the GPS data of the image is new or has changed.
|
private CachedLatLon |
pos
The following values are computed from the correlation with the gpx track
or extracted from the image EXIF data.
|
private java.lang.Double |
speed
Speed in kilometer per second
|
(package private) java.awt.Image |
thumbnail |
(package private) ImageEntry |
tmp
When the correlation dialog is open, we like to show the image position
for the current time offset on the map in real time.
|
Constructor and Description |
---|
ImageEntry() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
flagNewGpsData()
Indicates that the image has new GPS data.
|
private static java.util.Date |
getDefensiveDate(java.util.Date date) |
java.lang.Double |
getElevation() |
LatLon |
getExifCoor() |
java.util.Date |
getExifGpsTime()
Returns the EXIF GPS time.
|
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 |
hasExifGpsTime()
Convenient way to determine if this entry has a EXIF GPS time, without the cost of building a defensive copy.
|
boolean |
hasExifTime()
Convenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.
|
boolean |
hasGpsTime()
Convenient way to determine if this entry has a GPS time, without the cost of building a defensive copy.
|
boolean |
hasNewGpsData()
Queries whether the GPS data changed.
|
boolean |
hasThumbnail() |
boolean |
isTagged()
If it has been tagged i.e.
|
void |
setElevation(java.lang.Double elevation) |
void |
setExifCoor(LatLon exifCoor) |
void |
setExifGpsTime(java.util.Date exifGpsTime)
Sets the EXIF GPS time.
|
void |
setExifImgDir(double exifDir) |
void |
setExifOrientation(java.lang.Integer exifOrientation) |
void |
setExifTime(java.util.Date exifTime) |
void |
setFile(java.io.File file) |
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.
|
private java.io.File file
private java.lang.Integer exifOrientation
private java.lang.Double exifImgDir
private java.util.Date exifTime
private boolean isNewGpsData
private java.util.Date exifGpsTime
java.awt.Image thumbnail
private CachedLatLon pos
private java.lang.Double speed
private java.lang.Double elevation
private java.util.Date gpsTime
ImageEntry tmp
public ImageEntry()
public CachedLatLon getPos()
public java.lang.Double getSpeed()
public java.lang.Double getElevation()
public java.util.Date getGpsTime()
public final boolean hasGpsTime()
true
if this entry has a GPS timepublic java.io.File getFile()
public java.lang.Integer getExifOrientation()
public java.util.Date getExifTime()
public final boolean hasExifTime()
true
if this entry has a EXIF timepublic final java.util.Date getExifGpsTime()
public final boolean hasExifGpsTime()
true
if this entry has a EXIF GPS timeprivate static java.util.Date getDefensiveDate(java.util.Date date)
public LatLon getExifCoor()
public java.lang.Double getExifImgDir()
public boolean hasThumbnail()
public void setPos(CachedLatLon pos)
public void setSpeed(java.lang.Double speed)
public void setElevation(java.lang.Double elevation)
public void setFile(java.io.File file)
public void setExifOrientation(java.lang.Integer exifOrientation)
public void setExifTime(java.util.Date exifTime)
public final void setExifGpsTime(java.util.Date exifGpsTime)
exifGpsTime
- the EXIF GPS timepublic void setGpsTime(java.util.Date gpsTime)
public void setExifCoor(LatLon exifCoor)
public void setExifImgDir(double exifDir)
public ImageEntry clone()
clone
in class java.lang.Object
public int compareTo(ImageEntry image)
compareTo
in interface java.lang.Comparable<ImageEntry>
public void cleanTmp()
public void applyTmp()
public boolean isTagged()
public java.lang.String toString()
toString
in class java.lang.Object
public void flagNewGpsData()
public boolean hasNewGpsData()
true
if GPS data changed, false
otherwise