-
- 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
-
Method Summary
Modifier and Type Method Description abstract ShapesController.Id
add(Shape.Collection collection)
Add a shape collection to the MapView abstract Unit
remove(ShapesController.Id collectionId)
Remove a shape collection from the MapView abstract Unit
setAlphaValue(ShapesController.Id collectionId, Float alpha)
Set the alpha value of a shape collection abstract Unit
setViewValue(String name, Float value)
Set custom value for a shape, matching with the TSS key-value field. abstract Unit
setViewValue(String name, String value)
abstract Unit
setViewValue(String name, @ColorInt() Integer value)
-
-
Method Detail
-
add
abstract ShapesController.Id add(Shape.Collection collection)
Add a shape collection to the MapView
- Parameters:
collection
- the collection of shapes to be added
-
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 collectionalpha
- 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)
-
setViewValue
abstract Unit setViewValue(String name, String value)
-
setViewValue
abstract Unit setViewValue(String name, @ColorInt() Integer value)
-
-
-
-