|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dolben.poly.Solid
org.dolben.poly.ColoredFaces
public class ColoredFaces
A polyhedron drawn as colored faces.
| Field Summary | |
|---|---|
protected Lighting |
lighting
|
| Fields inherited from class org.dolben.poly.Solid |
|---|
polyhedron |
| Constructor Summary | |
|---|---|
ColoredFaces(Polyhedron poly)
Creates a new Solid for a given polyhedron. |
|
| Method Summary | |
|---|---|
protected java.awt.Color |
getColor(int index)
Gets the color of a polygon based on the number of its sides. |
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 |
| Field Detail |
|---|
protected Lighting lighting
| Constructor Detail |
|---|
public ColoredFaces(Polyhedron poly)
poly - the polyhedron to be drawn| Method Detail |
|---|
protected java.awt.Color getColor(int index)
public void paint(Projector projector,
java.awt.Graphics graphics)
paint in class Solidprojector - the projector that maps 3D to Graphics coordinatesgraphics - the drawing context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||