ilog.views.maps.geometry
Class IlvMapMultiCurve

java.lang.Object
  extended by ilog.views.maps.IlvMapGeometry
      extended by ilog.views.maps.geometry.IlvMapCurve
          extended by ilog.views.maps.geometry.IlvMapMultiCurve

public class IlvMapMultiCurve
extends IlvMapCurve

This class defines a curve that is composed of a list of IlvMapCurve.

Since:
JViews 3.5

Constructor Summary
IlvMapMultiCurve()
          Constructs a new, empty instance of IlvMapMultiCurve.
 
Method Summary
 void addCurve(IlvMapCurve c)
          Adds the specified curve c to this multicurve.
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapGeometry
 int getCardinal()
          Returns the number of curves contained in this multicurve.
 IlvMapCurve getCurve(int index)
          Returns the curve at the specified index.
 void removeAll()
          Removes all the sub curves of this multicurve.
 IlvMapCurve removeCurve(IlvMapCurve c)
          Removes the specified curve from this multicurve.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapMultiCurve

public IlvMapMultiCurve()
Constructs a new, empty instance of IlvMapMultiCurve.

Method Detail

getCardinal

public int getCardinal()
Returns the number of curves contained in this multicurve.

Returns:
The number of curves.

getCurve

public IlvMapCurve getCurve(int index)
Returns the curve at the specified index.

Parameters:
index - The index of the sub-curve, in the range [0, getCardinal()-1].
Returns:
An IlvMapCurve object that should not be modified.

addCurve

public void addCurve(IlvMapCurve c)
Adds the specified curve c to this multicurve. After c has been added to this multicurve, it should not be modified anymore.

Parameters:
c - The curve to be added.

removeCurve

public IlvMapCurve removeCurve(IlvMapCurve c)
Removes the specified curve from this multicurve.

Parameters:
c - The curve to be removed.
Returns:
The removed curve, or null if the specified curve is not part of this multicurve.

removeAll

public void removeAll()
Removes all the sub curves of this multicurve.


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.