com.tensegrity.skeleton.commands
Class CloneDocumentCommand

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

public class CloneDocumentCommand
extends GraphDocumentCommand

Allows for the creation of a 1:1 clone of the currently selected document which can be opened in a new document window.

Version:
$Id: CloneDocumentCommand.java,v 1.17 2005/11/28 09:45:50 BurkhardWick Exp $
Author:
MichaelKegel, Gilles Iachelini, Stepan RUtz

Constructor Summary
CloneDocumentCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates a command to clone documents.
 
Method Summary
protected  GraphDocument newDocument(java.lang.String name, GraphController controller, VisualGraphView visualgraphview)
          This methods adds a new document to the tabbed pane.
 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, isEnabled
 
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

CloneDocumentCommand

public CloneDocumentCommand(ApplicationFrame applicationFrame,
                            java.lang.String command)
Creates a command to clone documents.

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)

newDocument

protected GraphDocument newDocument(java.lang.String name,
                                    GraphController controller,
                                    VisualGraphView visualgraphview)
This methods adds a new document to the tabbed pane.

Parameters:
name - the initial name for the document
controller - a controller for the graph.
visualgraphview - the VisualGraphView to display.
Returns:
the cloned GraphDocument.


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