Back to index

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

BringToFrontCommand brings the selected figures in the front of the other figures. More...

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

List of all members.

Public Member Functions

 BringToFrontCommand (String name, DrawingView view)
 Constructs a bring to front 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

BringToFrontCommand brings the selected figures in the front of the other figures.

See also:
SendToBackCommand

Definition at line 18 of file BringToFrontCommand.java.


Constructor & Destructor Documentation

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

Constructs a bring to front command.

Parameters:
namethe command name
viewthe target view

Definition at line 28 of file BringToFrontCommand.java.

                                                              {
        super(name);
        fView = view;
    }

Member Function Documentation

Executes the command.

Implements CH.ifa.draw.util.Command.

Definition at line 33 of file BringToFrontCommand.java.

                          {
       FigureEnumeration k = new FigureEnumerator(fView.selectionZOrdered());
       while (k.hasMoreElements()) {
            fView.drawing().bringToFront(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 41 of file BringToFrontCommand.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 21 of file BringToFrontCommand.java.


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