public class

Grid

extends Object
java.lang.Object
   ↳ com.esri.android.map.Grid

Class Overview

This class allows you to control the display of a grid on a MapView by setting its type and visibility.

Summary

Nested Classes
enum Grid.GridType The Enum GridType. 
Public Methods
Grid.GridType getType()
Returns the type of the grid.
boolean getVisibility()
Returns the visibility of the grid.
void setType(Grid.GridType gridType)

Sets the type of grid displayed on the map.

void setVisibility(boolean visibility)
Sets the visibility of the grid.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Grid.GridType getType ()

Returns the type of the grid.

Returns
Grid.GridType the Grid.GridType

public boolean getVisibility ()

Returns the visibility of the grid.

Returns
boolean true if the grid is visible, false otherwise

public void setType (Grid.GridType gridType)

Sets the type of grid displayed on the map.
The default grid type is "None".

Parameters
gridType Grid.GridType: the Grid.GridType of the grid

public void setVisibility (boolean visibility)

Sets the visibility of the grid.
The default is true.

Parameters
visibility boolean: the visibility to set