|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gnu.gleem.ManipManager
The ManipManager handles making manipulators visible in a window.
| Method Summary | |
static ManipManager |
getManipManager()
This class is a singleton. |
ScreenToRayMapping |
getScreenToRayMapping()
Returns the current screen-to-ray mapping. |
void |
mouseDragged(java.awt.event.MouseEvent e)
The ManipManager watches for the following events: mouseMoved, mouseDragged, mousePressed, and mouseReleased. |
void |
mouseMoved(java.awt.event.MouseEvent e)
The ManipManager watches for the following events: mouseMoved, mouseDragged, mousePressed, and mouseReleased. |
void |
mousePressed(java.awt.event.MouseEvent e)
The ManipManager watches for the following events: mouseMoved, mouseDragged, mousePressed, and mouseReleased. |
void |
mouseReleased(java.awt.event.MouseEvent e)
The ManipManager watches for the following events: mouseMoved, mouseDragged, mousePressed, and mouseReleased. |
void |
registerWindow(gl4java.drawable.GLDrawable window)
Make the ManipManager aware of the existence of a given window. |
void |
removeManipFromWindow(Manip manip,
gl4java.drawable.GLDrawable window)
Remove a given manipulator from a given window. |
void |
removeMouseListeners(gl4java.drawable.GLDrawable window)
Removes the automatically-installed mouse listeners for the given window. |
void |
render(gl4java.drawable.GLDrawable window,
gl4java.GLFunc gl)
Cause the manipulators for a given window to be drawn. |
void |
setScreenToRayMapping(ScreenToRayMapping mapping)
Allows changing of the screen-to-ray mapping. |
void |
setupMouseListeners(gl4java.drawable.GLDrawable window)
Sets up a MouseListener and MouseMotionListener for the given window. |
void |
setWindowUpdateListener(WindowUpdateListener listener)
Sets the WindowUpdateListener the ManipManager uses to force repainting of windows in which manipulators have moved. |
void |
showManipInWindow(Manip manip,
gl4java.drawable.GLDrawable window)
Make a given manipulator visible and active in a given window. |
void |
unregisterWindow(gl4java.drawable.GLDrawable window)
Remove all references to a given window, including removing all manipulators from it. |
void |
updateCameraParameters(gl4java.drawable.GLDrawable window,
CameraParameters params)
This must be called for every registered window every time the camera parameters of the window change. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ManipManager getManipManager()
public void registerWindow(gl4java.drawable.GLDrawable window)
public void unregisterWindow(gl4java.drawable.GLDrawable window)
public void showManipInWindow(Manip manip,
gl4java.drawable.GLDrawable window)
public void removeManipFromWindow(Manip manip,
gl4java.drawable.GLDrawable window)
public void updateCameraParameters(gl4java.drawable.GLDrawable window,
CameraParameters params)
public void setScreenToRayMapping(ScreenToRayMapping mapping)
public ScreenToRayMapping getScreenToRayMapping()
public void setWindowUpdateListener(WindowUpdateListener listener)
public void render(gl4java.drawable.GLDrawable window,
gl4java.GLFunc gl)
public void setupMouseListeners(gl4java.drawable.GLDrawable window)
public void removeMouseListeners(gl4java.drawable.GLDrawable window)
public void mouseMoved(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||