Class CLocation

java.lang.Object
eu.hansolo.toolboxfx.geom.Location
eu.hansolo.fx.countries.tools.CLocation

public class CLocation extends eu.hansolo.toolboxfx.geom.Location
  • Property Summary

    Properties inherited from class eu.hansolo.toolboxfx.geom.Location

    fill, stroke
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    CLocation(double latitude, double longitude)
     
    CLocation(double latitude, double longitude, double altitude, String name)
     
    CLocation(double latitude, double longitude, double altitude, Instant timestamp, String name)
     
    CLocation(double latitude, double longitude, double altitude, Instant timestamp, String name, String info, javafx.scene.paint.Color fill, javafx.scene.paint.Color stroke)
     
    CLocation(double latitude, double longitude, String name)
     
    CLocation(double latitude, double longitude, String name, String info)
     
    CLocation(double latitude, double longitude, String name, String info, javafx.scene.paint.Color fill)
     
    CLocation(double latitude, double longitude, String name, javafx.scene.paint.Color fill)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEvtObserver(eu.hansolo.toolbox.evt.EvtObserver<CountryEvt<CLocation>> observer)
     
    void
     
    static CLocation
    fromPoi(eu.hansolo.toolboxfx.geom.Poi poi)
     
     
     
    void
    removeEvtObserver(eu.hansolo.toolbox.evt.EvtObserver<CountryEvt<CLocation>> observer)
     
    void
    set(double latitude, double longitude)
     
    void
    set(double latitude, double longitude, double altitude, Instant timestamp)
     
    void
    set(double latitude, double longitude, double altitude, Instant timestamp, String info)
     
    void
    set(CLocation location)
     
    void
     
    void
     
    void
     
    void
    setOnEvt(eu.hansolo.toolbox.evt.EvtObserver<CountryEvt<CLocation>> observer)
     
    eu.hansolo.toolboxfx.geom.Poi
     
    void
    update(double latitude, double longitude)
     

    Methods inherited from class eu.hansolo.toolboxfx.geom.Location

    addLocationObserver, calcBearingInDegree, calcDistanceInKilometer, calcDistanceInMeter, calcDistanceInMeter, dispose, equals, fillProperty, fireLocationEvent, getAccuracy, getAltitude, getAltitudeDifferenceInMeter, getAsPoint, getBearingTo, getBearingTo, getCardinalDirectionFromBearing, getCopy, getDistanceTo, getFill, getId, getInfo, getLatitude, getLocalDateTime, getLocaleDateTime, getLongitude, getMouseEnterHandler, getMouseExitHandler, getMousePressHandler, getMouseReleaseHandler, getName, getStroke, getTimestamp, getTimestampInSeconds, getZoomLevel, hashCode, isWithinRangeOf, isZero, removeAllObservers, removeLocationObserver, set, set, setAccuracy, setAltitude, setFill, setInfo, setLatitude, setLongitude, setMouseEnterHandler, setMouseExitHandler, setMousePressHandler, setMouseReleaseHandler, setName, setStroke, setTimestamp, setZoomLevel, strokeProperty, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CLocation

      public CLocation()
    • CLocation

      public CLocation(double latitude, double longitude)
    • CLocation

      public CLocation(double latitude, double longitude, String name)
    • CLocation

      public CLocation(double latitude, double longitude, String name, javafx.scene.paint.Color fill)
    • CLocation

      public CLocation(double latitude, double longitude, String name, String info)
    • CLocation

      public CLocation(double latitude, double longitude, String name, String info, javafx.scene.paint.Color fill)
    • CLocation

      public CLocation(double latitude, double longitude, double altitude, String name)
    • CLocation

      public CLocation(double latitude, double longitude, double altitude, Instant timestamp, String name)
    • CLocation

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

    • getCountry

      public Optional<Country> getCountry()
    • setCountry

      public void setCountry(Country country)
    • setCountry

      public void setCountry(Optional<Country> country)
    • getConnectionPartType

      public ConnectionPartType getConnectionPartType()
    • setConnectionPartType

      public void setConnectionPartType(ConnectionPartType connectionPartType)
    • update

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

      public void set(double latitude, double longitude)
      Overrides:
      set in class eu.hansolo.toolboxfx.geom.Location
    • set

      public void set(double latitude, double longitude, double altitude, Instant timestamp)
      Overrides:
      set in class eu.hansolo.toolboxfx.geom.Location
    • set

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

      public void set(CLocation location)
    • setOnEvt

      public void setOnEvt(eu.hansolo.toolbox.evt.EvtObserver<CountryEvt<CLocation>> observer)
    • addEvtObserver

      public void addEvtObserver(eu.hansolo.toolbox.evt.EvtObserver<CountryEvt<CLocation>> observer)
    • removeEvtObserver

      public void removeEvtObserver(eu.hansolo.toolbox.evt.EvtObserver<CountryEvt<CLocation>> observer)
    • fireEvt

      public void fireEvt(CountryEvt<CLocation> evt)
    • toPoi

      public eu.hansolo.toolboxfx.geom.Poi toPoi()
    • fromPoi

      public static CLocation fromPoi(eu.hansolo.toolboxfx.geom.Poi poi)