org.eclipse.graphiti.pattern
Class ResizeShapeFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.impl.DefaultResizeShapeFeature
          extended by org.eclipse.graphiti.pattern.ResizeShapeFeatureForPattern
All Implemented Interfaces:
IFeature, IFeatureProviderHolder, IResizeFeature, IResizeShapeFeature, IResizeShape, IDescription, IName

public class ResizeShapeFeatureForPattern
extends DefaultResizeShapeFeature

The Class ResizeShapeFeatureForPattern.


Field Summary
private  IFeatureForPattern delegate
           
 
Constructor Summary
ResizeShapeFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
          Creates a new ResizeShapeFeatureForPattern.
 
Method Summary
 boolean canResizeShape(IResizeShapeContext context)
          Can resize shape.
 IResizeConfiguration getResizeConfiguration()
          Provides configuration object, which describes the resize behavior
 void resizeShape(IResizeShapeContext context)
          Resize shape.
 
Methods inherited from class org.eclipse.graphiti.features.impl.DefaultResizeShapeFeature
canExecute, execute, getName, resizeShape
 
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

delegate

private IFeatureForPattern delegate
Constructor Detail

ResizeShapeFeatureForPattern

public ResizeShapeFeatureForPattern(IFeatureProvider featureProvider,
                                    IPattern pattern)
Creates a new ResizeShapeFeatureForPattern.

Parameters:
featureProvider - the feature provider
pattern - the pattern
Method Detail

canResizeShape

public boolean canResizeShape(IResizeShapeContext context)
Description copied from interface: IResizeShape
Can resize shape.

Specified by:
canResizeShape in interface IResizeShape
Overrides:
canResizeShape in class DefaultResizeShapeFeature
Parameters:
context - the context
Returns:
true, if successful

resizeShape

public void resizeShape(IResizeShapeContext context)
Description copied from interface: IResizeShape
Resize shape.

Specified by:
resizeShape in interface IResizeShape
Overrides:
resizeShape in class DefaultResizeShapeFeature
Parameters:
context - the context

getResizeConfiguration

public IResizeConfiguration getResizeConfiguration()
Description copied from interface: IResizeFeature
Provides configuration object, which describes the resize behavior

Specified by:
getResizeConfiguration in interface IResizeFeature
Overrides:
getResizeConfiguration in class DefaultResizeShapeFeature
Returns:
configuration object


Copyright (c) SAP AG 2005, 2010.