|
||||||||||
| 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.AbstractMoveShapeFeature
org.eclipse.graphiti.features.impl.DefaultMoveShapeFeature
public class DefaultMoveShapeFeature
The Class DefaultMoveShapeFeature.
| Constructor Summary | |
|---|---|
DefaultMoveShapeFeature(IFeatureProvider fp)
Creates a new DefaultMoveShapeFeature. |
|
| Method Summary | |
|---|---|
protected boolean |
avoidNegativeCoordinates()
Sublasses can override this method. |
private FreeFormConnection[] |
calculateConnectedConnections(IMoveShapeContext context)
|
private FreeFormConnection[] |
calculateContainerConnections(IMoveShapeContext context)
|
boolean |
canMoveShape(IMoveShapeContext context)
Can move shape. |
private List<Anchor> |
getAnchors(Shape theShape)
|
protected void |
internalMove(IMoveShapeContext context)
Internal move. |
protected void |
moveAllBendpoints(IMoveShapeContext context)
Move all bendpoints. |
private void |
moveAllBendpointsOnFFConnection(FreeFormConnection connection,
int deltaX,
int deltaY)
|
void |
moveShape(IMoveShapeContext context)
Move shape. |
protected void |
postMoveShape(IMoveShapeContext context)
Post move shape. |
protected void |
preMoveShape(IMoveShapeContext context)
Pre 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, 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 |
| Constructor Detail |
|---|
public DefaultMoveShapeFeature(IFeatureProvider fp)
DefaultMoveShapeFeature.
fp - the feature provider| Method Detail |
|---|
protected boolean avoidNegativeCoordinates()
public boolean canMoveShape(IMoveShapeContext context)
IMoveShape
context - the context
public void moveShape(IMoveShapeContext context)
IMoveShape
context - the contextprotected void moveAllBendpoints(IMoveShapeContext context)
context - the contextprotected void postMoveShape(IMoveShapeContext context)
context - the contextprotected void preMoveShape(IMoveShapeContext context)
context - the contextprotected void internalMove(IMoveShapeContext context)
context - the contextprivate FreeFormConnection[] calculateContainerConnections(IMoveShapeContext context)
private FreeFormConnection[] calculateConnectedConnections(IMoveShapeContext context)
private void moveAllBendpointsOnFFConnection(FreeFormConnection connection,
int deltaX,
int deltaY)
private List<Anchor> getAnchors(Shape theShape)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||