Back to index

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

A command to send the selection to the back of the drawing. More...

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

List of all members.

Public Member Functions

 SendToBackCommand (String name, DrawingView view)
 Constructs a send to back command.
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

A command to send the selection to the back of the drawing.

Definition at line 15 of file SendToBackCommand.java.


Constructor & Destructor Documentation

CH.ifa.draw.standard.SendToBackCommand.SendToBackCommand ( String  name,
DrawingView  view 
) [inline]

Constructs a send to back command.

Parameters:
namethe command name
viewthe target view

Definition at line 24 of file SendToBackCommand.java.

                                                            {
        super(name);
        fView = view;
    }

Member Function Documentation

Executes the command.

Implements CH.ifa.draw.util.Command.

Definition at line 29 of file SendToBackCommand.java.

                          {
       FigureEnumeration k = new ReverseFigureEnumerator(fView.selectionZOrdered());
       while (k.hasMoreElements()) {
            fView.drawing().sendToBack(k.nextFigure());
        }
        fView.checkDamage();
    }

Here is the caller graph for this function:

Tests if the command can be executed.

Reimplemented from CH.ifa.draw.util.Command.

Definition at line 37 of file SendToBackCommand.java.

                                  {
        return fView.selectionCount() > 0;
    }
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 17 of file SendToBackCommand.java.


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