|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRenderer
This class defines an interface which allows the JViewer to render and manipulate any graphics object which implements this interface.
Note: Only the reference to the Tripos Java molecule's Matrix3D class keeps jviewer from being a true "object" renderer. A future effort should be to move Matrix3D from molecule to JViewer.
| Method Summary | |
|---|---|
java.lang.Object |
copy()
Return a copy of the current object. |
void |
draw(java.awt.Graphics g)
Draw the object. |
java.lang.Object |
findObject(float tx,
float ty)
Find an object given location |
java.util.Vector |
findObjects(java.awt.Polygon polygon)
Find a list of objects within a given polygon |
float[] |
getBBox()
Return the bounding box of the object being rendered. |
void |
matMult(Matrix3D rhs)
Multiply the object's transformation matrix by the matrix specified. |
void |
matScale(float xf,
float yf,
float zf)
Apply the specified scale to the object's transformation matrix. |
void |
matTransform()
Apply the object's transformation matrix to its points. |
void |
matTranslate(float xt,
float yt,
float zt)
Apply the specified translation to the object's transformation matrix. |
void |
matUnit()
Reset the object's transformation matrix to the identity matrix. |
| Method Detail |
|---|
float[] getBBox()
void matUnit()
void matTranslate(float xt,
float yt,
float zt)
xt - x component of translationyt - y component of translationzt - z component of translation
void matScale(float xf,
float yf,
float zf)
xf - x scale factoryf - y scale factorzf - z scale factorvoid matMult(Matrix3D rhs)
rhs - matrix to be multiplied to object's matrix: M = M rhsvoid matTransform()
void draw(java.awt.Graphics g)
g - the graphics context.
java.lang.Object findObject(float tx,
float ty)
tx - the transformed x coordinate of desired targetty - the transformed y coordinate of desired target
java.util.Vector findObjects(java.awt.Polygon polygon)
polygon - the polygon within which objects are searched
java.lang.Object copy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||