Class WLeafletMap.Coordinate

java.lang.Object
eu.webtoolkit.jwt.WLeafletMap.Coordinate
Enclosing class:
WLeafletMap

public static class WLeafletMap.Coordinate
extends java.lang.Object
A geographical coordinate (latitude/longitude)
  • Constructor Summary

    Constructors
    Constructor Description
    Coordinate()
    Default constructor.
    Coordinate​(double latitude, double longitude)
    Create a coordinate (latitude, longitude)
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(WLeafletMap.Coordinate other)
    Equality comparison operator.
    double getLatitude()
    Get the latitude.
    double getLongitude()
    Get the longitude.
    void setLatitude​(double latitude)
    Set the latitude.
    void setLongitude​(double longitude)
    Set the longitude.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Coordinate

      public Coordinate()
      Default constructor.

      Constructs a coordinate with latitude and longitude set to 0.

    • Coordinate

      public Coordinate​(double latitude, double longitude)
      Create a coordinate (latitude, longitude)
  • Method Details

    • setLatitude

      public void setLatitude​(double latitude)
      Set the latitude.
    • getLatitude

      public double getLatitude()
      Get the latitude.
    • setLongitude

      public void setLongitude​(double longitude)
      Set the longitude.
    • getLongitude

      public double getLongitude()
      Get the longitude.
    • equals

      public boolean equals​(WLeafletMap.Coordinate other)
      Equality comparison operator.