de.jreality.tools
Class DragEventTool

java.lang.Object
  extended by de.jreality.scene.tool.AbstractTool
      extended by de.jreality.tools.DragEventTool
All Implemented Interfaces:
Tool
Direct Known Subclasses:
ScaleTool

public class DragEventTool
extends AbstractTool


Constructor Summary
DragEventTool()
           
DragEventTool(String dragSlotName)
           
 
Method Summary
 void activate(ToolContext tc)
          This method is called when the tool gets activated.
 void addFaceDragListener(FaceDragListener listener)
           
 void addLineDragListener(LineDragListener listener)
           
 void addPointDragListener(PointDragListener listener)
           
 void addPrimitiveDragListener(PrimitiveDragListener listener)
           
 void deactivate(ToolContext tc)
          this method is called when the tool was activate and the AxisState of the activation slot changes to AxisState.RELEASED - to zero.
 void perform(ToolContext tc)
          This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes.
 void removeFaceDragListener(FaceDragListener listener)
           
 void removeLineDragListener(LineDragListener listener)
           
 void removePointDragListener(PointDragListener listener)
           
 void removePrimitiveDragListener(PrimitiveDragListener listener)
           
 
Methods inherited from class de.jreality.scene.tool.AbstractTool
fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, setDescription
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragEventTool

public DragEventTool(String dragSlotName)

DragEventTool

public DragEventTool()
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

perform

public void perform(ToolContext tc)
Description copied from interface: Tool
This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes.

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

deactivate

public void deactivate(ToolContext tc)
Description copied from interface: Tool
this method is called when the tool was activate and the AxisState of the activation slot changes to AxisState.RELEASED - to zero. Note that it will never be called for always active tools.

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

addPrimitiveDragListener

public void addPrimitiveDragListener(PrimitiveDragListener listener)

removePrimitiveDragListener

public void removePrimitiveDragListener(PrimitiveDragListener listener)

addPointDragListener

public void addPointDragListener(PointDragListener listener)

removePointDragListener

public void removePointDragListener(PointDragListener listener)

addLineDragListener

public void addLineDragListener(LineDragListener listener)

removeLineDragListener

public void removeLineDragListener(LineDragListener listener)

addFaceDragListener

public void addFaceDragListener(FaceDragListener listener)

removeFaceDragListener

public void removeFaceDragListener(FaceDragListener listener)