Interface IImageEntry<I extends IImageEntry<I>>
-
- Type Parameters:
I
- type of image
- All Known Implementing Classes:
ImageEntry
,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 boolean
delete()
Delete the imageString
getDisplayName()
Returns a display name for this entry (shown in image viewer title bar)Double
getElevation()
Returns the elevation value.Double
getExifImgDir()
Returns the image direction.Instant
getExifInstant()
Returns EXIF timeFile
getFile()
Returns associated file.I
getFirstImage()
Get the first image for the data or sequenceInstant
getGpsInstant()
Returns the GPS time value.String
getIptcCaption()
Returns the IPTC caption.String
getIptcHeadline()
Returns the IPTC headline.List<String>
getIptcKeywords()
Returns the IPTC keywords.String
getIptcObjectName()
Returns the IPTC object name.I
getLastImage()
Get the last image for the data or sequenceI
getNextImage()
Get what would be the next imageILatLon
getPos()
Returns the position value.I
getPreviousImage()
Get the previous imagedefault Projections
getProjectionType()
Get the camera projection typeDouble
getSpeed()
Returns the speed value.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.default boolean
isDeleteSupported()
Check if image deletion is supporteddefault boolean
isRemoveSupported()
Check if image removal is supportedBufferedImage
read(Dimension target)
Reads the image represented by this entry in the given target dimension.default boolean
remove()
Remove the imagedefault void
selectFirstImage(ImageViewerDialog imageViewerDialog)
Select the first image for the data or sequencedefault void
selectImage(ImageViewerDialog imageViewerDialog, IImageEntry<?> entry)
Select a specific imagedefault void
selectLastImage(ImageViewerDialog imageViewerDialog)
Select the last image for the data or sequencedefault void
selectNextImage(ImageViewerDialog imageViewerDialog)
Select the next imagedefault void
selectPreviousImage(ImageViewerDialog imageViewerDialog)
Select the previous imagevoid
setHeight(int height)
Sets the height of this ImageEntry.void
setWidth(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:
true
if removal was successful- Throws:
UnsupportedOperationException
- If the implementation does not support removal. UseisRemoveSupported()
} to check for support.
-
isRemoveSupported
default boolean isRemoveSupported()
Check if image removal is supported- Returns:
true
if removal is supported
-
delete
default boolean delete()
Delete the image- Returns:
true
if deletion was successful- Throws:
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:
true
if deletion is supported- Since:
- 18278
-
getDisplayName
String getDisplayName()
Returns a display name for this entry (shown in image viewer title bar)- Returns:
- a display name for this entry
-
read
BufferedImage read(Dimension target) throws 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:
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
-
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
Double getSpeed()
Returns the speed value. The speed value from the temporary copy is returned if that copy exists.- Returns:
- the speed value
-
getElevation
Double getElevation()
Returns the elevation value. The elevation value from the temporary copy is returned if that copy exists.- Returns:
- the elevation value
-
getExifImgDir
Double getExifImgDir()
Returns the image direction. The image direction from the temporary copy is returned if that copy exists.- Returns:
- The image camera angle
-
hasExifTime
boolean hasExifTime()
Convenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.- Returns:
true
if this entry has a EXIF time- Since:
- 6450
-
getExifInstant
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:
true
if this entry has a GPS time
-
getGpsInstant
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
-
getIptcCaption
String getIptcCaption()
Returns the IPTC caption.- Returns:
- the IPTC caption
-
getIptcHeadline
String getIptcHeadline()
Returns the IPTC headline.- Returns:
- the IPTC headline
-
getIptcKeywords
List<String> getIptcKeywords()
Returns the IPTC keywords.- Returns:
- the IPTC keywords
-
getIptcObjectName
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
-
-