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 AerisMarker
getForecastMarkerFromData(com.aerisweather.aeris.model.TropicalCycloneForecast forecast, com.aerisweather.aeris.model.AerisLocation loc)
AerisMarker
getMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data)
AerisMarker
getMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data, com.aerisweather.aeris.model.TropicalCycloneTrack track)
void
handleResponse(com.aerisweather.aeris.model.AerisResponse response)
Handles the response from the server.void
onResult(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:AerisPointHandler
Handles the response from the server.- Overrides:
handleResponse
in 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:
onResult
in interfacecom.aerisweather.aeris.communication.AerisCallback
- Overrides:
onResult
in classAerisPointHandler
-
-