public class AxisTranslationTool extends AbstractTool
Constructor and Description |
---|
AxisTranslationTool() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ToolContext tc)
This method is called when the tool gets activated.
|
boolean |
getMoveChildren() |
double |
getSnapToGridInterval() |
boolean |
isSnapToGrid() |
void |
perform(ToolContext tc)
This method is called when the tool is activated and any
AxisState or TransformationMatrix of the current slots changes.
|
void |
setMoveChildren(boolean moveChildren) |
void |
setSnapToGrid(boolean snapToGrid) |
void |
setSnapToGridInterval(double snapToGridInterval) |
addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, removeCurrentSlot, setDescription
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 boolean getMoveChildren()
public void setMoveChildren(boolean moveChildren)
public boolean isSnapToGrid()
public void setSnapToGrid(boolean snapToGrid)
public double getSnapToGridInterval()
public void setSnapToGridInterval(double snapToGridInterval)