com.tensegrity.skeleton.commands
Class AbstractAlignHorizontalCommand
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.GraphDocumentSelectionCommand
com.tensegrity.skeleton.commands.AbstractAlignCommand
com.tensegrity.skeleton.commands.AbstractAlignHorizontalCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- AlignHorizontalCenterCommand, AlignHorizontalLeftCommand, AlignHorizontalRightCommand
- public abstract class AbstractAlignHorizontalCommand
- extends AbstractAlignCommand
Abstract base class for horizontal align commands which provides the basic functionality
for sorting the elements, etc. The subclass only has to set the bounds of each node
according to the given information.
- Version:
- $Id: AbstractAlignHorizontalCommand.java,v 1.7 2005/03/10 11:05:26 MichaelKegel Exp $
- Author:
- BurkhardWick
|
Method Summary |
void |
alignElements(VisualGraphObject refElement,
java.util.List elements)
Aligns the elements horizontally. |
protected abstract void |
setBounds(Boundary ref,
Boundary b)
Abstract definition of the function that will set the
new bounding box depending on the given reference. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAlignHorizontalCommand
public AbstractAlignHorizontalCommand(ApplicationFrame applicationFrame,
java.lang.String command)
- Constructor.
- Parameters:
applicationFrame - The application framecommand - The id of this align command
alignElements
public final void alignElements(VisualGraphObject refElement,
java.util.List elements)
- Aligns the elements horizontally.
- Specified by:
alignElements in class AbstractAlignCommand
- Parameters:
refElement - The reference element which horizontal position will not changeelements - The elements to arrange
setBounds
protected abstract void setBounds(Boundary ref,
Boundary b)
- Abstract definition of the function that will set the
new bounding box depending on the given reference.
- Parameters:
ref - The reference boundaryb - The boundary to set
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.