de.jreality.tools
Class ActionTool
java.lang.Object
de.jreality.scene.tool.AbstractTool
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
Methods inherited from class de.jreality.scene.tool.AbstractTool |
addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, perform, removeCurrentSlot, setDescription |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
ActionTool
public ActionTool(InputSlot activationSlot)
ActionTool
public ActionTool(java.lang.String activationSlotName)
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(java.lang.Object obj)
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)