ilog.views.graphic
Class IlvArcUtil

java.lang.Object
  extended by ilog.views.graphic.IlvArcUtil

public class IlvArcUtil
extends Object

A class that groups the utility methods for Arcs.


Field Summary
static float ilv_delta_arc
          A distance that defines a boundary around the arc.
 
Method Summary
static void ComputeArcBBox(IlvRect bbox, float angle, float delta, IlvRect rect)
          Computes the bounding rectangle of an arc.
static boolean PointInArc(IlvPoint p, IlvRect bbox, float angle, float delta)
          Checks if a point is on an arc.
static boolean PointInFilledArc(IlvPoint p, IlvRect bbox, float angle, float delta)
          Checks if a point is inside a filled arc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ilv_delta_arc

public static float ilv_delta_arc
A distance that defines a boundary around the arc. If the user clicks within this boundary then it is taken to be a click on a point on the arc.

Method Detail

PointInArc

public static boolean PointInArc(IlvPoint p,
                                 IlvRect bbox,
                                 float angle,
                                 float delta)
Checks if a point is on an arc.

Parameters:
p - the point to be checked.
bbox - the bounding box of the arc.
angle - the start angle in degrees.
delta - the arc angle range in degrees.

PointInFilledArc

public static boolean PointInFilledArc(IlvPoint p,
                                       IlvRect bbox,
                                       float angle,
                                       float delta)
Checks if a point is inside a filled arc.

Parameters:
p - the point to be checked.
bbox - the bounding box of the arc.
angle - the start angle in degrees.
delta - the arc angle range in degrees.

ComputeArcBBox

public static void ComputeArcBBox(IlvRect bbox,
                                  float angle,
                                  float delta,
                                  IlvRect rect)
Computes the bounding rectangle of an arc.

Parameters:
bbox - the definition rect of the arc.
angle - the start angle of the arc in degrees.
delta - the angle range of the arc in degrees.
rect - a rectangle to store the result.


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