public abstract static class OnMapRenderListener.OnMapRenderListenerAdapter extends java.lang.Object implements OnMapRenderListener
OnMapRenderListener
OnMapRenderListener.OnMapRenderListenerAdapter
Constructor and Description |
---|
OnMapRenderListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onGraphicsDetached()
Callback indicating that the map renderer has been cleanly detached from the view.
|
void |
onPostDraw(boolean invalidated,
long renderTime)
Callback indicating that a
Map drawing event has ended. |
void |
onPreDraw()
Callback indicating that a
Map drawing event is about to occur. |
void |
onRenderBufferCreated()
Callback indicating that the map render buffer has been created.
|
void |
onSizeChanged(int width,
int height)
Callback indicating that a
Map size has changed following
a rotation. |
public void onPreDraw()
OnMapRenderListener
Map
drawing event is about to occur. Applications can
perform custom rendering when this callback is sent.
This callback is preferred to OnMapRenderListener.onPostDraw(boolean, long)
when making changes to
MapObject
s as the changes can be made during the upcoming draw and another Map
invalidation will not need to take place.
Note: This callback is made on the rendering thread.
onPreDraw
in interface OnMapRenderListener
public void onPostDraw(boolean invalidated, long renderTime)
OnMapRenderListener
Map
drawing event has ended.
Applications can perform custom rendering when this callback is sent.
Note: This callback is made on the rendering thread.
onPostDraw
in interface OnMapRenderListener
invalidated
- A boolean
specifying whether the map is
invalidated and will redrawrenderTime
- The time taken to render the mappublic void onSizeChanged(int width, int height)
OnMapRenderListener
Map
size has changed following
a rotation. Applications can perform custom rendering when this callback
is sent.
Note: This callback is made on the UI thread.
onSizeChanged
in interface OnMapRenderListener
width
- A post-rotation widthheight
- A post-rotation heightpublic void onGraphicsDetached()
OnMapRenderListener
onGraphicsDetached
in interface OnMapRenderListener
public void onRenderBufferCreated()
OnMapRenderListener
Note: This callback is made on the rendering thread.
onRenderBufferCreated
in interface OnMapRenderListener