public abstract class StreetsideAbstractImage extends java.lang.Object implements java.lang.Comparable<StreetsideAbstractImage>
StreetsideImportedImage
and StreetsideImage
.Modifier and Type | Method and Description |
---|---|
long |
getCd()
Returns the Epoch time when the image was captured.
|
java.lang.String |
getDate()
Returns the date the picture was taken in DMY format.
|
java.lang.String |
getDate(java.lang.String format)
Returns the date the picture was taken in the given format.
|
double |
getHe()
Returns the original direction towards the image has been taken.
|
java.lang.String |
getId() |
org.openstreetmap.josm.data.coor.LatLon |
getLatLon()
Returns a LatLon object containing the original coordinates of the object.
|
double |
getMovingHe()
Returns the direction towards the image has been taken.
|
org.openstreetmap.josm.data.coor.LatLon |
getMovingLatLon()
Returns a LatLon object containing the current coordinates of the object.
|
org.openstreetmap.josm.plugins.streetside.StreetsideSequence |
getSequence()
Returns the sequence which contains this image.
|
double |
getTempHe()
Returns the last fixed direction of the object.
|
org.openstreetmap.josm.data.coor.LatLon |
getTempLatLon()
Returns the last fixed coordinates of the object.
|
boolean |
isModified()
Returns whether the object has been modified or not.
|
boolean |
isVisible()
Returns whether the image is visible on the map or not.
|
void |
move(double x,
double y)
Moves the image temporally to another position
|
StreetsideAbstractImage |
next()
If the StreetsideImage belongs to a StreetsideSequence, returns the next
image in the sequence.
|
StreetsideAbstractImage |
previous()
If the StreetsideImage belongs to a StreetsideSequence, returns the previous
image in the sequence.
|
void |
setCd(long cd)
Sets the Epoch time when the picture was captured.
|
void |
setHe(double he) |
void |
setId(java.lang.String id) |
void |
setLatLon(org.openstreetmap.josm.data.coor.LatLon latLon) |
void |
setSequence(org.openstreetmap.josm.plugins.streetside.StreetsideSequence sequence)
Sets the StreetsideSequence object which contains the StreetsideImage.
|
void |
setVisible(boolean visible)
Set's whether the image should be visible on the map or not.
|
void |
stopMoving()
Called when the mouse button is released, meaning that the picture has
stopped being dragged, so the temporal values are saved.
|
void |
turn(double ca)
Turns the image direction.
|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- the id to setpublic double getHe()
public long getCd()
public java.lang.String getDate()
public java.lang.String getDate(java.lang.String format)
format
- Format of the date. See SimpleDateFormat
.java.lang.NullPointerException
- if parameter format is null
public org.openstreetmap.josm.data.coor.LatLon getLatLon()
public double getMovingHe()
public org.openstreetmap.josm.data.coor.LatLon getMovingLatLon()
public org.openstreetmap.josm.plugins.streetside.StreetsideSequence getSequence()
public double getTempHe()
public org.openstreetmap.josm.data.coor.LatLon getTempLatLon()
public boolean isModified()
public boolean isVisible()
public void move(double x, double y)
x
- The movement of the image in longitude units.y
- The movement of the image in latitude units.public StreetsideAbstractImage next()
public StreetsideAbstractImage previous()
public void setHe(double he)
public void setCd(long cd)
cd
- Epoch time when the image was captured.public void setLatLon(org.openstreetmap.josm.data.coor.LatLon latLon)
public void setSequence(org.openstreetmap.josm.plugins.streetside.StreetsideSequence sequence)
sequence
- The StreetsideSequence that contains the StreetsideImage.java.lang.IllegalArgumentException
- if the image is not already part of the
StreetsideSequence
. Call
StreetsideSequence.add(StreetsideAbstractImage)
first.public void setVisible(boolean visible)
visible
- true if the image is set to be visible; false otherwise.public void stopMoving()
public void turn(double ca)
ca
- The angle the image is moving.