com.tensegrity.skeleton.swt.commands
Class SwtLayoutCommand

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.swt.commands.SwtLayoutCommand
All Implemented Interfaces:
Command

public final class SwtLayoutCommand
extends AbstractLayoutCommand

This command, to be used within applications in a SWT context, performs a given layout on the active editable graph document.

Version:
$Id: SwtLayoutCommand.java,v 1.15 2005/12/08 10:58:25 BurkhardWick Exp $
Author:
Sharokh Khani, S�bastien Guyon

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

SwtLayoutCommand

public SwtLayoutCommand(ApplicationFrame applicationFrame,
                        java.lang.String id,
                        java.lang.String layoutName)
Creates the SwtLayoutCommand for a given layout context (layoutName). This constructor assumes that the layout context is a node layout context.

Parameters:
applicationFrame - the enclosing application Frame.
id - the id for the command.
layoutName - this is the layout context.

SwtLayoutCommand

public SwtLayoutCommand(ApplicationFrame applicationFrame,
                        java.lang.String id,
                        java.lang.String layoutName,
                        boolean isNodeLayout)
Creates the SwtLayoutCommand for a given layout context (layoutName).

Parameters:
applicationFrame - the enclosing application Frame.
id - the id for the command.
layoutName - this is the layout context.
isNodeLayout - flag indicating whether or not the layout concerns nodes.
Method Detail

performLayout

protected void performLayout()
Overrides:
performLayout in class AbstractLayoutCommand

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.