de.jreality.tools
Class ActionTool

java.lang.Object
  extended by de.jreality.scene.tool.AbstractTool
      extended by de.jreality.tools.ActionTool
All Implemented Interfaces:
Tool

public class ActionTool
extends AbstractTool

Tool that generates an ActionEvent on activation. This can be used to trigger arbitrary things when a geometry is picked.

Author:
Ulrich

Constructor Summary
ActionTool(InputSlot activationSlot)
           
ActionTool(String activationSlotName)
           
 
Method Summary
 void activate(ToolContext tc)
          This method is called when the tool gets activated.
 void addActionListener(ActionListener l)
           
 void fire(Object obj)
           
 void removeActionListener(ActionListener l)
           
 
Methods inherited from class de.jreality.scene.tool.AbstractTool
deactivate, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, perform, setDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTool

public ActionTool(InputSlot activationSlot)

ActionTool

public ActionTool(String activationSlotName)
Method Detail

activate

public void activate(ToolContext tc)
Description copied from interface: Tool
This method is called when the tool gets activated. Note that it will never be called if the tool is always active.

Specified by:
activate in interface Tool
Overrides:
activate in class AbstractTool
Parameters:
tc - The current tool context

fire

public void fire(Object obj)

addActionListener

public void addActionListener(ActionListener l)

removeActionListener

public void removeActionListener(ActionListener l)