|
||||||||||
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.DefaultResizeShapeFeature
org.eclipse.graphiti.pattern.ResizeShapeFeatureForPattern
public class ResizeShapeFeatureForPattern
The Class ResizeShapeFeatureForPattern.
Field Summary | |
---|---|
private IFeatureForPattern |
delegate
|
Constructor Summary | |
---|---|
ResizeShapeFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
Creates a new ResizeShapeFeatureForPattern . |
Method Summary | |
---|---|
boolean |
canRedo(IContext context)
Decides if the processed feature can be re-done. |
boolean |
canResizeShape(IResizeShapeContext context)
Can resize shape. |
boolean |
canUndo(IContext context)
Decides if the current feature can be undone - this is the undo of the execute operation. |
IResizeConfiguration |
getResizeConfiguration(IResizeShapeContext context)
Provides configuration object, which describes the resize behavior |
void |
redo(IContext context)
This method will be called to actually do the work needed for redo. |
void |
resizeShape(IResizeShapeContext context)
Resize shape. |
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.DefaultResizeShapeFeature |
---|
canExecute, 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 ResizeShapeFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
ResizeShapeFeatureForPattern
.
featureProvider
- the feature providerpattern
- the patternMethod Detail |
---|
public boolean canResizeShape(IResizeShapeContext context)
IResizeShape
canResizeShape
in interface IResizeShape
canResizeShape
in class DefaultResizeShapeFeature
context
- the context
public void resizeShape(IResizeShapeContext context)
IResizeShape
resizeShape
in interface IResizeShape
resizeShape
in class DefaultResizeShapeFeature
context
- the contextpublic IResizeConfiguration getResizeConfiguration(IResizeShapeContext context)
IResizeFeature
getResizeConfiguration
in interface IResizeFeature
getResizeConfiguration
in class DefaultResizeShapeFeature
context
- the resizing context
public boolean canUndo(IContext context)
IFeature
canUndo
in interface ICustomUndoableFeature
canUndo
in interface IFeature
canUndo
in class AbstractFeature
context
- this is the general input for this method
IContext
public void undo(IContext context)
ICustomUndoableFeature
undo
in interface ICustomUndoableFeature
context
- 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 ICustomUndoableFeature
context
- 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 ICustomUndoableFeature
context
- 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 |