|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectModel
Polygon
public class Polygon
Represents a polygonal face of a solid.
Field Summary |
---|
Fields inherited from class Model |
---|
EMPTY |
Constructor Summary | |
---|---|
Polygon(Point[] points)
Constructs a polygon with the given points. |
Method Summary | |
---|---|
void |
draw(Graphics3D g)
Draws this polygon using the given Graphics3D. |
Methods inherited from class Model |
---|
color, rotateX, rotateY, rotateZ, scale, transform, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Polygon(Point[] points)
Method Detail |
---|
public void draw(Graphics3D g)
draw
in class Model
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |