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 int
getColor(String type, boolean fill)
int
getFillColor(String type)
AerisMarker
getMarkerFromData(com.aerisweather.aeris.model.AerisDataJSON data)
int
getStrokeColor(String type)
float
getStrokeWidth(String type)
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
-
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:
onResult
in interfacecom.aerisweather.aeris.communication.AerisCallback
- Overrides:
onResult
in classAerisPointHandler
-
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
-
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)
-
-