|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsmithers.java3d.Drawable3D
smithers.java3d.Panel3D.DrawablePolygon
public static class Panel3D.DrawablePolygon
A simple drawable object which draws and fills a Polygon3D.
| Field Summary |
|---|
| Fields inherited from class smithers.java3d.Drawable3D |
|---|
poly |
| Constructor Summary | |
|---|---|
Panel3D.DrawablePolygon(Polygon3D poly,
java.awt.Color draw,
java.awt.Color fill)
Creates a new DrawablePolygon with the specified polygon and
draw and fill colours. |
|
| Method Summary | |
|---|---|
java.awt.Shape |
drawOn(java.awt.Graphics2D g,
Transformation trans)
Draws this object. |
| Methods inherited from class smithers.java3d.Drawable3D |
|---|
addMouesWheelListener, addMouseListener, addMouseMotionListener, getShape, removeMouesWheelListener, removeMouseListener, removeMouseMotionListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Panel3D.DrawablePolygon(Polygon3D poly,
java.awt.Color draw,
java.awt.Color fill)
DrawablePolygon with the specified polygon and
draw and fill colours. The colours can be null, which
indicates not to perform the corresponding operation.
poly - the polygon to drawdraw - the colour to outline the polygon infill - the colour to fill the polygon with| Method Detail |
|---|
public java.awt.Shape drawOn(java.awt.Graphics2D g,
Transformation trans)
trans, on g. The method should return a Shape,
indicating the region which it covered. This is to enable the container
to deliver mouse events.
drawOn in class Drawable3Dg - the graphics object on which to drawtrans - the transformation to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||