public class DefaultAddBendpointFeature extends AbstractFeature implements IAddBendpointFeature
IAddBendpointFeature
for yourself.Constructor and Description |
---|
DefaultAddBendpointFeature(IFeatureProvider fp)
Creates a new
DefaultAddBendpointFeature . |
Modifier and Type | Method and Description |
---|---|
void |
addBendpoint(IAddBendpointContext context)
Adds a bendpoint.
|
boolean |
canAddBendpoint(IAddBendpointContext context)
Checks if bendpoint can be added.
|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context.
|
void |
execute(IContext context)
Executes the current feature with the given context.
|
java.lang.String |
getName()
Gets the name.
|
canUndo, getDescription, getFeatureProvider, hasDoneChanges, isAvailable, manageFont, manageFont, setProgressCallback, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canUndo, hasDoneChanges, isAvailable
getDescription
getFeatureProvider
public DefaultAddBendpointFeature(IFeatureProvider fp)
DefaultAddBendpointFeature
.fp
- the feature providerpublic boolean canAddBendpoint(IAddBendpointContext context)
IAddBendpointFeature
canAddBendpoint
in interface IAddBendpointFeature
context
- the contextpublic void addBendpoint(IAddBendpointContext context)
IAddBendpointFeature
addBendpoint
in interface IAddBendpointFeature
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