com.mapquest
Class PrimitiveCollection
java.lang.Object
com.mapquest.MQObject
com.mapquest.MQObjectCollection
com.mapquest.PrimitiveCollection
- All Implemented Interfaces:
- java.lang.Cloneable
- public class PrimitiveCollection
- extends MQObjectCollection
A collection of Primitive objects which are used to annotate the
map. Some examples of Primitive objects are: Ellipse, Icon, Line,
Polygon, Rectangle, and TextAnnotation.
- See Also:
EllipsePrimitive,
LinePrimitive,
PolygonPrimitive,
Primitive,
RectanglePrimitive,
TextPrimitive,
SymbolPrimitive
|
Method Summary |
Primitive |
getAt(int index)
Returns the element at the specified position in this collection. |
int |
getClassId()
Returns the numeric id of this class. |
java.lang.String |
getClassName()
Returns the text name of this class. |
void |
init()
Initializes object. |
| Methods inherited from class com.mapquest.MQObject |
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CLASS_ID
public static final int CLASS_ID
- See Also:
- Constant Field Values
CLASS_NAME
public static final java.lang.String CLASS_NAME
- See Also:
- Constant Field Values
PrimitiveCollection
public PrimitiveCollection()
- Default constructor.
init
public void init()
- Initializes object.
- Overrides:
init in class MQObjectCollection
getClassId
public int getClassId()
- Returns the numeric id of this class.
- Overrides:
getClassId in class MQObject
- Returns:
- the numeric id of this class.
getClassName
public java.lang.String getClassName()
- Returns the text name of this class.
- Overrides:
getClassName in class MQObject
- Returns:
- the text name of this class.
getAt
public Primitive getAt(int index)
- Returns the element at the specified position in this collection.
Calls
get(int).
- Parameters:
index - index of element to return.
- Returns:
- Primitive at the specified index.
- See Also:
MQObjectCollection.get(int)