com.tensegrity.skeleton.swt.commands
Class SwtLayoutCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.EditGraphDocumentCommand
com.tensegrity.skeleton.commands.AbstractLayoutCommand
com.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). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.