MapQuest Advantage TileMap Toolkit Reference Documentation

Class MQTKObjectCollection

Object
   |
   +--MQTKObjectCollection
Direct Known Subclasses:
MQOverlayCollection, MQPoiCollection

class MQTKObjectCollection


Base class used for any collection holding MQObjects.
Defined in utils.js


Constructor Summary
MQTKObjectCollection (max)
            MQTKObjectCollection constructor.
 
Method Summary
 int add(<Object> obj)
           Adds an object to the collection.
 boolean contains(<Object> item)
           Function to test if object is in collection.
 Object getAt(<int> iIndex)
           Returns an object at the specified index.
 Object getById(<string> strId)
           Returns an object with the specified ID.
 int getSize()
           Returns the size of the collection.
 Object remove(<int> iIndex)
           Removes an object at specified index.
 void removeAll()
           Remove all elements from collection.
 void removeItem(<Object> item)
           Remove an item by it's pointer.

Constructor Detail

MQTKObjectCollection

MQTKObjectCollection(max)

Method Detail

add

int add(<Object> obj)

contains

boolean contains(<Object> item)

getAt

Object getAt(<int> iIndex)

getById

Object getById(<string> strId)

getSize

int getSize()

remove

Object remove(<int> iIndex)

removeAll

void removeAll()

removeItem

void removeItem(<Object> item)

MapQuest Advantage TileMap Toolkit Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:28 2007