Class TropicalPointHandler
- java.lang.Object
-
- com.aerisweather.aeris.maps.handlers.AerisPointHandler
-
- com.aerisweather.aeris.maps.handlers.TropicalPointHandler
-
- All Implemented Interfaces:
com.aerisweather.aeris.communication.AerisCallback
public class TropicalPointHandler extends AerisPointHandler
Response handler for handling fires query responses from the Aeris servers and passing the fire point data to the AerisMapView.
-
-
Field Summary
-
Fields inherited from class com.aerisweather.aeris.maps.handlers.AerisPointHandler
mapView, pointData
-
-
Constructor Summary
Constructors Constructor Description TropicalPointHandler(AerisMapView aerisMapView)Create an instance for the AerisMapView to pass the tropical_cyclones points to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AerisMarkergetForecastMarkerFromData(com.aerisweather.aeris.model.TropicalCycloneForecast forecast, com.aerisweather.aeris.model.AerisLocation loc)AerisMarkergetMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data)AerisMarkergetMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data, com.aerisweather.aeris.model.TropicalCycloneTrack track)voidhandleResponse(com.aerisweather.aeris.model.AerisResponse response)Handles the response from the server.voidonResult(com.aerisweather.aeris.communication.EndpointType endpoint, com.aerisweather.aeris.model.AerisResponse response)-
Methods inherited from class com.aerisweather.aeris.maps.handlers.AerisPointHandler
getSnippet
-
-
-
-
Constructor Detail
-
TropicalPointHandler
public TropicalPointHandler(AerisMapView aerisMapView)
Create an instance for the AerisMapView to pass the tropical_cyclones points to.- Parameters:
aerisMapView- AerisMapView to use.
-
-
Method Detail
-
handleResponse
public void handleResponse(com.aerisweather.aeris.model.AerisResponse response)
Description copied from class:AerisPointHandlerHandles the response from the server.- Overrides:
handleResponsein classAerisPointHandler- Parameters:
response- response object
-
getMarkerFromData
public AerisMarker getMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data)
-
getMarkerFromData
public AerisMarker getMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data, com.aerisweather.aeris.model.TropicalCycloneTrack track)
-
getForecastMarkerFromData
public AerisMarker getForecastMarkerFromData(com.aerisweather.aeris.model.TropicalCycloneForecast forecast, com.aerisweather.aeris.model.AerisLocation loc)
-
onResult
public void onResult(com.aerisweather.aeris.communication.EndpointType endpoint, com.aerisweather.aeris.model.AerisResponse response)- Specified by:
onResultin interfacecom.aerisweather.aeris.communication.AerisCallback- Overrides:
onResultin classAerisPointHandler
-
-