public class

MapRenderer

extends Object
java.lang.Object
   ↳ com.carto.renderers.MapRenderer

Class Overview

The map renderer component.

Summary

Public Methods
void captureRendering(RendererCaptureListener listener, boolean waitWhileUpdating)
Captures map rendering as a bitmap.
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
MapRendererListener getMapRendererListener()
Returns the map renderer listener.
ViewState getViewState()
Returns the current view state.
int hashCode()
Returns the hash value of this object.
void requestRedraw()
Requests the renderer to refresh the view.
void setMapRendererListener(MapRendererListener listener)
Sets the map renderer listener.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void captureRendering (RendererCaptureListener listener, boolean waitWhileUpdating)

Captures map rendering as a bitmap. This operation is asynchronous and the result is returned via listener callback.

Parameters
listener The listener interface that will receive the callback once rendering is available.
waitWhileUpdating If true, delay the capture until all asynchronous processes are finished (for example, until all tiles are loaded).

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public MapRendererListener getMapRendererListener ()

Returns the map renderer listener. Can be null.

Returns
  • The map renderer listener.

public ViewState getViewState ()

Returns the current view state.

Returns
  • The current view state.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public void requestRedraw ()

Requests the renderer to refresh the view.
Note that there is normally no need to do this manually,
SDK automatically redraws the view when needed.

public void setMapRendererListener (MapRendererListener listener)

Sets the map renderer listener.

Parameters
listener The new map renderer listener. Can be null.