|
||||||||||
| 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.DefaultMoveAnchorFeature
public class DefaultMoveAnchorFeature
The Class DefaultMoveAnchorFeature.
| Field Summary | |
|---|---|
private static String |
NAME
|
| Constructor Summary | |
|---|---|
DefaultMoveAnchorFeature(IFeatureProvider fp)
Creates a new DefaultMoveAnchorFeature. |
|
| Method Summary | |
|---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context. |
boolean |
canMoveAnchor(IMoveAnchorContext context)
Can move anchor. |
void |
execute(IContext context)
Executes the current feature with the given context. |
String |
getName()
Gets the name. |
protected void |
moveAnchor(Anchor anchor,
int posX,
int posY)
Move anchor. |
void |
moveAnchor(IMoveAnchorContext context)
Move anchor. |
void |
postMoveAnchor(IMoveAnchorContext context)
Post move anchor. |
void |
preMoveAnchor(IMoveAnchorContext context)
Pre move anchor. |
| 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 DefaultMoveAnchorFeature(IFeatureProvider fp)
DefaultMoveAnchorFeature.
fp - the feature provider| Method Detail |
|---|
public boolean canMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
canMoveAnchor in interface IMoveAnchorFeaturecontext - the context
public void moveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
moveAnchor in interface IMoveAnchorFeaturecontext - the contextpublic void preMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
preMoveAnchor in interface IMoveAnchorFeaturecontext - the contextpublic void postMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
postMoveAnchor in interface IMoveAnchorFeaturecontext - the context
protected void moveAnchor(Anchor anchor,
int posX,
int posY)
anchor - the anchorposX - the pos xposY - the pos ypublic 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 methodIContextpublic String getName()
IName
getName in interface INamegetName in class AbstractFeature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||