com.tensegrity.skeleton.commands
Class AbstractAlignVerticalCommand
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.AbstractAlignVerticalCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- AlignVerticalBottomCommand, AlignVerticalCenterCommand, AlignVerticalTopCommand
- public abstract class AbstractAlignVerticalCommand
- extends AbstractAlignCommand
Abstract base class for vertical 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: AbstractAlignVerticalCommand.java,v 1.6 2005/03/10 11:05:26 MichaelKegel Exp $
- Author:
- BurkhardWick
|
Method Summary |
void |
alignElements(VisualGraphObject refElement,
java.util.List elements)
Aligns the elements vertically. |
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 |
AbstractAlignVerticalCommand
public AbstractAlignVerticalCommand(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 vertically.
- Specified by:
alignElements in class AbstractAlignCommand
- Parameters:
refElement - The reference element which vertical 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.