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, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canUndo, hasDoneChanges, isAvailable
getDescription
getFeatureProvider
public DefaultResizeShapeFeature(IFeatureProvider fp)
DefaultResizeShapeFeature
.fp
- the feature providerpublic boolean canResizeShape(IResizeShapeContext context)
IResizeShape
canResizeShape
in interface IResizeShape
context
- the contextpublic void resizeShape(IResizeShapeContext context)
IResizeShape
resizeShape
in interface IResizeShape
context
- the contextpublic boolean canExecute(IContext context)
IFeature
canExecute
in interface IFeature
context
- this is the general input for this methodIContext
public void execute(IContext context)
IFeature
public java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
public IResizeConfiguration getResizeConfiguration(IResizeShapeContext context)
IResizeFeature
getResizeConfiguration
in interface IResizeFeature
context
- the resizing context