Documentation of 'CH.ifa.draw.standard.ToggleGridCommand' Java class
ToggleGridCommand
CH.ifa.draw.standard

Class ToggleGridCommand



  • public class ToggleGridCommand
    extends Command
    A command to toggle the snap to grid behavior.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ToggleGridCommand(java.lang.String name, DrawingView view, java.awt.Point grid)
      Constructs a toggle grid command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute()
      Executes the command.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToggleGridCommand

        public ToggleGridCommand(java.lang.String name,
                                 DrawingView view,
                                 java.awt.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.
    • Method Detail

      • execute

        public void execute()
        Description copied from class: Command
        Executes the command.
        Specified by:
        execute in class Command

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.