com.infoviz.treeviz.nestedpie
Class NestedPieNodeBounds

java.lang.Object
  extended bycom.infoviz.treeviz.nestedpie.NestedPieNodeBounds

public class NestedPieNodeBounds
extends java.lang.Object

Title : NestedPieNodeBounds Description: A nested pie bound consists of 2 arcs and 2 lines. The angle bounds are the start and end angle of the upper and lower arcs and the radial bounds are the start and endPoints in the radius. The radial bounds take a value between 0 and 1. $Id$ $Revision$ $Author$


Constructor Summary
NestedPieNodeBounds(double startAngle, double endAngle, double startR, double endR)
           
 
Method Summary
 boolean contains(double angle, double radius)
          checks if the given angle and radius fall inside the shape of this node
protected  void draw(java.awt.Graphics g)
           
 double[] getAngleBounds()
          returns the start and end angle of the node
 double[] getIntersectingX(double screenY)
          returns the intersecting x points if y takes the value provided
 double[] getIntersectingY(double screenX)
          returns the intersecting y points if x takes the value provided
 double[] getRadialBounds()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NestedPieNodeBounds

public NestedPieNodeBounds(double startAngle,
                           double endAngle,
                           double startR,
                           double endR)
Method Detail

getIntersectingY

public double[] getIntersectingY(double screenX)
returns the intersecting y points if x takes the value provided


getIntersectingX

public double[] getIntersectingX(double screenY)
returns the intersecting x points if y takes the value provided


draw

protected void draw(java.awt.Graphics g)

getAngleBounds

public double[] getAngleBounds()
returns the start and end angle of the node


getRadialBounds

public double[] getRadialBounds()

contains

public boolean contains(double angle,
                        double radius)
checks if the given angle and radius fall inside the shape of this node

Parameters:
angle - is in radians

toString

public java.lang.String toString()