|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.renderer.java3d.overlay.OverlayBase
org.j3d.renderer.java3d.overlay.InteractiveOverlayBase
org.j3d.renderer.java3d.overlay.MouseOverlay
An overlay that is used like an ordinary drawing canvas that interacts with the mouse.
The class does not automatically register itself for mouse input. That is up to the derived class to make sure it properly registers itself for the right events.
Note: This class does not call the repaint() method
after each mouse event. It is the responsibility of the derived class to
make sure the screen gets updated with any information regarding the mouse
event.
| Field Summary |
| Fields inherited from class org.j3d.renderer.java3d.overlay.OverlayBase |
activeBuffer, backgroundColor, backgroundMode, bottomInset, canvas, componentSize, consoleBG, consoleTG, DEFAULT_INSET, DIRTY_ACTIVE_BUFFER, DIRTY_POSITION, DIRTY_SIZE, DIRTY_VISIBLE, fieldOfView, fixedSize, leftInset, overlayBounds, overlayTexGrp, rightInset, subOverlay, topInset |
| Fields inherited from interface org.j3d.renderer.java3d.overlay.Overlay |
BACKGROUND_COPY, BACKGROUND_NONE |
| Constructor Summary | |
protected |
MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size)
Creates a new overlay covering the given canvas bounds. |
protected |
MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
boolean clipAlpha,
boolean blendAlpha)
Constructs an overlay window that can have alpha capabilities. |
protected |
MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
boolean clipAlpha,
boolean blendAlpha,
UpdateManager updateManager,
boolean hasButtonEvents)
Constructs an overlay window. |
protected |
MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
boolean clipAlpha,
boolean blendAlpha,
UpdateManager updateManager,
int numBuffers)
Constructs an overlay window. |
protected |
MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
UpdateManager updateManager)
Constructs an overlay window with an update manager. |
| Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent evt)
Process a mouse click event. |
void |
mouseDragged(java.awt.event.MouseEvent evt)
Process a mouse drag event |
void |
mouseEntered(java.awt.event.MouseEvent evt)
Process a mouse enter event. |
void |
mouseExited(java.awt.event.MouseEvent evt)
Process a mouse exited event. |
void |
mouseMoved(java.awt.event.MouseEvent evt)
Process a mouse movement event. |
void |
mousePressed(java.awt.event.MouseEvent evt)
Process a mouse press event. |
void |
mouseReleased(java.awt.event.MouseEvent evt)
Process a mouse release event. |
| Methods inherited from class org.j3d.renderer.java3d.overlay.InteractiveOverlayBase |
addKeyListener, addMouseListener, addMouseMotionListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, requestFocus, setInputRequester |
| Methods inherited from class org.j3d.renderer.java3d.overlay.OverlayBase |
componentHidden, componentMoved, componentResized, componentShown, contains, dirty, getBackgroundImage, getBounds, getGraphics, getRoot, getUpdateManager, initialize, isAntialiased, isVisible, paint, repaint, setActiveBuffer, setAntialiased, setBackgroundColor, setBackgroundImage, setBackgroundMode, setComponentDetails, setInsets, setInsets, setLocation, setSize, setUpdateManager, setVisible, update, updateBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.j3d.renderer.java3d.overlay.Overlay |
contains, getBounds, getRoot, getUpdateManager, initialize, isAntialiased, isVisible, setAntialiased, setComponentDetails, setLocation, setSize, setUpdateManager, setVisible |
| Methods inherited from interface org.j3d.renderer.java3d.overlay.UpdatableEntity |
update |
| Constructor Detail |
protected MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size)
canvas3D - Canvas being drawn ontosize - The size of the overlay in pixels
protected MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
UpdateManager updateManager)
canvas3D - The canvas the overlay is drawn onsize - The size of the overlay in pixelsupdateManager - Responsible for allowing the Overlay to update
between renders. If this is null a default manager is created
protected MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
boolean clipAlpha,
boolean blendAlpha)
canvas3D - The canvas the overlay is drawn onsize - The size of the overlay in pixelsclipAlpha - Should the polygon clip where alpha is zeroblendAlpha - Should we blend to background where alpha is < 1
protected MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
boolean clipAlpha,
boolean blendAlpha,
UpdateManager updateManager,
boolean hasButtonEvents)
canvas3D - The canvas the overlay is drawn onsize - The size of the overlay in pixelsclipAlpha - Should the polygon clip where alpha is zeroblendAlpha - Should we blend to background where alpha is < 1updateManager - Responsible for allowing the Overlay to update
between renders. If this is null a default manager is created
protected MouseOverlay(javax.media.j3d.Canvas3D canvas3D,
java.awt.Dimension size,
boolean clipAlpha,
boolean blendAlpha,
UpdateManager updateManager,
int numBuffers)
canvas3D - The canvas the overlay is drawn onsize - The size of the overlay in pixelsclipAlpha - Should the polygon clip where alpha is zeroblendAlpha - Should we blend to background where alpha is < 1updateManager - Responsible for allowing the Overlay to update
between renders. If this is null a default manager is creatednumBuffers - The number of buffers to generate, the default is two| Method Detail |
public void mousePressed(java.awt.event.MouseEvent evt)
mousePressed in interface java.awt.event.MouseListenerevt - The event that caused this method to be calledpublic void mouseReleased(java.awt.event.MouseEvent evt)
mouseReleased in interface java.awt.event.MouseListenerevt - The event that caused this method to be calledpublic void mouseClicked(java.awt.event.MouseEvent evt)
mouseClicked in interface java.awt.event.MouseListenerevt - The event that caused this method to be calledpublic void mouseEntered(java.awt.event.MouseEvent evt)
mouseEntered in interface java.awt.event.MouseListenerevt - The event that caused this method to be calledpublic void mouseExited(java.awt.event.MouseEvent evt)
mouseExited in interface java.awt.event.MouseListenerevt - The event that caused this method to be calledpublic void mouseDragged(java.awt.event.MouseEvent evt)
mouseDragged in interface java.awt.event.MouseMotionListenerevt - The event that caused this method to be calledpublic void mouseMoved(java.awt.event.MouseEvent evt)
mouseMoved in interface java.awt.event.MouseMotionListenerevt - The event that caused this method to be called
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||