|
||||||||||
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
public class DefaultResizeShapeFeature
The Class DefaultResizeShapeFeature.
Field Summary | |
---|---|
private static java.lang.String |
NAME
|
Constructor Summary | |
---|---|
DefaultResizeShapeFeature(IFeatureProvider fp)
Creates a new DefaultResizeShapeFeature . |
Method Summary | |
---|---|
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()
Provides configuration object, which describes the resize behavior |
void |
resizeShape(IResizeShapeContext context)
Resize shape. |
protected void |
resizeShape(Shape currentShape)
Resize shape. |
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
---|
addGraphicalRepresentation, canUndo, 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 |
---|
canUndo, hasDoneChanges, isAvailable |
Methods inherited from interface org.eclipse.graphiti.IDescription |
---|
getDescription |
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Field Detail |
---|
private static final java.lang.String NAME
Constructor Detail |
---|
public DefaultResizeShapeFeature(IFeatureProvider fp)
DefaultResizeShapeFeature
.
fp
- the feature providerMethod Detail |
---|
public boolean canResizeShape(IResizeShapeContext context)
IResizeShape
canResizeShape
in interface IResizeShape
context
- the context
public 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 method
IContext
public void execute(IContext context)
IFeature
execute
in interface IFeature
context
- this is the general input for this methodIContext
protected void resizeShape(Shape currentShape)
currentShape
- the current shapepublic java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature
public IResizeConfiguration getResizeConfiguration()
IResizeFeature
getResizeConfiguration
in interface IResizeFeature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |