|
NCSA Portfolio | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ncsa.j3d.ui.tools.Tool
This abstract class provides a template for tool construction. It provides basic operations to process events.
Constructor Summary | |
Tool()
|
|
Tool(javax.media.j3d.Canvas3D c,
javax.media.j3d.BranchGroup g)
|
Method Summary | |
java.lang.String |
describe()
The name of the tool. |
java.lang.String |
describeFunctionality()
Returns a detailed message describing the functionality of the tool and how to use the tool. |
static boolean |
left(java.awt.event.MouseEvent event)
This function determines if the event deals with the left mouse button. |
static boolean |
middle(java.awt.event.MouseEvent event)
This function determines if the event deals with the middle mouse button. |
boolean |
notify(java.util.EventObject event)
Allows an external object to send an event to this tool, typically this will be the ToolManager. |
static boolean |
right(java.awt.event.MouseEvent event)
This function determines if the event deals with the right mouse button. |
void |
setBranchGroup(javax.media.j3d.BranchGroup bg)
Allows the branchgroup to be set. |
void |
setCanvas(javax.media.j3d.Canvas3D canvas)
Allows the canvas to be set. |
void |
setToolManager(ToolManagerInterface manager)
Allows an object to specify which toolmanager that this tool should use. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Tool()
public Tool(javax.media.j3d.Canvas3D c, javax.media.j3d.BranchGroup g)
Method Detail |
public void setCanvas(javax.media.j3d.Canvas3D canvas)
canvas
- The canvas to use for computations.public void setBranchGroup(javax.media.j3d.BranchGroup bg)
bg
- The new branch group to use for computations.public boolean notify(java.util.EventObject event)
event
- The event to process.public void setToolManager(ToolManagerInterface manager)
manager
- The manager to report to.public java.lang.String describe()
public java.lang.String describeFunctionality()
public static boolean left(java.awt.event.MouseEvent event)
event
- The MouseEvent to check.public static boolean middle(java.awt.event.MouseEvent event)
event
- The MouseEvent to check.public static boolean right(java.awt.event.MouseEvent event)
event
- The MouseEvent to check.
|
NCSA Portfolio | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |