com.tensegrity.skeleton.commands
Class LayoutCommand

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

public final class LayoutCommand
extends AbstractLayoutCommand

This class help to apply layout engines by specified layout context

Version:
$Id: LayoutCommand.java,v 1.40 2006/03/14 14:55:02 MichaelKegel Exp $
Author:
Sharokh Khani

Constructor Summary
LayoutCommand(ApplicationFrame applicationFrame, java.lang.String id, java.lang.String layoutName)
          Creates the LayoutToolCommand.
LayoutCommand(ApplicationFrame applicationFrame, java.lang.String id, java.lang.String layoutName, boolean isNodeLayout)
          Creates the LayoutToolCommand.
 
Method Summary
protected  Observer buildLayoutObserver()
           
protected  LayoutController getDefaultLayoutController()
           Returns the default LayoutController.
protected  AttributeSet getRendererConfigurationLowDetail()
           
protected  void showError(LayoutController layoutController)
           
 
Methods inherited from class com.tensegrity.skeleton.commands.AbstractLayoutCommand
getLayoutName, getTitle, isEnabled, isNodeLayout, perform, performLayout, setLayoutName
 
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
 
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

LayoutCommand

public LayoutCommand(ApplicationFrame applicationFrame,
                     java.lang.String id,
                     java.lang.String layoutName)
Creates the LayoutToolCommand.

Parameters:
applicationFrame - the enclosing application Frame.
id - the id for the command.
layoutName - the name of the layout.

LayoutCommand

public LayoutCommand(ApplicationFrame applicationFrame,
                     java.lang.String id,
                     java.lang.String layoutName,
                     boolean isNodeLayout)
Creates the LayoutToolCommand.

Parameters:
applicationFrame - the enclosing application Frame.
id - the id for the command.
layoutName - the name of the layout.
isNodeLayout - indicates whether the specified layout a node layout is or an edges layout
Method Detail

getDefaultLayoutController

protected LayoutController getDefaultLayoutController()
Description copied from class: AbstractLayoutCommand

Returns the default LayoutController.

Specified by:
getDefaultLayoutController in class AbstractLayoutCommand
Returns:
the default LayoutController.

buildLayoutObserver

protected Observer buildLayoutObserver()
Specified by:
buildLayoutObserver in class AbstractLayoutCommand

showError

protected void showError(LayoutController layoutController)
Specified by:
showError in class AbstractLayoutCommand

getRendererConfigurationLowDetail

protected AttributeSet getRendererConfigurationLowDetail()
Specified by:
getRendererConfigurationLowDetail in class AbstractLayoutCommand


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