|
|||||||||
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
org.dolben.poly.ShadedFaces
public class ShadedFaces
A polyhedron drawn as shaded faces.
Field Summary |
---|
Fields inherited from class org.dolben.poly.ColoredFaces |
---|
lighting |
Fields inherited from class org.dolben.poly.Solid |
---|
polyhedron |
Constructor Summary | |
---|---|
ShadedFaces(Polyhedron poly,
java.awt.Color colo)
Creates a new Solid for a given polyhedron. |
Method Summary | |
---|---|
protected java.awt.Color |
getColor(int index)
Gets the color of a face of the polyhedron. |
Methods inherited from class org.dolben.poly.ColoredFaces |
---|
paint |
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 |
---|
public ShadedFaces(Polyhedron poly, java.awt.Color colo)
poly
- the polyhedron to be drawncolo
- the color with which to drawMethod Detail |
---|
protected java.awt.Color getColor(int index)
getColor
in class ColoredFaces
index
- which face
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |