| MGCollection Object |
|
The MGCollection object represents collections of objects, such as MGPoint, MGMapObject, Double, Integer, or any other type of object.
The MGCollection object has similar capabilities to the Java Vector class, but it can be used with the APIs of all three versions of Autodesk MapGuide Viewer (the Autodesk MapGuide Viewer Plug-In, the Autodesk MapGuide Viewer ActiveX Control, and the Autodesk MapGuide Viewer, Java Edition).
You can create instances of the MGCollection object using createObject from MGMap.
Java Development for the Autodesk MapGuide Viewer Plug-In: For Autodesk MapGuide Viewer Plug-In, the Java class MGCollection extends java.lang.Object and can be found in the mapguide package, located in the npmapv32.zip file in the Netscape Plugins folder.
Java Development for the Autodesk MapGuide Viewer, Java Edition: For Autodesk MapGuide Viewer, Java Edition, MGCollection is a Java interface that resides in the com.autodesk.mgjava package, which is located in the mgjava.cab file (for Windows systems only) and the mgjava.jar file (for all platforms).
|
Adds the specified object to the collection. |
|
|
Returns a value indicating whether the collection is empty or contains any objects. |
|
|
Gets the object at the specified index in the collection. |
|
|
Removes the object at the specified index from the collection. |
|
|
Removes all of the objects from the collection. |
|
|
Gets the number of map features in the collection that have been displayed in the view since the last reload or rebuild of the map layer. |
Note that direct access to properties is only available in Autodesk MapGuide Viewer ActiveX Control. In Autodesk MapGuide Viewer Plug-In and Autodesk MapGuide Viewer, Java Edition APIs, get/set methods provide access to an object's properties. For compatibility, the ActiveX Control API supports the same get/set methods as the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition APIs.
|
Gets the number of map features in the collection that have been displayed in the view since the last reload or rebuild of the map layer. |