com.esri.android.map
Class Grid

java.lang.Object
  extended by com.esri.android.map.Grid

public class Grid
extends Object

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


Nested Class Summary
static class Grid.GridType
           
 
Method Summary
 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.
The default is true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setType

public void setType(Grid.GridType gridType)

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

Parameters:
gridType - the Grid.GridType of the grid

getType

public Grid.GridType getType()
Returns the type of the grid.

Returns:
the Grid.GridType

getVisibility

public boolean getVisibility()
Returns the visibility of the grid

Returns:
true if the grid is visible, false otherwise

setVisibility

public void setVisibility(boolean visibility)
Sets the visibility of the grid.
The default is true.

Parameters:
visibility - the visibility to set


Copyright © 2012. All Rights Reserved.