ilog.views.maps.geometry
Class IlvMapMultiPoint

java.lang.Object
  extended by ilog.views.maps.IlvMapGeometry
      extended by ilog.views.maps.geometry.IlvMapMultiPoint
All Implemented Interfaces:
IlvMapMultiPointInterface

public class IlvMapMultiPoint
extends IlvMapGeometry
implements IlvMapMultiPointInterface

This class defines a multipoint, which is a collection of points

Since:
ILOG JViews 3.0

Constructor Summary
IlvMapMultiPoint()
          Initializes an instance of the class.
 
Method Summary
 void addPoint(IlvCoordinate c)
          Adds a coordinate at the end of the multipoint.
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapGeometry
 IlvCoordinate getPoint(int index)
          Returns the coordinate of the specified index.
 int getPointCount()
          Returns the number of points in the multipoint.
 void removeAll()
          Removes all the coordinates from the multipoint.
 boolean removePoint(IlvCoordinate c)
          Removes a coordinate from the multipoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapMultiPoint

public IlvMapMultiPoint()
Initializes an instance of the class.

Method Detail

removeAll

public final void removeAll()
Removes all the coordinates from the multipoint.

Specified by:
removeAll in interface IlvMapMultiPointInterface

removePoint

public final boolean removePoint(IlvCoordinate c)
Removes a coordinate from the multipoint.

Specified by:
removePoint in interface IlvMapMultiPointInterface
Parameters:
c - the coordinate to remove.
Returns:
true if the coordinate was in the multipoint.

getPointCount

public final int getPointCount()
Returns the number of points in the multipoint.

Specified by:
getPointCount in interface IlvMapMultiPointInterface

addPoint

public final void addPoint(IlvCoordinate c)
Adds a coordinate at the end of the multipoint.

Specified by:
addPoint in interface IlvMapMultiPointInterface
Parameters:
c - the coordinate.

getPoint

public final IlvCoordinate getPoint(int index)
Returns the coordinate of the specified index. The coordinate is not copied.

Specified by:
getPoint in interface IlvMapMultiPointInterface
Parameters:
index - the index.

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.