lt.monarch.chart.chart3D.engine
Class Shape3D.Line

java.lang.Object
  extended by lt.monarch.chart.chart3D.engine.Shape3D.Line
All Implemented Interfaces:
Shape3D.ProjectableShape<Projector3D>
Enclosing class:
Shape3D<ChartProjector extends Projector>

protected class Shape3D.Line
extends java.lang.Object
implements Shape3D.ProjectableShape<Projector3D>

Class for storing line coordinates


Field Summary
Modifier and Type Field and Description
protected  Point3D pt1
           
protected  Point3D pt2
           
 
Constructor Summary
Constructor and Description
Shape3D.Line(double x1, double y1, double z1, double x2, double y2, double z2)
           
Shape3D.Line(Point3D p1, Point3D p2)
           
 
Method Summary
Modifier and Type Method and Description
 Shape3D.ProjectableShape<Projector3D> clone()
          Retrieves a clone of this shape.
 void dispose()
          Clears the object
 java.awt.Shape getShape()
          Returns the swing Shape
 void project(Projector3D projector)
          Projects all the points of the shape
 void transform(Transformation3D tf, double anchorX, double anchorY, double anchorZ)
          Transforms all the points of the shape
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pt1

protected Point3D pt1

pt2

protected Point3D pt2
Constructor Detail

Shape3D.Line

public Shape3D.Line(double x1,
                    double y1,
                    double z1,
                    double x2,
                    double y2,
                    double z2)

Shape3D.Line

public Shape3D.Line(Point3D p1,
                    Point3D p2)
Method Detail

project

public void project(Projector3D projector)
Description copied from interface: Shape3D.ProjectableShape
Projects all the points of the shape

Specified by:
project in interface Shape3D.ProjectableShape<Projector3D>
Parameters:
projector - projector

transform

public void transform(Transformation3D tf,
                      double anchorX,
                      double anchorY,
                      double anchorZ)
Description copied from interface: Shape3D.ProjectableShape
Transforms all the points of the shape

Specified by:
transform in interface Shape3D.ProjectableShape<Projector3D>
Parameters:
tf - transformation matrix
anchorX - x anchor point for transformation
anchorY - y anchor point for transformation

dispose

public void dispose()
Description copied from interface: Shape3D.ProjectableShape
Clears the object

Specified by:
dispose in interface Shape3D.ProjectableShape<Projector3D>

getShape

public java.awt.Shape getShape()
Description copied from interface: Shape3D.ProjectableShape
Returns the swing Shape

Specified by:
getShape in interface Shape3D.ProjectableShape<Projector3D>
Returns:
Java Swing Shape

clone

public Shape3D.ProjectableShape<Projector3D> clone()
Description copied from interface: Shape3D.ProjectableShape
Retrieves a clone of this shape.

Specified by:
clone in interface Shape3D.ProjectableShape<Projector3D>
Overrides:
clone in class java.lang.Object
Returns:
a clone