ilog.views.maps.geometry
Class IlvMapGeometryCollection

java.lang.Object
  extended by ilog.views.maps.IlvMapGeometry
      extended by ilog.views.maps.geometry.IlvMapGeometryCollection

public class IlvMapGeometryCollection
extends IlvMapGeometry

The class defines a collection of any geometry elements. The instances of this class can be rendered by an IlvDefaultFeatureRenderer.

Since:
JViews 3.5
See Also:
IlvDefaultFeatureRenderer

Constructor Summary
IlvMapGeometryCollection()
          Constructs an empty IlvMapGeometryCollection.
 
Method Summary
 void addGeometry(IlvMapGeometry geometry)
          Adds a geometry at the end of the collection.
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapGeometry
 IlvMapGeometry getSubElement(int index)
          Returns the sub element of index index
 int getSubElementCount()
          Returns the number of elements contained in the geometry.
 void removeAll()
          Removes all the geometries contained in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapGeometryCollection

public IlvMapGeometryCollection()
Constructs an empty IlvMapGeometryCollection.

Method Detail

getSubElementCount

public int getSubElementCount()
Returns the number of elements contained in the geometry.


getSubElement

public IlvMapGeometry getSubElement(int index)
Returns the sub element of index index


removeAll

public void removeAll()
Removes all the geometries contained in the collection.


addGeometry

public void addGeometry(IlvMapGeometry geometry)
Adds a geometry at the end of the collection. Since the geometry is not copied, the geometry should not be modified after being added to the collection.

Parameters:
geometry - The geometry to be added.

getBounds

public Rectangle2D getBounds(Rectangle2D result)
Returns the bounds of this IlvMapGeometry

Specified by:
getBounds in class IlvMapGeometry


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.