Class 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.
    • 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 interface com.aerisweather.aeris.communication.AerisCallback
        Overrides:
        onResult in class AerisPointHandler
      • handleResponse

        public void handleResponse​(com.aerisweather.aeris.model.AerisResponse response)
        Description copied from class: AerisPointHandler
        Handles the response from the server.
        Overrides:
        handleResponse in class AerisPointHandler
        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)