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.


Constructor Index

 o ToggleGridCommand(String, DrawingView, Point)
Constructs a toggle grid command.

Method Index

 o execute()
Executes the command.

Constructors

 o 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.

Methods

 o execute
 public void execute()
Executes the command.

Overrides:
execute in class Command

All Packages  Class Hierarchy  This Package  Previous  Next  Index