org.wicketstuff.openlayers.api
Class LonLat

java.lang.Object
  extended by org.wicketstuff.openlayers.api.LonLat
All Implemented Interfaces:
Serializable, Value

public class LonLat
extends Object
implements Value

Represents an Open layers http://dev.openlayers.org/apidocs/files/OpenLayers/BaseTypes/LonLat-js.html

See Also:
Serialized Form

Constructor Summary
LonLat(double lng, double lat)
          Construct.
LonLat(com.vividsolutions.jts.geom.Point point)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getJSconstructor()
           
 double getLat()
           
 double getLng()
           
 com.vividsolutions.jts.geom.Point getPoint()
           
 int hashCode()
           
static LonLat parse(String value)
          (37.34068368469045, -122.48519897460936)
static LonLat parseWithNames(String value)
          (lon=37.34068368469045, lat=-122.48519897460936)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LonLat

public LonLat(double lng,
              double lat)
Construct.

Parameters:
lat -
lng -

LonLat

public LonLat(com.vividsolutions.jts.geom.Point point)
Method Detail

getLat

public double getLat()

getLng

public double getLng()

toString

public String toString()
Overrides:
toString in class Object

getJSconstructor

public String getJSconstructor()
Specified by:
getJSconstructor in interface Value
Returns:
A JavaScript constructor that represents this element.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getPoint

public com.vividsolutions.jts.geom.Point getPoint()

parse

public static LonLat parse(String value)
(37.34068368469045, -122.48519897460936)


parseWithNames

public static LonLat parseWithNames(String value)
(lon=37.34068368469045, lat=-122.48519897460936)



Copyright © 2008-2012. All Rights Reserved.