Class Location

java.lang.Object
eu.hansolo.toolboxfx.geom.Location

public class Location extends Object
  • Property Details

    • fill

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> fillProperty
      See Also:
    • stroke

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> strokeProperty
      See Also:
  • Constructor Details

    • Location

      public Location()
    • Location

      public Location(double latitude, double longitude)
    • Location

      public Location(Instant timestamp, double latitude, double longitude, double altitude, double accuracy, String name, String info, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke)
  • Method Details

    • getId

      public String getId()
    • getTimestamp

      public Instant getTimestamp()
    • getTimestampInSeconds

      public long getTimestampInSeconds()
    • setTimestamp

      public void setTimestamp(Instant timestamp)
    • getLocaleDateTime

      public LocalDateTime getLocaleDateTime()
    • getLocalDateTime

      public LocalDateTime getLocalDateTime(ZoneId zoneId)
    • getLatitude

      public double getLatitude()
    • setLatitude

      public void setLatitude(double latitude)
    • getLongitude

      public double getLongitude()
    • setLongitude

      public void setLongitude(double longitude)
    • getAltitude

      public double getAltitude()
    • setAltitude

      public void setAltitude(double altitude)
    • getAccuracy

      public double getAccuracy()
    • setAccuracy

      public void setAccuracy(double accuracy)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getInfo

      public String getInfo()
    • setInfo

      public void setInfo(String info)
    • getFill

      public javafx.scene.paint.Color getFill()
      Gets the value of the property fill.
      Property description:
    • setFill

      public void setFill(javafx.scene.paint.Color fill)
      Sets the value of the property fill.
      Property description:
    • fillProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> fillProperty()
      See Also:
    • getStroke

      public javafx.scene.paint.Color getStroke()
      Gets the value of the property stroke.
      Property description:
    • setStroke

      public void setStroke(javafx.scene.paint.Color stroke)
      Sets the value of the property stroke.
      Property description:
    • strokeProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> strokeProperty()
      See Also:
    • getZoomLevel

      public int getZoomLevel()
    • setZoomLevel

      public void setZoomLevel(int level)
    • getAsPoint

      public Point getAsPoint()
    • set

      public void set(double latitude, double longitude)
    • set

      public void set(double latitude, double longitude, double altitude, Instant timestamp)
    • set

      public void set(double latitude, double longitude, double altitude, Instant timestamp, double accuracy, String info)
    • set

      public void set(Location location)
    • getDistanceTo

      public double getDistanceTo(Location location)
    • isWithinRangeOf

      public boolean isWithinRangeOf(Location location, double meters)
    • calcDistanceInMeter

      public static double calcDistanceInMeter(Location p1, Location p2)
    • calcDistanceInKilometer

      public static double calcDistanceInKilometer(Location p1, Location p2)
    • calcDistanceInMeter

      public static double calcDistanceInMeter(double lat1, double lon1, double lat2, double lon2)
    • getAltitudeDifferenceInMeter

      public double getAltitudeDifferenceInMeter(Location location)
    • getBearingTo

      public double getBearingTo(Location location)
    • getBearingTo

      public double getBearingTo(double latitude, double longitude)
    • isZero

      public boolean isZero()
    • calcBearingInDegree

      public double calcBearingInDegree(double lt1, double ln1, double lt2, double ln2)
    • getCardinalDirectionFromBearing

      public String getCardinalDirectionFromBearing(double brng)
    • getCopy

      public Location getCopy()
    • dispose

      public void dispose()
    • addLocationObserver

      public void addLocationObserver(eu.hansolo.toolbox.evt.EvtType<? extends eu.hansolo.toolbox.evt.Evt> type, eu.hansolo.toolbox.evt.EvtObserver<LocationChangeEvt> observer)
    • removeLocationObserver

      public void removeLocationObserver(eu.hansolo.toolbox.evt.EvtType<? extends eu.hansolo.toolbox.evt.Evt> type, eu.hansolo.toolbox.evt.EvtObserver<LocationChangeEvt> observer)
    • removeAllObservers

      public void removeAllObservers()
    • fireLocationEvent

      public void fireLocationEvent(LocationChangeEvt evt)
    • getMouseEnterHandler

      public javafx.event.EventHandler<javafx.scene.input.MouseEvent> getMouseEnterHandler()
    • setMouseEnterHandler

      public void setMouseEnterHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> handler)
    • getMousePressHandler

      public javafx.event.EventHandler<javafx.scene.input.MouseEvent> getMousePressHandler()
    • setMousePressHandler

      public void setMousePressHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> handler)
    • getMouseReleaseHandler

      public javafx.event.EventHandler<javafx.scene.input.MouseEvent> getMouseReleaseHandler()
    • setMouseReleaseHandler

      public void setMouseReleaseHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> handler)
    • getMouseExitHandler

      public javafx.event.EventHandler<javafx.scene.input.MouseEvent> getMouseExitHandler()
    • setMouseExitHandler

      public void setMouseExitHandler(javafx.event.EventHandler<javafx.scene.input.MouseEvent> handler)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object