lt.monarch.math.geom
Class Rectangle3D

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.geom.Rectangle2D.Double
              extended by lt.monarch.math.geom.Rectangle2D
                  extended by lt.monarch.math.geom.Rectangle3D
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable, Primitive, Primitive2D, Primitive3D

public class Rectangle3D
extends Rectangle2D
implements Primitive3D

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
Modifier and Type Field and Description
 double x2
           
 double y2
           
 double z
           
 double z2
           
 
Fields inherited from class java.awt.geom.Rectangle2D.Double
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
Constructor and Description
Rectangle3D(double x1, double y1, double z1, double x2, double y2, double z2)
          Construct 3D rectangle in 3D space
Rectangle3D(Point3D pt1, Point3D pt2)
          Construct 3D rectangle in 3D space
 
Method Summary
Modifier and Type Method and Description
 java.util.List<Point3D> get3DPoints()
          Gets a list of 3D points
 int getSelectionId()
          Gets associated chart obejct id
 void setSelectionID(int id)
          Sets associated chart object id
 
Methods inherited from class lt.monarch.math.geom.Rectangle2D
dispose, equals, finalize, get2DPoints, getPolygon, grow, setFrame, setLocation, setLocation, setSize, translate, updateAWTRectangle
 
Methods inherited from class java.awt.geom.Rectangle2D.Double
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, toString
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface lt.monarch.math.geom.Primitive
dispose, getBounds2D
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects
 

Field Detail

z

public double z

z2

public double z2

y2

public double y2

x2

public double x2
Constructor Detail

Rectangle3D

public Rectangle3D(double x1,
                   double y1,
                   double z1,
                   double x2,
                   double y2,
                   double z2)
Construct 3D rectangle in 3D space

Parameters:
x1 - x coordinate
y1 - y coordinate
z1 - z coordinate
x2 - opposite corner x coordinate
y2 - opposite corner y coordinate
z2 - opposite corner z coordinate

Rectangle3D

public Rectangle3D(Point3D pt1,
                   Point3D pt2)
Construct 3D rectangle in 3D space

Parameters:
pt1 - first rectangle point
pt2 - opposite corner rectangle point
Method Detail

get3DPoints

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

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

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