public class

MapPlotterForProperty

extends Object
java.lang.Object
   ↳ com.mapsted.map.position.MapPlotterForProperty

Class Overview

Class for drawing properties on the map

Summary

Public Constructors
MapPlotterForProperty(MainMapFragment mainMapFragment, Context context, MapApi mapApi)
Method to set up property plotter
Public Methods
boolean hasSetup()
Method to check if property plotter is set up or not.
boolean isPropertyPlotted(int propertyId)
Method to draw a property on a map.
void onDestroy()
synchronized void onPositionChanged(Position position)
void plot(int propertyId, MapApi.PlotListener listener)
void removePlottedProperty(int propertyId)
Method to remove the plotted property.
final void setVectorElementListener(VectorElementEventListener listener)
Method to set up vector element listener.
final void setVectorTileClickedListener(IMapstedVectorTileClicked listener)
Method to set up vector tile click listener
synchronized void updateMapToNewPropertySet(Set<Integer> newPropertyList)
Method to update the map with a new property set
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MapPlotterForProperty (MainMapFragment mainMapFragment, Context context, MapApi mapApi)

Method to set up property plotter

Parameters
mainMapFragment fragment that shows plotted property.
context context of the application.

Public Methods

public boolean hasSetup ()

Method to check if property plotter is set up or not.

Returns
  • boolean value that indicates if property plotter setup yet or not.

public boolean isPropertyPlotted (int propertyId)

Method to draw a property on a map. It will download and deserialize property data if needed (on a background thread).

NOTE: if not successful, a recursive task will recursively try to draw property.

Parameters
propertyId the id of which property should be drawn.

public void onDestroy ()

public synchronized void onPositionChanged (Position position)

public void plot (int propertyId, MapApi.PlotListener listener)

public void removePlottedProperty (int propertyId)

Method to remove the plotted property.

Parameters
propertyId the id of property that needs to be removed.

public final void setVectorElementListener (VectorElementEventListener listener)

Method to set up vector element listener.

Parameters
listener VectorElementEventListener Listens to users clicks on the map.

public final void setVectorTileClickedListener (IMapstedVectorTileClicked listener)

Method to set up vector tile click listener

Parameters
listener the vector tile click listener

public synchronized void updateMapToNewPropertySet (Set<Integer> newPropertyList)

Method to update the map with a new property set

Parameters
newPropertyList The new list of properties to be drawn.