Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes
CH.ifa.draw.standard.ToggleGuidesCommand Class Reference

Command to insert the clipboard into the drawing. More...

Inheritance diagram for CH.ifa.draw.standard.ToggleGuidesCommand:
Inheritance graph
[legend]
Collaboration diagram for CH.ifa.draw.standard.ToggleGuidesCommand:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ToggleGuidesCommand (String name, DrawingView view)
void execute ()
 Executes the command.
boolean isExecutable ()
 Tests if the command can be executed.
String name ()
 Gets the command name.

Private Attributes

DrawingView fView

Detailed Description

Command to insert the clipboard into the drawing.

See also:
Clipboard

Definition at line 17 of file ToggleGuidesCommand.java.


Constructor & Destructor Documentation

CH.ifa.draw.standard.ToggleGuidesCommand.ToggleGuidesCommand ( String  name,
DrawingView  view 
) [inline]
Parameters:
namethe command name
imagethe pathname of the image
viewthe target view

Definition at line 25 of file ToggleGuidesCommand.java.

                                                              {
        super(name);
       fView = view;
    }

Member Function Documentation

Executes the command.

Implements CH.ifa.draw.util.Command.

Definition at line 30 of file ToggleGuidesCommand.java.

                          {
       fView.enableGuides(!fView.guidesEnabled());
       ((Component)fView).repaint();
    }

Here is the caller graph for this function:

boolean CH.ifa.draw.util.Command.isExecutable ( ) [inline, inherited]
String CH.ifa.draw.util.Command.name ( ) [inline, inherited]

Gets the command name.

Definition at line 53 of file Command.java.

                         {
        return fName;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 18 of file ToggleGuidesCommand.java.


The documentation for this class was generated from the following file: