com.infoviz.geometry
Class PieGeometry3D

java.lang.Object
  extended bycom.infoviz.geometry.PieGeometry2D
      extended bycom.infoviz.geometry.PieGeometry3D
All Implemented Interfaces:
PieGeometry

public class PieGeometry3D
extends PieGeometry2D

Title : PieGeometry2D 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$


Field Summary
 java.awt.geom.Line2D.Double heightLine
           
 
Fields inherited from class com.infoviz.geometry.PieGeometry2D
angleBounds, firstLine, innerArc, nestedPieBounds, outerArc, radialBounds, secondLine
 
Constructor Summary
PieGeometry3D(double startAngle, double endAngle, double startR, double endR)
           
 
Method Summary
protected  void calculateGeometry()
           
 boolean contains(double screenX, double screenY)
          returns true if the node shape contains the given coordinates otherwise returns false
 void draw(java.awt.Graphics g)
           
 void fill(java.awt.Graphics g)
           
protected  java.awt.Rectangle getEffectiveBounds()
          NestedPie bounds is the rectangle representing the Panel bounds of nested Pie.
 void rotate(double xAngle, double yAngle)
           
 void setHeight(int height)
           
 void setNestedPieBounds(java.awt.Rectangle r)
          pass the rectangle occupied by the nested pie to this method
 
Methods inherited from class com.infoviz.geometry.PieGeometry2D
containsAngleAndRadius, getAngleAt, getAngleBounds, getArcX, getCartesianCoordinates, getCenter, getEquivAngle, getIntersectingX, getIntersectingY, getLineX, getRadialBounds, getRadiusAtAngle, getScreenCoordinates, getScreenCoordinates, getScreenCoordinatesByAngleAndRadiusFactor, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

heightLine

public java.awt.geom.Line2D.Double heightLine
Constructor Detail

PieGeometry3D

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

rotate

public void rotate(double xAngle,
                   double yAngle)
Parameters:
xAngle -
yAngle - if the pie is rotated around the x-axis, this is the angle between the horizontal plane and the plane of the pie

setHeight

public void setHeight(int height)

setNestedPieBounds

public void setNestedPieBounds(java.awt.Rectangle r)
pass the rectangle occupied by the nested pie to this method

Specified by:
setNestedPieBounds in interface PieGeometry
Overrides:
setNestedPieBounds in class PieGeometry2D

getEffectiveBounds

protected java.awt.Rectangle getEffectiveBounds()
Description copied from class: PieGeometry2D
NestedPie bounds is the rectangle representing the Panel bounds of nested Pie. Effective bounds is the actual rectangle we use to calculate the geometry

Overrides:
getEffectiveBounds in class PieGeometry2D
Returns:

calculateGeometry

protected void calculateGeometry()
Overrides:
calculateGeometry in class PieGeometry2D

draw

public void draw(java.awt.Graphics g)
Specified by:
draw in interface PieGeometry
Overrides:
draw in class PieGeometry2D

fill

public void fill(java.awt.Graphics g)
Specified by:
fill in interface PieGeometry
Overrides:
fill in class PieGeometry2D

contains

public boolean contains(double screenX,
                        double screenY)
Description copied from class: PieGeometry2D
returns true if the node shape contains the given coordinates otherwise returns false

Specified by:
contains in interface PieGeometry
Overrides:
contains in class PieGeometry2D