Class TropicalCycloneErrorConeHandler
- java.lang.Object
-
- com.aerisweather.aeris.maps.handlers.AerisPointHandler
-
- com.aerisweather.aeris.maps.handlers.TropicalCycloneErrorConeHandler
-
- All Implemented Interfaces:
com.aerisweather.aeris.communication.AerisCallback
public class TropicalCycloneErrorConeHandler extends AerisPointHandler
Response handler for handling the error cone polygon for a tropical cyclone response from the Aeris servers and passing the polygon data to the AerisMapView.
-
-
Field Summary
-
Fields inherited from class com.aerisweather.aeris.maps.handlers.AerisPointHandler
mapView, pointData
-
-
Constructor Summary
Constructors Constructor Description TropicalCycloneErrorConeHandler(AerisMapView mapView)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColor(String type, boolean fill)intgetFillColor(String type)AerisMarkergetMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data)intgetStrokeColor(String type)floatgetStrokeWidth(String type)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
-
TropicalCycloneErrorConeHandler
public TropicalCycloneErrorConeHandler(AerisMapView mapView)
Constructor- Parameters:
mapView- AerisMapView to use.
-
-
Method Detail
-
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
-
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
-
getFillColor
public int getFillColor(String type)
-
getStrokeColor
public int getStrokeColor(String type)
-
getColor
public int getColor(String type, boolean fill)
-
getStrokeWidth
public float getStrokeWidth(String type)
-
getMarkerFromData
public AerisMarker getMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data)
-
-