|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.Geo
public class Geo
Defines a set of geographical coordinates.
Examples:
Geo geo = new Geo(40.714623, -74.006605);
| Field Summary |
|---|
| Fields inherited from class biweekly.property.ICalProperty |
|---|
parameters |
| Constructor Summary | |
|---|---|
Geo(Double latitude,
Double longitude)
Creates a new geo property. |
|
| Method Summary | |
|---|---|
Double |
getLatitude()
Gets the latitude. |
Double |
getLongitude()
Gets the longitude. |
void |
setLatitude(Double latitude)
Sets the latitude. |
void |
setLongitude(Double longitude)
Sets the longitude. |
static double |
toDecimal(int degrees,
int minutes,
int seconds)
Converts a coordinate in the degrees-minutes-seconds format into its decimal equivalent. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the property for data consistency problems or deviations from the spec. |
| Methods inherited from class biweekly.property.ICalProperty |
|---|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Geo(Double latitude,
Double longitude)
latitude - the latitudelongitude - the longitude| Method Detail |
|---|
public Double getLatitude()
public void setLatitude(Double latitude)
latitude - the latitudepublic Double getLongitude()
public void setLongitude(Double longitude)
longitude - the longitude
public static double toDecimal(int degrees,
int minutes,
int seconds)
degrees - the degreesminutes - the minutesseconds - the seconds
protected void validate(List<ICalComponent> components,
List<String> warnings)
ICalProperty
validate in class ICalPropertycomponents - the hierarchy of components that the property belongs
towarnings - the list to add the warnings to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||