|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.impl.AbstractLayoutFeature
org.eclipse.graphiti.pattern.LayoutFeatureForPattern
public class LayoutFeatureForPattern
This feature wraps the layout functionality of a pattern for calls of the Graphiti framework. Clients should not need to use this class directly.
| Field Summary | |
|---|---|
private IFeatureForPattern |
delegate
|
| Constructor Summary | |
|---|---|
LayoutFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
Creates a new LayoutFeatureForPattern. |
|
| Method Summary | |
|---|---|
boolean |
canLayout(ILayoutContext context)
Checks whether the current pictogram element of the given context can be layouted. |
boolean |
canRedo(IContext context)
Decides if the processed feature can be re-done. |
boolean |
canUndo(IContext context)
Decides if the current feature can be undone - this is the undo of the execute operation. |
boolean |
layout(ILayoutContext context)
Layoutes the pictogram element. |
void |
redo(IContext context)
This method will be called to actually do the work needed for redo. |
void |
undo(IContext context)
This method will be called to actually do the work needed for undo. |
| Methods inherited from class org.eclipse.graphiti.features.impl.AbstractLayoutFeature |
|---|
canExecute, canLayoutPictogramElement, execute, getName, resizeShape |
| Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
|---|
addGraphicalRepresentation, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString, updatePictogramElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.graphiti.features.IFeature |
|---|
hasDoneChanges, isAvailable |
| Methods inherited from interface org.eclipse.graphiti.IDescription |
|---|
getDescription |
| Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
|---|
getFeatureProvider |
| Field Detail |
|---|
private IFeatureForPattern delegate
| Constructor Detail |
|---|
public LayoutFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
LayoutFeatureForPattern.
featureProvider - the feature providerpattern - the pattern| Method Detail |
|---|
public boolean canLayout(ILayoutContext context)
ILayout
canLayout in interface ILayoutcontext - the context
public boolean layout(ILayoutContext context)
ILayout
layout in interface ILayoutcontext - the context
public boolean canUndo(IContext context)
IFeature
canUndo in interface ICustomUndoableFeaturecanUndo in interface IFeaturecanUndo in class AbstractFeaturecontext - this is the general input for this method
IContextpublic void undo(IContext context)
ICustomUndoableFeature
undo in interface ICustomUndoableFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic boolean canRedo(IContext context)
ICustomUndoableFeature
Note that as soon as any feature reports false here, also
all consecutive entries in the command stack are no longer reachable for
redo.
canRedo in interface ICustomUndoableFeaturecontext - this is the instance of the IContext object that was
in use when executing the feature
public void redo(IContext context)
ICustomUndoableFeature
redo in interface ICustomUndoableFeaturecontext - this is the instance of the IContext object that was
in use when executing the feature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||