com.tensegrity.skeleton.commands
Class InsertChartCommand

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.AbstractInsertElementCommand
                      extended bycom.tensegrity.skeleton.commands.InsertChartCommand
All Implemented Interfaces:
Command

public class InsertChartCommand
extends AbstractInsertElementCommand

This Command inserts a chart into the currently selected VisualGraph.

Version:
$Id: InsertChartCommand.java,v 1.7 2005/04/13 14:07:37 KevinCVS Exp $
Author:
BurkhardWick

Field Summary
 
Fields inherited from class com.tensegrity.skeleton.commands.AbstractInsertElementCommand
ELEMENTNAME_CHART_NODE, ELEMENTNAME_IMAGE, ELEMENTNAME_TABLE_NODE
 
Constructor Summary
InsertChartCommand(ApplicationFrame applicationFrame, java.lang.String command)
          Constructor.
 
Method Summary
 boolean isEnabled()
          Overridden to restrict the availability of this command to the case that the "ChartNode" element is in the pool.
 void perform(java.lang.Object args)
          Creates a chart and inserts it into the current graph (using application frame and mdi component to determine selected graph document).
 
Methods inherited from class com.tensegrity.skeleton.commands.AbstractInsertElementCommand
addElement, addElement, toLog
 
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

InsertChartCommand

public InsertChartCommand(ApplicationFrame applicationFrame,
                          java.lang.String command)
Constructor.

Parameters:
applicationFrame - The application frame
command - The id used to register this command in the command registry
Method Detail

perform

public void perform(java.lang.Object args)
Creates a chart and inserts it into the current graph (using application frame and mdi component to determine selected graph document).

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

isEnabled

public boolean isEnabled()
Overridden to restrict the availability of this command to the case that the "ChartNode" element is in the pool.

Specified by:
isEnabled in interface Command
Overrides:
isEnabled in class GraphDocumentCommand
Returns:
True, if the command is currently available


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