de.jreality.tools
Class ScaleTool
java.lang.Object
de.jreality.scene.tool.AbstractTool
de.jreality.tools.DragEventTool
de.jreality.tools.ScaleTool
- All Implemented Interfaces:
- Tool
public class ScaleTool
- extends DragEventTool
- Author:
- bleicher
Method Summary |
void |
activate(ToolContext tc)
This method is called when the tool gets activated. |
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. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
ScaleTool
public ScaleTool(java.lang.String activationSlotName)
ScaleTool
public ScaleTool()
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 DragEventTool
- 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 DragEventTool
- 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 DragEventTool
- Parameters:
tc
- The current tool context