|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.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
Abstract base class for align commands which provides the basic functionality for gathering the selected elements and revalidating the graph afterwards.
| Constructor Summary | |
AbstractAlignCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Constructor |
|
| Method Summary | |
abstract void |
alignElements(VisualGraphObject refElement,
java.util.List elements)
Aligns the given elements according to the specific command implementation |
int |
getMinimumNodeDistance()
Returns the minimum node distance which can used to move overlapping nodes apart. |
protected java.util.List |
getSelection()
Gathers the selected nodes and returns them as a list. |
boolean |
isEnabled()
Checks if there is something selected in the current document. |
void |
perform(java.lang.Object args)
Gathers selected elements from graph and performs the align action. |
void |
setMinimumNodeDistance(int minimumNodeDistance)
Sets the minimum node distance which can used to move overlapping nodes apart. |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentSelectionCommand |
hasSelection |
| 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, getTitle |
| 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 |
public AbstractAlignCommand(ApplicationFrame applicationFrame,
java.lang.String command)
applicationFrame - The application framecommand - The id of this command, will be used to
register in the commandregistry| Method Detail |
public abstract void alignElements(VisualGraphObject refElement,
java.util.List elements)
refElement - The reference elementelements - All elements to be aligned
(usually includes the reference element)public void perform(java.lang.Object args)
perform in interface Commandperform in class CommonBaseCommandargs - Is ignoredCommand.perform(java.lang.Object)public int getMinimumNodeDistance()
public void setMinimumNodeDistance(int minimumNodeDistance)
minimumNodeDistance - The minimumNodeDistance to set.protected java.util.List getSelection()
getSelection in class GraphDocumentSelectionCommandpublic boolean isEnabled()
GraphDocumentSelectionCommand
isEnabled in interface CommandisEnabled in class GraphDocumentSelectionCommandEditGraphDocumentCommand.isEnabled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||