com.tensegrity.skeleton.commands.generic
Class SelectAllCommand

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.generic.SelectAllCommand
All Implemented Interfaces:
Command

public final class SelectAllCommand
extends EditGraphDocumentCommand

Selects all objects in the currently selected document.

This class uses the InteractionProvider.setSelection(List) method of the active VisualGraphView.

Version:
$Id: SelectAllCommand.java,v 1.17 2005/04/13 14:50:28 KevinCVS Exp $
Author:
MichaelKegel, Gilles Iachelini, Stepan RUtz

Constructor Summary
SelectAllCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates a new SelectAllCommand.
 
Method Summary
 boolean isEnabled()
          (non-Javadoc) This method returns true if the currently active Document is an instance of GraphDocument.
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
 
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

SelectAllCommand

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

Parameters:
applicationFrame - Application context for this command.
command - the ID of this command.
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: GraphDocumentCommand
(non-Javadoc) This method returns true if the currently active Document is an instance of GraphDocument.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class EditGraphDocumentCommand


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