|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.tool.AbstractTool
de.jreality.tools.DampedDraggingTool
public class DampedDraggingTool
works just like the draggingTool has spezial feature: the movement of a dragged object is damped(if the corresponding flag is set ). If the mouse stops moving the object will "float" to the same Point as if no damping where selected you can modify how strong and fast the damping is
Constructor Summary | |
---|---|
DampedDraggingTool()
|
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. |
String |
getDescription()
Gives an overall description of this Tool. |
double |
getFeatherPow()
|
double |
getLinearScaleFactor()
|
boolean |
isFeathered()
|
boolean |
isMoveChildren()
|
void |
perform(ToolContext tc)
This method is called when the tool is activated and any AxisState or TransformationMatrix of the current slots changes. |
void |
setFeathered(boolean feathered)
|
void |
setFeatherPow(double featherPow)
|
void |
setLinearScaleFactor(double linearScaleFactor)
|
void |
setMoveChildren(boolean moveChildren)
|
Methods inherited from class de.jreality.scene.tool.AbstractTool |
---|
fullDescription, getActivationSlots, getCurrentSlots, getDescription, setDescription |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DampedDraggingTool()
Method Detail |
---|
public void activate(ToolContext tc)
Tool
activate
in interface Tool
activate
in class AbstractTool
tc
- The current tool contextpublic void perform(ToolContext tc)
Tool
perform
in interface Tool
perform
in class AbstractTool
tc
- The current tool contextpublic void deactivate(ToolContext tc)
Tool
deactivate
in interface Tool
deactivate
in class AbstractTool
tc
- The current tool contextpublic void setMoveChildren(boolean moveChildren)
public boolean isMoveChildren()
public void setFeathered(boolean feathered)
public boolean isFeathered()
public void setLinearScaleFactor(double linearScaleFactor)
public double getLinearScaleFactor()
public void setFeatherPow(double featherPow)
public double getFeatherPow()
public String getDescription()
Tool
getDescription
in interface Tool
getDescription
in class AbstractTool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |