ilog.views.maps.geometry
Class IlvMapCircle

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

public class IlvMapCircle
extends IlvMapCurve

This class defines a circle. The instances of this class can be rendered by an IlvDefaultFeatureRenderer or by an IlvDefaultCurveRenderer.

Since:
JViews 3.5

Constructor Summary
IlvMapCircle(IlvCoordinate center, double radius)
          Initializes an instance of circle by specifying its center and its radius.
IlvMapCircle(IlvCoordinate control1, IlvCoordinate control2, IlvCoordinate control3)
          Initializes an instance of IlvMapCircle by giving the three different points that are on the circle.
 
Method Summary
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapGeometry
 IlvCoordinate getCenter()
          Returns the center of the circle.
 double getRadius()
          Returns the radius of the circle.
 void setCenter(IlvCoordinate c)
          Sets the center of the circle.
 void setRadius(double r)
          Sets the radius of the circle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapCircle

public IlvMapCircle(IlvCoordinate center,
                    double radius)
Initializes an instance of circle by specifying its center and its radius.

Parameters:
center - The center of the circle.
radius - The radius of the circle.

IlvMapCircle

public IlvMapCircle(IlvCoordinate control1,
                    IlvCoordinate control2,
                    IlvCoordinate control3)
Initializes an instance of IlvMapCircle by giving the three different points that are on the circle.

Parameters:
control1 - First control point.
control2 - Second control point.
control3 - Third control point.
Method Detail

getCenter

public IlvCoordinate getCenter()
Returns the center of the circle.

Returns:
The center of the circle.

getRadius

public double getRadius()
Returns the radius of the circle.

Returns:
The radius of the circle.

setCenter

public void setCenter(IlvCoordinate c)
Sets the center of the circle.

Parameters:
c - The new center of the circle.

setRadius

public void setRadius(double r)
Sets the radius of the circle.

Parameters:
r - The new radius of the circle.

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.