Class RemoteEntry
java.lang.Object
org.openstreetmap.josm.gui.layer.geoimage.RemoteEntry
- All Implemented Interfaces:
IImageEntry<RemoteEntry>,ImageMetadata
- Direct Known Subclasses:
ImageMarker.MarkerRemoteEntry
A remote image entry
- Since:
- 18592
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Doubleprivate ILatLonprivate Stringprivate Doubleprivate Stringprivate Instantprivate Doubleprivate Doubleprivate Doubleprivate Integerprivate Instantprivate final Supplier<RemoteEntry>private Integerprivate Integerprivate Instantprivate intprivate Stringprivate Stringprivate Stringprivate final Supplier<RemoteEntry>private final Supplier<RemoteEntry>private ILatLonprivate final Supplier<RemoteEntry>private Projectionsprivate Doubleprivate Stringprivate final URIprivate int -
Constructor Summary
ConstructorsConstructorDescriptionRemoteEntry(URI uri, Supplier<RemoteEntry> firstImage, Supplier<RemoteEntry> previousImage, Supplier<RemoteEntry> nextImage, Supplier<RemoteEntry> lastImage) Create a new remote entry -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a display name for this entry (shown in image viewer title bar)Returns the elevation value.Get the EXIF coordinatesReturn the GPS datum value.Return the GPS DOP value.Returns the Exif GPS Time value.Return the GPS processing method.Returns the image GPS track direction.Returns the image horizontal positionning error.Returns the image direction.Returns EXIF timeReturns EXIF orientationgetFile()Returns associated file.Get the first image for the data or sequenceReturn the GPS 2d/3d mode value.Return the GPS Differential mode value.Returns the GPS time value.intReturns height of the image this ImageMetadata represents.Get the URI for the imageGet the image input streamReturns the IPTC caption.Returns the IPTC headline.Returns the IPTC keywords.Returns the IPTC object name.Get the last image for the data or sequenceGet the last time the source was modified.Get what would be the next imagegetPos()Returns the position value.Get the previous imageGet the camera projection typegetSpeed()Returns the speed value.getTimeSourceInstant(TimeSource timeSource) Return the time value selected with the parameter.intgetWidth()Returns width of the image this ImageMetadata represents.booleanConvenient way to determine if this entry has a EXIF GPS time, without the cost of building a defensive copy.booleanConvenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.booleanConvenient way to determine if this entry has a GPS time, without the cost of building a defensive copy.inthashCode()voidselectImage(ImageViewerDialog imageViewerDialog, IImageEntry<?> entry) Select a specific imagevoidsetDisplayName(String text) Set the display name for this entryvoidsetElevation(Double elevation) Sets the elevation.voidsetExifCoor(ILatLon exifCoor) Sets the EXIF coordinatesvoidsetExifGpsDatum(String exifGpsDatum) Sets the GPS datum value.voidsetExifGpsDop(Double exifGpsDop) Sets the EXIF GPS DOP value.voidsetExifGpsProcMethod(String exifGpsProcMethod) Sets the GPS processing method.voidsetExifGpsTime(Instant exifGpsTime) Sets the EXIF GPS time.voidsetExifGpsTrack(Double exifGpsTrack) Sets the EXIF GPS track direction.voidsetExifHPosErr(Double exifHPosError) Sets the EXIF horizontal positioning error.voidsetExifImgDir(Double exifDir) Sets the EXIF directionvoidsetExifOrientation(Integer exifOrientation) Sets EXIF orientation.voidsetExifTime(Instant exifTime) Sets EXIF time.voidsetGps2d3dMode(Integer gps2d3dMode) Sets the GPS 2d/3d mode.voidsetGpsDiffMode(Integer gpsDiffMode) Sets the GPS Differential mode.voidsetGpsTime(Instant gpsTime) Sets the GPS time.voidsetHeight(int height) Sets the height of this ImageEntry.voidsetIptcCaption(String iptcCaption) Sets the IPTC caption.voidsetIptcHeadline(String iptcHeadline) Sets the IPTC headline.voidsetIptcKeywords(List<String> iptcKeywords) Sets the IPTC keywords.voidsetIptcObjectName(String iptcObjectName) Sets the IPTC object name.voidSets the position.voidsetProjectionType(Projections newProjection) Set the new projection typevoidSets the speed.voidsetWidth(int width) Sets the width of this ImageEntry.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.data.imagery.street_level.IImageEntry
delete, isDeleteSupported, isRemoveSupported, read, remove, selectFirstImage, selectLastImage, selectNextImage, selectPreviousImageMethods inherited from interface org.openstreetmap.josm.gui.layer.geoimage.ImageMetadata
extractExif
-
Field Details
-
uri
-
firstImage
-
nextImage
-
previousImage
-
lastImage
-
width
-
height
-
pos
-
exifOrientation
-
elevation
-
gpsDiffMode
-
gps2d3dMode
-
exifHPosErr
-
exifGpsDop
-
exifGpsDatum
-
exifGpsProcMethod
-
speed
-
exifImgDir
-
exifGpsTrack
-
exifCoor
-
exifTime
-
exifGpsTime
-
gpsTime
-
iptcObjectName
-
iptcKeywords
-
iptcHeadline
-
iptcCaption
-
projection
-
title
-
-
Constructor Details
-
RemoteEntry
public RemoteEntry(URI uri, Supplier<RemoteEntry> firstImage, Supplier<RemoteEntry> previousImage, Supplier<RemoteEntry> nextImage, Supplier<RemoteEntry> lastImage) Create a new remote entry- Parameters:
uri- The URI to usefirstImage- first image suppliernextImage- next image supplierlastImage- last image supplierpreviousImage- previous image supplier
-
-
Method Details
-
getNextImage
Description copied from interface:IImageEntryGet what would be the next image- Specified by:
getNextImagein interfaceIImageEntry<RemoteEntry>- Returns:
- The next image
-
getPreviousImage
Description copied from interface:IImageEntryGet the previous image- Specified by:
getPreviousImagein interfaceIImageEntry<RemoteEntry>- Returns:
- The previous image
-
getFirstImage
Description copied from interface:IImageEntryGet the first image for the data or sequence- Specified by:
getFirstImagein interfaceIImageEntry<RemoteEntry>- Returns:
- The first image
-
getLastImage
Description copied from interface:IImageEntryGet the last image for the data or sequence- Specified by:
getLastImagein interfaceIImageEntry<RemoteEntry>- Returns:
- The last image
-
getDisplayName
Description copied from interface:IImageEntryReturns a display name for this entry (shown in image viewer title bar)- Specified by:
getDisplayNamein interfaceIImageEntry<RemoteEntry>- Specified by:
getDisplayNamein interfaceImageMetadata- Returns:
- a display name for this entry
-
setWidth
Description copied from interface:IImageEntrySets the width of this ImageEntry.- Specified by:
setWidthin interfaceIImageEntry<RemoteEntry>- Specified by:
setWidthin interfaceImageMetadata- Parameters:
width- set the width of this ImageEntry
-
setHeight
Description copied from interface:IImageEntrySets the height of this ImageEntry.- Specified by:
setHeightin interfaceIImageEntry<RemoteEntry>- Specified by:
setHeightin interfaceImageMetadata- Parameters:
height- set the height of this ImageEntry
-
setPos
Description copied from interface:ImageMetadataSets the position.- Specified by:
setPosin interfaceImageMetadata- Parameters:
pos- position (will be cached)
-
setSpeed
Description copied from interface:ImageMetadataSets the speed.- Specified by:
setSpeedin interfaceImageMetadata- Parameters:
speed- speed
-
setGpsDiffMode
Description copied from interface:ImageMetadataSets the GPS Differential mode.- Specified by:
setGpsDiffModein interfaceImageMetadata- Parameters:
gpsDiffMode- GPS Differential mode- Since:
- 19387
-
setGps2d3dMode
Description copied from interface:ImageMetadataSets the GPS 2d/3d mode.- Specified by:
setGps2d3dModein interfaceImageMetadata- Parameters:
gps2d3dMode- GPS 2d/3d mode- Since:
- 19387
-
setExifGpsDatum
Description copied from interface:ImageMetadataSets the GPS datum value.- Specified by:
setExifGpsDatumin interfaceImageMetadata- Parameters:
exifGpsDatum- GPS datum- Since:
- 19387
-
setExifGpsProcMethod
Description copied from interface:ImageMetadataSets the GPS processing method.- Specified by:
setExifGpsProcMethodin interfaceImageMetadata- Parameters:
exifGpsProcMethod- GPS processing method- Since:
- 19387
-
setElevation
Description copied from interface:ImageMetadataSets the elevation.- Specified by:
setElevationin interfaceImageMetadata- Parameters:
elevation- elevation
-
setExifOrientation
Description copied from interface:ImageMetadataSets EXIF orientation.- Specified by:
setExifOrientationin interfaceImageMetadata- Parameters:
exifOrientation- EXIF orientation
-
setExifTime
Description copied from interface:ImageMetadataSets EXIF time.- Specified by:
setExifTimein interfaceImageMetadata- Parameters:
exifTime- EXIF time
-
setExifGpsTime
Description copied from interface:ImageMetadataSets the EXIF GPS time.- Specified by:
setExifGpsTimein interfaceImageMetadata- Parameters:
exifGpsTime- the EXIF GPS time
-
setGpsTime
Description copied from interface:ImageMetadataSets the GPS time.- Specified by:
setGpsTimein interfaceImageMetadata- Parameters:
gpsTime- the GPS time
-
setExifCoor
Description copied from interface:ImageMetadataSets the EXIF coordinates- Specified by:
setExifCoorin interfaceImageMetadata- Parameters:
exifCoor- The EXIF coordinates
-
setExifImgDir
Description copied from interface:ImageMetadataSets the EXIF direction- Specified by:
setExifImgDirin interfaceImageMetadata- Parameters:
exifDir- The direction
-
setExifGpsTrack
Description copied from interface:ImageMetadataSets the EXIF GPS track direction.- Specified by:
setExifGpsTrackin interfaceImageMetadata- Parameters:
exifGpsTrack- The GPS track direction- Since:
- 19387
-
setExifHPosErr
Description copied from interface:ImageMetadataSets the EXIF horizontal positioning error.- Specified by:
setExifHPosErrin interfaceImageMetadata- Parameters:
exifHPosError- the EXIF horizontal positionning error- Since:
- 19387
-
setExifGpsDop
Description copied from interface:ImageMetadataSets the EXIF GPS DOP value.- Specified by:
setExifGpsDopin interfaceImageMetadata- Parameters:
exifGpsDop- the EXIF GPS DOP value- Since:
- 19387
-
setIptcCaption
Description copied from interface:ImageMetadataSets the IPTC caption.- Specified by:
setIptcCaptionin interfaceImageMetadata- Parameters:
iptcCaption- the IPTC caption
-
setIptcHeadline
Description copied from interface:ImageMetadataSets the IPTC headline.- Specified by:
setIptcHeadlinein interfaceImageMetadata- Parameters:
iptcHeadline- the IPTC headline
-
setIptcKeywords
Description copied from interface:ImageMetadataSets the IPTC keywords.- Specified by:
setIptcKeywordsin interfaceImageMetadata- Parameters:
iptcKeywords- the IPTC keywords
-
setIptcObjectName
Description copied from interface:ImageMetadataSets the IPTC object name.- Specified by:
setIptcObjectNamein interfaceImageMetadata- Parameters:
iptcObjectName- the IPTC object name
-
getExifOrientation
Description copied from interface:ImageMetadataReturns EXIF orientation- Specified by:
getExifOrientationin interfaceImageMetadata- Returns:
- EXIF orientation
-
getFile
Description copied from interface:IImageEntryReturns associated file.- Specified by:
getFilein interfaceIImageEntry<RemoteEntry>- Returns:
- associated file
-
getImageURI
Description copied from interface:IImageEntryGet the URI for the image- Specified by:
getImageURIin interfaceIImageEntry<RemoteEntry>- Specified by:
getImageURIin interfaceImageMetadata- Returns:
- The image URI
-
getWidth
Description copied from interface:ImageMetadataReturns width of the image this ImageMetadata represents.- Specified by:
getWidthin interfaceImageMetadata- Returns:
- width of the image this ImageMetadata represents
-
getHeight
Description copied from interface:ImageMetadataReturns height of the image this ImageMetadata represents.- Specified by:
getHeightin interfaceImageMetadata- Returns:
- height of the image this ImageMetadata represents
-
getPos
Description copied from interface:IImageEntryReturns the position value. The position value from the temporary copy is returned if that copy exists.- Specified by:
getPosin interfaceIImageEntry<RemoteEntry>- Specified by:
getPosin interfaceImageMetadata- Returns:
- the position value
-
getSpeed
Description copied from interface:IImageEntryReturns the speed value. The speed value from the temporary copy is returned if that copy exists.- Specified by:
getSpeedin interfaceIImageEntry<RemoteEntry>- Specified by:
getSpeedin interfaceImageMetadata- Returns:
- the speed value
-
getElevation
Description copied from interface:IImageEntryReturns the elevation value. The elevation value from the temporary copy is returned if that copy exists.- Specified by:
getElevationin interfaceIImageEntry<RemoteEntry>- Specified by:
getElevationin interfaceImageMetadata- Returns:
- the elevation value
-
getGpsDiffMode
Description copied from interface:IImageEntryReturn the GPS Differential mode value. The differential mode value from the temporary copy is returned if that copy exists.- Specified by:
getGpsDiffModein interfaceIImageEntry<RemoteEntry>- Specified by:
getGpsDiffModein interfaceImageMetadata- Returns:
- the fix mode value
- Since:
- 19387
-
getGps2d3dMode
Description copied from interface:IImageEntryReturn the GPS 2d/3d mode value. The 2d/3d mode value from the temporary copy is returned if that copy exists.- Specified by:
getGps2d3dModein interfaceIImageEntry<RemoteEntry>- Specified by:
getGps2d3dModein interfaceImageMetadata- Returns:
- the 2d/3d mode value
- Since:
- 19387
-
getExifGpsDatum
Description copied from interface:IImageEntryReturn the GPS datum value. The GPS datum value from the temporary copy is return if that copy exists.- Specified by:
getExifGpsDatumin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifGpsDatumin interfaceImageMetadata- Returns:
- the GPS datum value
- Since:
- 19387
-
getExifGpsProcMethod
Description copied from interface:IImageEntryReturn the GPS processing method. The processing method value from the temporary copy is return if that copy exists.- Specified by:
getExifGpsProcMethodin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifGpsProcMethodin interfaceImageMetadata- Returns:
- the GPS processing method
- Since:
- 19387
-
getExifImgDir
Description copied from interface:IImageEntryReturns the image direction. The image direction from the temporary copy is returned if that copy exists.- Specified by:
getExifImgDirin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifImgDirin interfaceImageMetadata- Returns:
- The image camera angle
- Since:
- 19387
-
getExifGpsTrack
Description copied from interface:IImageEntryReturns the image GPS track direction. The GPS track direction from the temporary copy is returned if that copy exists.- Specified by:
getExifGpsTrackin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifGpsTrackin interfaceImageMetadata- Returns:
- the image GPS track direction angle
- Since:
- 19387
-
getExifHPosErr
Description copied from interface:IImageEntryReturns the image horizontal positionning error. The image positionning error from the temporary copy is returned if that copy exists.- Specified by:
getExifHPosErrin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifHPosErrin interfaceImageMetadata- Returns:
- the image horizontal positionning error
- Since:
- 19387
-
getExifGpsDop
Description copied from interface:IImageEntryReturn the GPS DOP value. The GPS DOP value from the temporary copy is return if that copy exists.- Specified by:
getExifGpsDopin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifGpsDopin interfaceImageMetadata- Returns:
- the GPS DOP value
- Since:
- 19387
-
getLastModified
Description copied from interface:ImageMetadataGet the last time the source was modified.- Specified by:
getLastModifiedin interfaceImageMetadata- Returns:
- The last time the source was modified
-
hasExifTime
Description copied from interface:IImageEntryConvenient way to determine if this entry has a EXIF time, without the cost of building a defensive copy.- Specified by:
hasExifTimein interfaceIImageEntry<RemoteEntry>- Specified by:
hasExifTimein interfaceImageMetadata- Returns:
trueif this entry has a EXIF time
-
getTimeSourceInstant
Description copied from interface:ImageMetadataReturn the time value selected with the parameter.- Specified by:
getTimeSourceInstantin interfaceImageMetadata- Parameters:
timeSource- the wanted time value, exifCamTime or exifGpsTime- Returns:
- exifInstant or exifGpsInstant value
-
getExifGpsInstant
Description copied from interface:IImageEntryReturns the Exif GPS Time value. The Exif GPS time value from the temporary copy is returned if that copy exists.- Specified by:
getExifGpsInstantin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifGpsInstantin interfaceImageMetadata- Returns:
- the Exif GPS time value
-
hasExifGpsTime
Description copied from interface:ImageMetadataConvenient way to determine if this entry has a EXIF GPS time, without the cost of building a defensive copy.- Specified by:
hasExifGpsTimein interfaceImageMetadata- Returns:
trueif this entry has a EXIF GPS time
-
getExifCoor
Description copied from interface:ImageMetadataGet the EXIF coordinates- Specified by:
getExifCoorin interfaceImageMetadata- Returns:
- The location of the image
-
getExifInstant
Description copied from interface:IImageEntryReturns EXIF time- Specified by:
getExifInstantin interfaceIImageEntry<RemoteEntry>- Specified by:
getExifInstantin interfaceImageMetadata- Returns:
- EXIF time
-
hasGpsTime
Description copied from interface:IImageEntryConvenient way to determine if this entry has a GPS time, without the cost of building a defensive copy.- Specified by:
hasGpsTimein interfaceIImageEntry<RemoteEntry>- Specified by:
hasGpsTimein interfaceImageMetadata- Returns:
trueif this entry has a GPS time
-
getGpsInstant
Description copied from interface:IImageEntryReturns the GPS time value. The GPS time value from the temporary copy is returned if that copy exists.- Specified by:
getGpsInstantin interfaceIImageEntry<RemoteEntry>- Specified by:
getGpsInstantin interfaceImageMetadata- Returns:
- the GPS time value
-
getIptcCaption
Description copied from interface:IImageEntryReturns the IPTC caption.- Specified by:
getIptcCaptionin interfaceIImageEntry<RemoteEntry>- Specified by:
getIptcCaptionin interfaceImageMetadata- Returns:
- the IPTC caption
-
getIptcHeadline
Description copied from interface:IImageEntryReturns the IPTC headline.- Specified by:
getIptcHeadlinein interfaceIImageEntry<RemoteEntry>- Specified by:
getIptcHeadlinein interfaceImageMetadata- Returns:
- the IPTC headline
-
getIptcKeywords
Description copied from interface:IImageEntryReturns the IPTC keywords.- Specified by:
getIptcKeywordsin interfaceIImageEntry<RemoteEntry>- Specified by:
getIptcKeywordsin interfaceImageMetadata- Returns:
- the IPTC keywords
-
getIptcObjectName
Description copied from interface:IImageEntryReturns the IPTC object name.- Specified by:
getIptcObjectNamein interfaceIImageEntry<RemoteEntry>- Specified by:
getIptcObjectNamein interfaceImageMetadata- Returns:
- the IPTC object name
-
getProjectionType
Description copied from interface:IImageEntryGet the camera projection type- Specified by:
getProjectionTypein interfaceIImageEntry<RemoteEntry>- Specified by:
getProjectionTypein interfaceImageMetadata- Returns:
- the camera projection type
-
getInputStream
Description copied from interface:ImageMetadataGet the image input stream- Specified by:
getInputStreamin interfaceImageMetadata- Returns:
- The input stream of the image
- Throws:
IOException- If something happens during image read. See implementation for details.
-
selectImage
Description copied from interface:IImageEntrySelect a specific image- Specified by:
selectImagein interfaceIImageEntry<RemoteEntry>- Parameters:
imageViewerDialog- The image viewer to updateentry- The image to select
-
setProjectionType
Description copied from interface:ImageMetadataSet the new projection type- Specified by:
setProjectionTypein interfaceImageMetadata- Parameters:
newProjection- The new type
-
setDisplayName
Set the display name for this entry- Parameters:
text- The display name
-
hashCode
-
equals
-