com.tensegrity.skeleton.commands.generic
Class GroupSelectionCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.commands.DocumentCommand
              extended bycom.tensegrity.skeleton.commands.GraphDocumentCommand
                  extended bycom.tensegrity.skeleton.commands.EditGraphDocumentCommand
                      extended bycom.tensegrity.skeleton.commands.GraphDocumentSelectionCommand
                          extended bycom.tensegrity.skeleton.commands.generic.GroupSelectionCommand
All Implemented Interfaces:
Command

public final class GroupSelectionCommand
extends GraphDocumentSelectionCommand

Groups the currently selected objects of the active document.

Version:
$Id: GroupSelectionCommand.java,v 1.9 2005/06/08 13:31:45 BurkhardWick Exp $
Author:
MichaelKegel, Gilles Iachelini, Stepan Rutz

Constructor Summary
GroupSelectionCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates a new GroupSelectionCommand.
 
Method Summary
protected  java.util.List getSelectedNodes()
          Gathers the selected nodes and returns them as a list.
 boolean isEnabled()
          Checks if there is something selected in the current document.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentSelectionCommand
getSelection, hasSelection
 
Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand
getGraphDocument, getVisualGraphView
 
Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand
getDocument, getGraphApplication, newGraphDocumentFromFactory
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle
 
Methods inherited from class com.tensegrity.generic.command.BaseCommand
getDescription, getId, getPerformDescription, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupSelectionCommand

public GroupSelectionCommand(ApplicationFrame applicationFrame,
                             java.lang.String command)
Creates a new GroupSelectionCommand.

Parameters:
applicationFrame - reference to the ApplicationFrame
command - command identifier.
Method Detail

perform

public void perform(java.lang.Object args)
Description copied from class: CommonBaseCommand
Updates the StatusBar with this commands title string. (non-Javadoc)

Specified by:
perform in interface Command
Overrides:
perform in class CommonBaseCommand
See Also:
Command.perform(java.lang.Object)

isEnabled

public boolean isEnabled()
Description copied from class: GraphDocumentSelectionCommand
Checks if there is something selected in the current document.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class GraphDocumentSelectionCommand
See Also:
EditGraphDocumentCommand.isEnabled()

getSelectedNodes

protected java.util.List getSelectedNodes()
Gathers the selected nodes and returns them as a list.

Returns:
The selected elements as list.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.