|
||||||||||
| 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 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. |
String |
getName()
Gets the name. |
IResizeConfiguration |
getResizeConfiguration(IResizeShapeContext context)
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, getDiagramBehavior, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, manageDefaultFont, manageDefaultFont, manageFont, manageFont, 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 String NAME
| Constructor Detail |
|---|
public DefaultResizeShapeFeature(IFeatureProvider fp)
DefaultResizeShapeFeature.
fp - the feature provider| Method Detail |
|---|
public boolean canResizeShape(IResizeShapeContext context)
IResizeShape
canResizeShape in interface IResizeShapecontext - the context
public void resizeShape(IResizeShapeContext context)
IResizeShape
resizeShape in interface IResizeShapecontext - the contextpublic boolean canExecute(IContext context)
IFeature
canExecute in interface IFeaturecontext - this is the general input for this method
IContextpublic void execute(IContext context)
IFeature
execute in interface IFeaturecontext - this is the general input for this methodIContextprotected void resizeShape(Shape currentShape)
currentShape - the current shapepublic String getName()
IName
getName in interface INamegetName in class AbstractFeaturepublic IResizeConfiguration getResizeConfiguration(IResizeShapeContext context)
IResizeFeature
getResizeConfiguration in interface IResizeFeaturecontext - the resizing context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||