Package 

Interface ShapesController

  • All Implemented Interfaces:

    
    public interface ShapesController
    
                        

    Interface for managing API fed shapes Copyright reserved by telenav 2021.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class ShapesController.Id

      Id class to use as a unique identifier for processed shape collections

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • remove

         abstract Unit remove(ShapesController.Id collectionId)

        Remove a shape collection from the MapView

        Parameters:
        collectionId - the Id of the processed collection
      • setAlphaValue

         abstract Unit setAlphaValue(ShapesController.Id collectionId, Float alpha)

        Set the alpha value of a shape collection

        Parameters:
        collectionId - the Id of the processed collection
        alpha - the alpha value to render the shape collection.
      • setViewValue

         abstract Unit setViewValue(String name, Float value)

        Set custom value for a shape, matching with the TSS key-value field. This API is applicable only for an EV range outer polygon.

        Example: For this type of the object in TSS settings { ... overlay-color: $overlay-color; overlay-opacity: $overlay-opacity; }; The call to change values will look like this:

        shapesController.setViewValue("overlay-color", Color.RED) shapesController.setViewValue("overlay-opacity", 0.1f)