Search in sources :

Example 1 with LocationEvent

use of eu.hansolo.tilesfx.events.LocationEvent in project tilesfx by HanSolo.

the class Location method setLatitude.

public void setLatitude(final double LATITUDE) {
    latitude = LATITUDE;
    fireLocationEvent(new LocationEvent(Location.this));
}
Also used : LocationEvent(eu.hansolo.tilesfx.events.LocationEvent)

Example 2 with LocationEvent

use of eu.hansolo.tilesfx.events.LocationEvent in project tilesfx by HanSolo.

the class Location method setZoomLevel.

public void setZoomLevel(final int LEVEL) {
    zoomLevel = clamp(0, 17, LEVEL);
    fireLocationEvent(new LocationEvent(Location.this));
}
Also used : LocationEvent(eu.hansolo.tilesfx.events.LocationEvent)

Example 3 with LocationEvent

use of eu.hansolo.tilesfx.events.LocationEvent in project tilesfx by HanSolo.

the class Location method set.

public void set(final Location LOCATION) {
    name = LOCATION.getName();
    latitude = LOCATION.getLatitude();
    longitude = LOCATION.getLongitude();
    altitude = LOCATION.getAltitude();
    timestamp = LOCATION.getTimestamp();
    info = LOCATION.info;
    color = LOCATION.getColor();
    zoomLevel = LOCATION.getZoomLevel();
    fireLocationEvent(new LocationEvent(Location.this));
}
Also used : LocationEvent(eu.hansolo.tilesfx.events.LocationEvent)

Example 4 with LocationEvent

use of eu.hansolo.tilesfx.events.LocationEvent in project tilesfx by HanSolo.

the class Location method setAltitude.

public void setAltitude(final double ALTITUDE) {
    altitude = ALTITUDE;
    fireLocationEvent(new LocationEvent(Location.this));
}
Also used : LocationEvent(eu.hansolo.tilesfx.events.LocationEvent)

Example 5 with LocationEvent

use of eu.hansolo.tilesfx.events.LocationEvent in project tilesfx by HanSolo.

the class Location method set.

public void set(final double LATITUDE, final double LONGITUDE, final double ALTITUDE, final Instant TIMESTAMP) {
    latitude = LATITUDE;
    longitude = LONGITUDE;
    altitude = ALTITUDE;
    timestamp = TIMESTAMP;
    fireLocationEvent(new LocationEvent(Location.this));
}
Also used : LocationEvent(eu.hansolo.tilesfx.events.LocationEvent)

Aggregations

LocationEvent (eu.hansolo.tilesfx.events.LocationEvent)10 Tile (eu.hansolo.tilesfx.Tile)1 TextSize (eu.hansolo.tilesfx.Tile.TextSize)1 ChartData (eu.hansolo.tilesfx.chart.ChartData)1 TileEvent (eu.hansolo.tilesfx.events.TileEvent)1 EventType (eu.hansolo.tilesfx.events.TileEvent.EventType)1 Fonts (eu.hansolo.tilesfx.fonts.Fonts)1 Country (eu.hansolo.tilesfx.tools.Country)1 CountryPath (eu.hansolo.tilesfx.tools.CountryPath)1 Helper (eu.hansolo.tilesfx.tools.Helper)1 Helper.clamp (eu.hansolo.tilesfx.tools.Helper.clamp)1 Location (eu.hansolo.tilesfx.tools.Location)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Locale (java.util.Locale)1 Map (java.util.Map)1 FXCollections (javafx.collections.FXCollections)1 ListChangeListener (javafx.collections.ListChangeListener)1 ObservableMap (javafx.collections.ObservableMap)1 WeakListChangeListener (javafx.collections.WeakListChangeListener)1