lt.monarch.math.geom
Class PieSlice3D

java.lang.Object
  extended by lt.monarch.math.geom.PieSlice3D
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, Primitive, Primitive3D

public class PieSlice3D
extends java.lang.Object
implements Primitive3D, java.awt.Shape

See Also:
Serialized Form

Constructor Summary
Constructor and Description
PieSlice3D(Polygon3D bottomFill, Polygon3D topFill, Polygon3D wallFill)
           
 
Method Summary
Modifier and Type Method and Description
 boolean contains(double x, double y)
           
 boolean contains(double x, double y, double w, double h)
           
 boolean contains(java.awt.geom.Point2D p)
           
 boolean contains(java.awt.geom.Rectangle2D r)
           
 void dispose()
          Disposes object
 java.util.ArrayList<Point3D> get3DPoints()
          Gets a list of 3D points
 java.awt.Rectangle getBounds()
           
 java.awt.geom.Rectangle2D getBounds2D()
           
 java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
           
 java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
           
 int getSelectionId()
          Gets associated chart obejct id
 boolean intersects(double x, double y, double w, double h)
           
 boolean intersects(java.awt.geom.Rectangle2D r)
           
 void setSelectionID(int id)
          Sets associated chart object id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieSlice3D

public PieSlice3D(Polygon3D bottomFill,
                  Polygon3D topFill,
                  Polygon3D wallFill)
Method Detail

contains

public boolean contains(java.awt.geom.Point2D p)
Specified by:
contains in interface java.awt.Shape

dispose

public void dispose()
Description copied from interface: Primitive
Disposes object

Specified by:
dispose in interface Primitive

get3DPoints

public java.util.ArrayList<Point3D> get3DPoints()
Description copied from interface: Primitive3D
Gets a list of 3D points

Specified by:
get3DPoints in interface Primitive3D
Returns:
list of 3D points

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Specified by:
getBounds2D in interface java.awt.Shape
Specified by:
getBounds2D in interface Primitive

contains

public boolean contains(java.awt.geom.Rectangle2D r)
Specified by:
contains in interface java.awt.Shape

contains

public boolean contains(double x,
                        double y)
Specified by:
contains in interface java.awt.Shape

contains

public boolean contains(double x,
                        double y,
                        double w,
                        double h)
Specified by:
contains in interface java.awt.Shape

getBounds

public java.awt.Rectangle getBounds()
Specified by:
getBounds in interface java.awt.Shape

getPathIterator

public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
Specified by:
getPathIterator in interface java.awt.Shape

getPathIterator

public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
                                                  double flatness)
Specified by:
getPathIterator in interface java.awt.Shape

intersects

public boolean intersects(java.awt.geom.Rectangle2D r)
Specified by:
intersects in interface java.awt.Shape

intersects

public boolean intersects(double x,
                          double y,
                          double w,
                          double h)
Specified by:
intersects in interface java.awt.Shape

setSelectionID

public void setSelectionID(int id)
Sets associated chart object id

Specified by:
setSelectionID in interface Primitive3D
Parameters:
if - chart object id

getSelectionId

public int getSelectionId()
Gets associated chart obejct id

Specified by:
getSelectionId in interface Primitive3D
Returns:
chart object id