ilog.views.maps.geometry
Class IlvMapEllipse

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

public class IlvMapEllipse
extends IlvMapCurve

This class defines an Arc of ellipse. The ellipse is defined by its bounding box, and the arc is defined by its beginning and ending angles. Instances of this class can be rendered using an IlvDefaultFeatureRenderer or an IlvDefaultCurveRenderer.

Since:
JViews 5.0

Constructor Summary
IlvMapEllipse(IlvCoordinate UL, IlvCoordinate LR, double a, double b)
          Initialize an instance of arc of ellipse, by specifying its bounding box, beginning and ending angles.
 
Method Summary
 double getBeginningAngle()
          Returns the beginning angle of this arc.
 Rectangle2D getBounds(Rectangle2D result)
          Returns the bounds of this IlvMapGeometry
 double getEndingAngle()
          Returns the ending angle of this arc.
 IlvCoordinate getLowerRightCorner()
          Returns the lower right corner of the rectangle defining this ellipse arc.
 IlvCoordinate getUpperLeftCorner()
          Returns the upper left corner of the rectangle defining this ellipse arc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvMapEllipse

public IlvMapEllipse(IlvCoordinate UL,
                     IlvCoordinate LR,
                     double a,
                     double b)
Initialize an instance of arc of ellipse, by specifying its bounding box, beginning and ending angles. The angles are specified in degrees moving counter clockwise, with zero at three o'clock.

Parameters:
UL - The upper left corner of the rectangle containing the ellipse.
LR - The lower right corner of the rectangle containing the ellipse.
a - The beginning angle of the arc, in degrees.
b - The ending angle of the arc, in degrees.
Method Detail

getUpperLeftCorner

public IlvCoordinate getUpperLeftCorner()
Returns the upper left corner of the rectangle defining this ellipse arc.


getLowerRightCorner

public IlvCoordinate getLowerRightCorner()
Returns the lower right corner of the rectangle defining this ellipse arc.


getBeginningAngle

public double getBeginningAngle()
Returns the beginning angle of this arc.


getEndingAngle

public double getEndingAngle()
Returns the ending angle of this arc.


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.