Class WikimediaCommonsEntry
- java.lang.Object
-
- org.openstreetmap.josm.data.gpx.GpxImageEntry
-
- org.openstreetmap.josm.gui.layer.geoimage.ImageEntry
-
- org.openstreetmap.josm.gui.layer.geoimage.WikimediaCommonsEntry
-
- All Implemented Interfaces:
java.lang.Comparable<GpxImageEntry>
,IImageEntry<ImageEntry>
,IQuadBucketType
,ImageMetadata
class WikimediaCommonsEntry extends ImageEntry
A geocoded image from Wikimedia Commons
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
title
-
Constructor Summary
Constructors Constructor Description WikimediaCommonsEntry(java.lang.String title, LatLon latLon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getDisplayName()
Returns a display name for this entryjava.net.URI
getImageURI()
Get the image locationprotected java.net.URL
getImageUrl()
int
hashCode()
java.lang.String
toString()
String representation.-
Methods inherited from class org.openstreetmap.josm.gui.layer.geoimage.ImageEntry
delete, getDataSet, getFirstImage, getLastImage, getNextImage, getPreviousImage, getThumbnail, hasThumbnail, isDeleteSupported, isRemoveSupported, loadThumbnail, read, remove, selectImage, setDataSet, setThumbnail, tmpUpdated
-
Methods inherited from class org.openstreetmap.josm.data.gpx.GpxImageEntry
applyTmp, asWayPoint, compareTo, createTmp, discardTmp, extractExif, flagNewGpsData, getBBox, getElevation, getExifCoor, getExifGpsDatum, getExifGpsDop, getExifGpsInstant, getExifGpsProcMethod, getExifGpsTrack, getExifHPosErr, getExifImgDir, getExifInstant, getExifOrientation, getFile, getGps2d3dMode, getGpsDiffMode, getGpsInstant, getHeight, getInputStream, getIptcCaption, getIptcHeadline, getIptcKeywords, getIptcObjectName, getLastModified, getPos, getProjectionType, getSpeed, getTmp, getWidth, hasExifGpsTime, hasExifTime, hasGpsTime, hasNewGpsData, isTagged, setElevation, setExifCoor, setExifCoor, setExifGpsDatum, setExifGpsDop, setExifGpsProcMethod, setExifGpsTime, setExifGpsTrack, setExifHPosErr, setExifImgDir, setExifOrientation, setExifTime, setFile, setGps2d3dMode, setGpsDiffMode, setGpsTime, setHeight, setIptcCaption, setIptcHeadline, setIptcKeywords, setIptcObjectName, setPos, setPos, setPos, setProjectionType, setSpeed, setWidth, unflagNewGpsData
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.data.imagery.street_level.IImageEntry
getElevation, getExifGpsDatum, getExifGpsDop, getExifGpsInstant, getExifGpsProcMethod, getExifGpsTrack, getExifHPosErr, getExifImgDir, getExifInstant, getFile, getGps2d3dMode, getGpsDiffMode, getGpsInstant, getIptcCaption, getIptcHeadline, getIptcKeywords, getIptcObjectName, getPos, getProjectionType, getSpeed, hasExifTime, hasGpsTime, selectFirstImage, selectLastImage, selectNextImage, selectPreviousImage, setHeight, setWidth
-
-
-
-
Field Detail
-
title
private final java.lang.String title
-
-
Constructor Detail
-
WikimediaCommonsEntry
WikimediaCommonsEntry(java.lang.String title, LatLon latLon)
-
-
Method Detail
-
getImageUrl
protected java.net.URL getImageUrl() throws java.net.MalformedURLException
- Overrides:
getImageUrl
in classImageEntry
- Throws:
java.net.MalformedURLException
-
getImageURI
public java.net.URI getImageURI()
Description copied from interface:ImageMetadata
Get the image location- Specified by:
getImageURI
in interfaceIImageEntry<ImageEntry>
- Specified by:
getImageURI
in interfaceImageMetadata
- Overrides:
getImageURI
in classGpxImageEntry
- Returns:
- The image location
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from class:GpxImageEntry
Returns a display name for this entry- Specified by:
getDisplayName
in interfaceIImageEntry<ImageEntry>
- Specified by:
getDisplayName
in interfaceImageMetadata
- Overrides:
getDisplayName
in classGpxImageEntry
- Returns:
- a display name for this entry
-
toString
public java.lang.String toString()
Description copied from class:GpxImageEntry
String representation. (only partial info)- Overrides:
toString
in classGpxImageEntry
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classImageEntry
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classImageEntry
-
-