org.dolben.poly
Class WireFrame

java.lang.Object
  extended by org.dolben.poly.Solid
      extended by org.dolben.poly.WireFrame

public class WireFrame
extends Solid

Used for drawing a projection of a polyhedron as a wire frame.


Field Summary
 
Fields inherited from class org.dolben.poly.Solid
polyhedron
 
Constructor Summary
WireFrame(Polyhedron poly, java.awt.Color colo)
          Creates a new WireFrame for a given polyhedron.
 
Method Summary
 void paint(Projector projector, java.awt.Graphics graphics)
          Draws the polyhedron.
 
Methods inherited from class org.dolben.poly.Solid
getPolyhedron
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireFrame

public WireFrame(Polyhedron poly,
                 java.awt.Color colo)
Creates a new WireFrame for a given polyhedron.

Parameters:
poly - the polyhedron to be drawn
colo - the color with which to draw
Method Detail

paint

public void paint(Projector projector,
                  java.awt.Graphics graphics)
Draws the polyhedron.

Specified by:
paint in class Solid
Parameters:
projector - the projector that maps 3D to Graphics coordinates
graphics - the drawing context