NCSA Portfolio

ncsa.j3d.ui.tools
Interface ToolManagerInterface

All Known Implementing Classes:
ToolManager

public interface ToolManagerInterface
extends PortfolioEventReceiver

This interface defines how the tools can interact with the ToolManager.


Method Summary
 void addInactive(PortfolioEventReceiver i)
          Allows the tool to be added into the ToolManager without being made the active tool.
 void addPortfolioEvent(PortfolioEvent event)
          Causes to the ToolManager to start servicing this event.
 javax.media.j3d.BranchGroup getBranchGroup()
          Allows the tools to find out which BranchGroup it is under.
 javax.media.j3d.Canvas3D getCanvas()
          Allows the tools to find out which Canvas3D it is drawing on.
 javax.media.j3d.TransformGroup getViewTransform()
          Allows the tools to find out which TransformGroup is above the ViewPlatform.
 void makeInactive(PortfolioEventReceiver i)
          Allows the tool to make something, possibly itself inactive.
 void remove(PortfolioEventReceiver i)
          Allows tool to commit suicide or murder something it put into the tool manager.
 void setActiveTool(ToolInterface i)
          Allows the tool to make itself active.
 
Methods inherited from interface ncsa.j3d.ui.events.PortfolioEventReceiver
notify
 

Method Detail

addInactive

public void addInactive(PortfolioEventReceiver i)
Allows the tool to be added into the ToolManager without being made the active tool.
Parameters:
PortfolioEventReceiver - The interface that will get events.

remove

public void remove(PortfolioEventReceiver i)
Allows tool to commit suicide or murder something it put into the tool manager.
Parameters:
PortfolioEventReceiver - The item to be removed.

makeInactive

public void makeInactive(PortfolioEventReceiver i)
Allows the tool to make something, possibly itself inactive. This means that the item does not receive any events until it is made active.
Parameters:
PortfolioEventReceiver - The item to make inactive.

setActiveTool

public void setActiveTool(ToolInterface i)
Allows the tool to make itself active.
Parameters:
ToolInterface - The tool to make active.

getCanvas

public javax.media.j3d.Canvas3D getCanvas()
Allows the tools to find out which Canvas3D it is drawing on. This is NECESSARY to do picking, etc...
Parameters:
none -  
Returns:
The Canvas that this ToolManager is using.

getBranchGroup

public javax.media.j3d.BranchGroup getBranchGroup()
Allows the tools to find out which BranchGroup it is under. This is NECESSARY to do picking, etc...
Parameters:
none -  
Returns:
The BranchGroup that this ToolManager is using.

getViewTransform

public javax.media.j3d.TransformGroup getViewTransform()
Allows the tools to find out which TransformGroup is above the ViewPlatform.
Returns:
TransformGroup

addPortfolioEvent

public void addPortfolioEvent(PortfolioEvent event)
Causes to the ToolManager to start servicing this event.
Parameters:
PortfolioEvent - The event to respond to.

NCSA Portfolio

NCSA Portfolio, Copyright 1997-1999, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, All Rights Reserved