Class DefaultMoveShapeFeature
java.lang.Object
org.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.impl.AbstractMoveShapeFeature
org.eclipse.graphiti.features.impl.DefaultMoveShapeFeature
- All Implemented Interfaces:
IFeature,IFeatureProviderHolder,IMoveFeature,IMoveShapeFeature,IMoveShape,IDescription,IName
The Class DefaultMoveShapeFeature.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanSublasses can override this method.booleancanMoveShape(IMoveShapeContext context) Can move shape.protected voidinternalMove(IMoveShapeContext context) Internal move.protected voidmoveAllBendpoints(IMoveShapeContext context) Move all bendpoints.voidmoveShape(IMoveShapeContext context) Move shape.protected voidpostMoveShape(IMoveShapeContext context) Post move shape.protected voidpreMoveShape(IMoveShapeContext context) Pre move shape.Methods inherited from class org.eclipse.graphiti.features.impl.AbstractMoveShapeFeature
canExecute, execute, getNameMethods 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, manageFont, manageFont, setProgressCallback, toString, updatePictogramElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.IDescription
getDescriptionMethods inherited from interface org.eclipse.graphiti.features.IFeature
canUndo, hasDoneChanges, isAvailableMethods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
-
Constructor Details
-
DefaultMoveShapeFeature
Creates a newDefaultMoveShapeFeature.- Parameters:
fp- the feature provider
-
-
Method Details
-
avoidNegativeCoordinates
protected boolean avoidNegativeCoordinates()Sublasses can override this method.- Returns:
- true if moving to negative coordinates should not be possible
-
canMoveShape
Description copied from interface:IMoveShapeCan move shape.- Parameters:
context- the context- Returns:
- true, if successful
-
moveShape
Description copied from interface:IMoveShapeMove shape.- Parameters:
context- the context
-
moveAllBendpoints
Move all bendpoints. Move bendpoints within a container shape.- Parameters:
context- the context
-
postMoveShape
Post move shape.- Parameters:
context- the context
-
preMoveShape
Pre move shape.- Parameters:
context- the context
-
internalMove
Internal move.- Parameters:
context- the context
-