org.eclipse.graphiti.pattern
Class MoveShapeFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.impl.AbstractMoveShapeFeature
          extended by org.eclipse.graphiti.pattern.MoveShapeFeatureForPattern
All Implemented Interfaces:
IFeature, IFeatureProviderHolder, IMoveFeature, IMoveShapeFeature, IMoveShape, IDescription, IName

public class MoveShapeFeatureForPattern
extends AbstractMoveShapeFeature

The Class MoveShapeFeatureForPattern.


Field Summary
private  IFeatureForPattern delegate
           
 
Constructor Summary
MoveShapeFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
          Creates a new MoveShapeFeatureForPattern.
 
Method Summary
 boolean canMoveShape(IMoveShapeContext context)
          Can move shape.
 void moveShape(IMoveShapeContext context)
          Move shape.
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractMoveShapeFeature
canExecute, execute, getName
 
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

MoveShapeFeatureForPattern

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

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

canMoveShape

public boolean canMoveShape(IMoveShapeContext context)
Description copied from interface: IMoveShape
Can move shape.

Parameters:
context - the context
Returns:
true, if successful

moveShape

public void moveShape(IMoveShapeContext context)
Description copied from interface: IMoveShape
Move shape.

Parameters:
context - the context


Copyright (c) SAP AG 2005, 2010.