public class DefaultResizeShapeFeature extends AbstractFeature implements IResizeShapeFeature
| Constructor and Description |
|---|
DefaultResizeShapeFeature(IFeatureProvider fp)
Creates a new
DefaultResizeShapeFeature. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context.
|
boolean |
canResizeShape(IResizeShapeContext context)
Can resize shape.
|
void |
execute(IContext context)
Executes the current feature with the given context.
|
java.lang.String |
getName()
Gets the name.
|
IResizeConfiguration |
getResizeConfiguration(IResizeShapeContext context)
Provides configuration object, which describes the resize behavior
|
void |
resizeShape(IResizeShapeContext context)
Resize shape.
|
canUndo, getDescription, getFeatureProvider, hasDoneChanges, isAvailable, manageFont, manageFont, setProgressCallback, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanUndo, hasDoneChanges, isAvailablegetDescriptiongetFeatureProviderpublic DefaultResizeShapeFeature(IFeatureProvider fp)
DefaultResizeShapeFeature.fp - the feature providerpublic boolean canResizeShape(IResizeShapeContext context)
IResizeShapecanResizeShape in interface IResizeShapecontext - the contextpublic void resizeShape(IResizeShapeContext context)
IResizeShaperesizeShape in interface IResizeShapecontext - the contextpublic boolean canExecute(IContext context)
IFeaturecanExecute in interface IFeaturecontext - this is the general input for this methodIContextpublic void execute(IContext context)
IFeaturepublic java.lang.String getName()
INamegetName in interface INamegetName in class AbstractFeaturepublic IResizeConfiguration getResizeConfiguration(IResizeShapeContext context)
IResizeFeaturegetResizeConfiguration in interface IResizeFeaturecontext - the resizing context