Class ClickHandler

java.lang.Object
  |
  +--ClickHandler

public class ClickHandler
extends java.lang.Object

Stores information about a pick hit and return its result


Constructor Summary
ClickHandler(javax.media.j3d.Canvas3D canvas, javax.media.j3d.BranchGroup root)
          Default constructor.
 
Method Summary
 com.sun.j3d.utils.picking.PickResult[] getClickResult(java.awt.event.MouseEvent e)
          Get the PickResult from a MouseEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickHandler

public ClickHandler(javax.media.j3d.Canvas3D canvas,
                    javax.media.j3d.BranchGroup root)
Default constructor.

Parameters:
canvas - the Canvas used in scene.
root - the top BranchGroup in scene.
Method Detail

getClickResult

public com.sun.j3d.utils.picking.PickResult[] getClickResult(java.awt.event.MouseEvent e)
Get the PickResult from a MouseEvent.

Parameters:
e - our MouseEvent.
Returns:
the PickResult from the Mouselocation.