|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.util.Command
CH.ifa.draw.standard.ToggleGridCommand
public class ToggleGridCommand
A command to toggle the snap to grid behavior.
| Constructor Summary | |
|---|---|
ToggleGridCommand(java.lang.String name,
DrawingView view,
java.awt.Point grid)
Constructs a toggle grid command. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the command. |
| Methods inherited from class CH.ifa.draw.util.Command |
|---|
isExecutable, name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToggleGridCommand(java.lang.String name,
DrawingView view,
java.awt.Point grid)
name - the command nameimage - the pathname of the imagegrid - the grid size. A grid size of 1,1 turns grid snapping off.| Method Detail |
|---|
public void execute()
Command
execute in class Command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||