Interface IImageEntry<I extends IImageEntry<I>>
-
- Type Parameters:
I- type of image
- All Known Implementing Classes:
ImageEntry,ImageMarker.MarkerRemoteEntry,RemoteEntry,WikimediaCommonsEntry
public interface IImageEntry<I extends IImageEntry<I>>
An interface for image entries that will be shown inImageDisplay- Since:
- 18246
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleandelete()Delete the imagejava.lang.StringgetDisplayName()Returns a display name for this entry (shown in image viewer title bar)java.lang.DoublegetElevation()Returns the elevation value.java.lang.StringgetExifGpsDatum()Return the GPS datum value.java.lang.DoublegetExifGpsDop()Return the GPS DOP value.java.time.InstantgetExifGpsInstant()Returns the Exif GPS Time value.java.lang.StringgetExifGpsProcMethod()Return the GPS processing method.java.lang.DoublegetExifGpsTrack()Returns the image GPS track direction.java.lang.DoublegetExifHPosErr()Returns the image horizontal positionning error.java.lang.DoublegetExifImgDir()Returns the image direction.java.time.InstantgetExifInstant()Returns EXIF timejava.io.FilegetFile()Returns associated file.IgetFirstImage()Get the first image for the data or sequencejava.lang.IntegergetGps2d3dMode()Return the GPS 2d/3d mode value.java.lang.IntegergetGpsDiffMode()Return the GPS Differential mode value.java.time.InstantgetGpsInstant()Returns the GPS time value.default java.net.URIgetImageURI()Get the URI for the imagejava.lang.StringgetIptcCaption()Returns the IPTC caption.java.lang.StringgetIptcHeadline()Returns the IPTC headline.java.util.List<java.lang.String>getIptcKeywords()Returns the IPTC keywords.java.lang.StringgetIptcObjectName()Returns the IPTC object name.IgetLastImage()Get the last image for the data or sequenceIgetNextImage()Get what would be the next imageILatLongetPos()Returns the position value.IgetPreviousImage()Get the previous imagedefault ProjectionsgetProjectionType()Get the camera projection typejava.lang.DoublegetSpeed()Returns the speed value.booleanhasExifTime()Convenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.booleanhasGpsTime()Convenient way to determine if this entry has a GPS time, without the cost of building a defensive copy.default booleanisDeleteSupported()Check if image deletion is supporteddefault booleanisRemoveSupported()Check if image removal is supporteddefault java.awt.image.BufferedImageread(java.awt.Dimension target)Reads the image represented by this entry in the given target dimension.default booleanremove()Remove the imagedefault voidselectFirstImage(ImageViewerDialog imageViewerDialog)Select the first image for the data or sequencedefault voidselectImage(ImageViewerDialog imageViewerDialog, IImageEntry<?> entry)Select a specific imagedefault voidselectLastImage(ImageViewerDialog imageViewerDialog)Select the last image for the data or sequencedefault voidselectNextImage(ImageViewerDialog imageViewerDialog)Select the next imagedefault voidselectPreviousImage(ImageViewerDialog imageViewerDialog)Select the previous imagevoidsetHeight(int height)Sets the height of this ImageEntry.voidsetWidth(int width)Sets the width of this ImageEntry.
-
-
-
Method Detail
-
selectNextImage
default void selectNextImage(ImageViewerDialog imageViewerDialog)
Select the next image- Parameters:
imageViewerDialog- The image viewer to update
-
getNextImage
I getNextImage()
Get what would be the next image- Returns:
- The next image
-
selectPreviousImage
default void selectPreviousImage(ImageViewerDialog imageViewerDialog)
Select the previous image- Parameters:
imageViewerDialog- The image viewer to update
-
getPreviousImage
I getPreviousImage()
Get the previous image- Returns:
- The previous image
-
selectFirstImage
default void selectFirstImage(ImageViewerDialog imageViewerDialog)
Select the first image for the data or sequence- Parameters:
imageViewerDialog- The image viewer to update
-
getFirstImage
I getFirstImage()
Get the first image for the data or sequence- Returns:
- The first image
-
selectLastImage
default void selectLastImage(ImageViewerDialog imageViewerDialog)
Select the last image for the data or sequence- Parameters:
imageViewerDialog- The image viewer to update
-
selectImage
default void selectImage(ImageViewerDialog imageViewerDialog, IImageEntry<?> entry)
Select a specific image- Parameters:
imageViewerDialog- The image viewer to updateentry- The image to select- Since:
- 18290
-
getLastImage
I getLastImage()
Get the last image for the data or sequence- Returns:
- The last image
-
remove
default boolean remove()
Remove the image- Returns:
trueif removal was successful- Throws:
java.lang.UnsupportedOperationException- If the implementation does not support removal. UseisRemoveSupported()} to check for support.
-
isRemoveSupported
default boolean isRemoveSupported()
Check if image removal is supported- Returns:
trueif removal is supported
-
delete
default boolean delete()
Delete the image- Returns:
trueif deletion was successful- Throws:
java.lang.UnsupportedOperationException- If the implementation does not support deletion. UseisDeleteSupported()} to check for support.- Since:
- 18278
-
isDeleteSupported
default boolean isDeleteSupported()
Check if image deletion is supported- Returns:
trueif deletion is supported- Since:
- 18278
-
getDisplayName
java.lang.String getDisplayName()
Returns a display name for this entry (shown in image viewer title bar)- Returns:
- a display name for this entry
-
read
default java.awt.image.BufferedImage read(java.awt.Dimension target) throws java.io.IOException
Reads the image represented by this entry in the given target dimension.- Parameters:
target- the desired dimension used for subsampling ornull- Returns:
- the read image, or
null - Throws:
java.io.IOException- if any I/O error occurs
-
setWidth
void setWidth(int width)
Sets the width of this ImageEntry.- Parameters:
width- set the width of this ImageEntry
-
setHeight
void setHeight(int height)
Sets the height of this ImageEntry.- Parameters:
height- set the height of this ImageEntry
-
getFile
java.io.File getFile()
Returns associated file.- Returns:
- associated file
-
getImageURI
default java.net.URI getImageURI()
Get the URI for the image- Returns:
- The image URI
- Since:
- 18427
-
getPos
ILatLon getPos()
Returns the position value. The position value from the temporary copy is returned if that copy exists.- Returns:
- the position value
-
getSpeed
java.lang.Double getSpeed()
Returns the speed value. The speed value from the temporary copy is returned if that copy exists.- Returns:
- the speed value
-
getElevation
java.lang.Double getElevation()
Returns the elevation value. The elevation value from the temporary copy is returned if that copy exists.- Returns:
- the elevation value
-
getGpsDiffMode
java.lang.Integer getGpsDiffMode()
Return the GPS Differential mode value. The differential mode value from the temporary copy is returned if that copy exists.- Returns:
- the fix mode value
- Since:
- 19387
-
getGps2d3dMode
java.lang.Integer getGps2d3dMode()
Return the GPS 2d/3d mode value. The 2d/3d mode value from the temporary copy is returned if that copy exists.- Returns:
- the 2d/3d mode value
- Since:
- 19387
-
getExifGpsDop
java.lang.Double getExifGpsDop()
Return the GPS DOP value. The GPS DOP value from the temporary copy is return if that copy exists.- Returns:
- the GPS DOP value
- Since:
- 19387
-
getExifGpsDatum
java.lang.String getExifGpsDatum()
Return the GPS datum value. The GPS datum value from the temporary copy is return if that copy exists.- Returns:
- the GPS datum value
- Since:
- 19387
-
getExifGpsProcMethod
java.lang.String getExifGpsProcMethod()
Return the GPS processing method. The processing method value from the temporary copy is return if that copy exists.- Returns:
- the GPS processing method
- Since:
- 19387
-
getExifImgDir
java.lang.Double getExifImgDir()
Returns the image direction. The image direction from the temporary copy is returned if that copy exists.- Returns:
- The image camera angle
-
getExifGpsTrack
java.lang.Double getExifGpsTrack()
Returns the image GPS track direction. The GPS track direction from the temporary copy is returned if that copy exists.- Returns:
- the image GPS track direction angle
- Since:
- 19387
-
getExifHPosErr
java.lang.Double getExifHPosErr()
Returns the image horizontal positionning error. The image positionning error from the temporary copy is returned if that copy exists.- Returns:
- the image horizontal positionning error
- Since:
- 19387
-
hasExifTime
boolean hasExifTime()
Convenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.- Returns:
trueif this entry has a EXIF time- Since:
- 6450
-
getExifInstant
java.time.Instant getExifInstant()
Returns EXIF time- Returns:
- EXIF time
-
hasGpsTime
boolean hasGpsTime()
Convenient way to determine if this entry has a GPS time, without the cost of building a defensive copy.- Returns:
trueif this entry has a GPS time
-
getGpsInstant
java.time.Instant getGpsInstant()
Returns the GPS time value. The GPS time value from the temporary copy is returned if that copy exists.- Returns:
- the GPS time value
-
getExifGpsInstant
java.time.Instant getExifGpsInstant()
Returns the Exif GPS Time value. The Exif GPS time value from the temporary copy is returned if that copy exists.- Returns:
- the Exif GPS time value
- Since:
- 19387
-
getIptcCaption
java.lang.String getIptcCaption()
Returns the IPTC caption.- Returns:
- the IPTC caption
-
getIptcHeadline
java.lang.String getIptcHeadline()
Returns the IPTC headline.- Returns:
- the IPTC headline
-
getIptcKeywords
java.util.List<java.lang.String> getIptcKeywords()
Returns the IPTC keywords.- Returns:
- the IPTC keywords
-
getIptcObjectName
java.lang.String getIptcObjectName()
Returns the IPTC object name.- Returns:
- the IPTC object name
-
getProjectionType
default Projections getProjectionType()
Get the camera projection type- Returns:
- the camera projection type
-
-