com.ls.widgets.map.interfaces
Interface Layer

All Known Implementing Classes:
MapLayer

public interface Layer


Method Summary
 void addMapObject(MapObject mapObject)
          Adds map object to the layer.
 void clearAll()
          Removes all map objects from the layer.
 MapObject getMapObject(java.lang.Object id)
          Returns map object.
 MapObject getMapObjectByIndex(int index)
          Returns map object by index
 int getMapObjectCount()
          Returns the count of map objects on the layer
 boolean isVisible()
          Shows whether the layer is visible or not.
 void removeMapObject(java.lang.Object id)
          Removes map object from the layer.
 void setVisible(boolean visible)
          Sets layer visibility.
 

Method Detail

addMapObject

void addMapObject(MapObject mapObject)
Adds map object to the layer.

Parameters:
mapObject - - map object.

removeMapObject

void removeMapObject(java.lang.Object id)
Removes map object from the layer.

Parameters:
id - - id of the map object.

getMapObject

MapObject getMapObject(java.lang.Object id)
Returns map object.

Parameters:
id - - id of the map object.

getMapObjectByIndex

MapObject getMapObjectByIndex(int index)
Returns map object by index

Parameters:
index -
Returns:
instance of MapObject

getMapObjectCount

int getMapObjectCount()
Returns the count of map objects on the layer

Returns:
number of map objects

clearAll

void clearAll()
Removes all map objects from the layer.


isVisible

boolean isVisible()
Shows whether the layer is visible or not.

Returns:
- true if layer is visible, false otherwise.

setVisible

void setVisible(boolean visible)
Sets layer visibility.

Parameters:
visible - - true if layer should be visible, false otherwise.