All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.ToggleGridCommand
java.lang.Object
|
+----CH.ifa.draw.util.Command
|
+----CH.ifa.draw.standard.ToggleGridCommand
- public class ToggleGridCommand
- extends Command
A command to toggle the snap to grid behavior.
-
ToggleGridCommand(String, DrawingView, Point)
- Constructs a toggle grid command.
-
execute()
- Executes the command.
ToggleGridCommand
public ToggleGridCommand(String name,
DrawingView view,
Point grid)
- Constructs a toggle grid command.
- Parameters:
- name - the command name
- image - the pathname of the image
- grid - the grid size. A grid size of 1,1 turns grid snapping off.
execute
public void execute()
- Executes the command.
- Overrides:
- execute in class Command
All Packages Class Hierarchy This Package Previous Next Index