public class StreetsideImportedImage extends StreetsideAbstractImage
| Constructor and Description |
|---|
StreetsideImportedImage(String id,
LatLon latLon,
double ca,
File file)
Creates a new StreetsideImportedImage object using as date the current date.
|
StreetsideImportedImage(String id,
LatLon latLon,
double he,
File file,
long ca) |
StreetsideImportedImage(String id,
LatLon latLon,
double ca,
File file,
String datetimeOriginal)
Main constructor of the class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StreetsideAbstractImage image) |
static StreetsideImportedImage |
createInstance(ImageEntry geoImage)
Constructs a new image from an image entry of a
GeoImageLayer. |
boolean |
equals(Object obj) |
File |
getFile()
Returns the
File object where the picture is located. |
BufferedImage |
getImage()
Returns the pictures of the file.
|
int |
hashCode() |
private static long |
parseTimestampElseCurrentTime(String timestamp) |
getCd, getDate, getDate, getHe, getId, getLatLon, getMovingHe, getMovingLatLon, getSequence, getTempHe, getTempLatLon, isModified, isVisible, move, next, previous, setCd, setHe, setId, setLatLon, setSequence, setVisible, stopMoving, turnpublic StreetsideImportedImage(String id, LatLon latLon, double ca, File file)
id - The Streetside image idlatLon - The latitude and longitude where the picture was taken.ca - Direction of the picture (0 means north).file - The file containing the picture.public StreetsideImportedImage(String id, LatLon latLon, double ca, File file, String datetimeOriginal)
id - The Streetside image idlatLon - Latitude and Longitude where the picture was taken.ca - Direction of the picture (0 means north),file - The file containing the picture.datetimeOriginal - The date the picture was taken.public StreetsideImportedImage(String id, LatLon latLon, double he, File file, long ca)
public static StreetsideImportedImage createInstance(ImageEntry geoImage)
GeoImageLayer.geoImage - the ImageEntry, from which the corresponding fields are takenprivate static long parseTimestampElseCurrentTime(String timestamp)
public BufferedImage getImage() throws IOException
BufferedImage object containing the picture, or null if
the File given in the constructor was null.IOException - If the file parameter of the object isn't an image.public File getFile()
File object where the picture is located.File object where the picture is located.public int compareTo(StreetsideAbstractImage image)