com.tensegrity.skeleton.commands
Class EditGraphDocumentCommand

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
All Implemented Interfaces:
Command
Direct Known Subclasses:
AbstractLayoutCommand, GraphDocumentSelectionCommand, LayoutToolCommand, PasteCommand, RedoCommand, SelectAllCommand, UndoCommand

public abstract class EditGraphDocumentCommand
extends GraphDocumentCommand

This abstract Command implements the isEnabled() method and returns true if the enclosed Panel is editable.

Version:
$Id: EditGraphDocumentCommand.java,v 1.7 2005/04/13 13:37:24 KevinCVS Exp $
Author:
GillesIachelini

Constructor Summary
EditGraphDocumentCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Creates the EditGraphDocumentCommand.
 
Method Summary
 boolean isEnabled()
          (non-Javadoc) This method returns true if the currently active Document is an instance of GraphDocument.
 
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, perform
 
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

EditGraphDocumentCommand

public EditGraphDocumentCommand(ApplicationFrame applicationFrame,
                                java.lang.String command)
Creates the EditGraphDocumentCommand.

Parameters:
applicationFrame - Application context for this command.
command - the ID for this command.
Method Detail

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 GraphDocumentCommand


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