|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsmithers.java3d.Drawable3D
public abstract class Drawable3D
Represents a drawable 3D object. Objects of classes extending this can be added to a Panel3D and will be drawn upon it.
| Field Summary | |
|---|---|
protected Polygon3D |
poly
The 3-d polygon which this object fills up. |
| Constructor Summary | |
|---|---|
Drawable3D()
Sole constructor. |
|
| Method Summary | |
|---|---|
void |
addMouesWheelListener(java.awt.event.MouseWheelListener l)
Registers the specified listener to receive mouse wheel events from this component. |
void |
addMouseListener(java.awt.event.MouseListener l)
Registers the specified listener to receive mouse events from this component. |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
Registers the specified listener to receive mouse motion events from this component. |
abstract java.awt.Shape |
drawOn(java.awt.Graphics2D g,
Transformation trans)
Draws this object. |
Polygon3D |
getShape()
Returns the 3-d polygon which this object fills up. |
void |
removeMouesWheelListener(java.awt.event.MouseWheelListener l)
Removes the specified listener from receiving mouse wheel events from this component. |
void |
removeMouseListener(java.awt.event.MouseListener l)
Removes the specified listener from receiving mouse events from this component. |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes the specified listener from receiving mouse motion events from this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Polygon3D poly
| Constructor Detail |
|---|
public Drawable3D()
| Method Detail |
|---|
public Polygon3D getShape()
public abstract 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.
g - the graphics object on which to drawtrans - the transformation to use
public void addMouseListener(java.awt.event.MouseListener l)
l - the listenerpublic void removeMouseListener(java.awt.event.MouseListener l)
l - the listenerpublic void addMouseMotionListener(java.awt.event.MouseMotionListener l)
l - the listenerpublic void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
l - the listenerpublic void addMouesWheelListener(java.awt.event.MouseWheelListener l)
l - the listenerpublic void removeMouesWheelListener(java.awt.event.MouseWheelListener l)
l - the listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||