Class MoveConnectionDecoratorContext
java.lang.Object
org.eclipse.graphiti.PropertyBag
org.eclipse.graphiti.internal.features.context.impl.base.DefaultContext
org.eclipse.graphiti.features.context.impl.LocationContext
org.eclipse.graphiti.features.context.impl.MoveConnectionDecoratorContext
- All Implemented Interfaces:
IContext,ILocationContext,IMoveConnectionDecoratorContext,IPropertyBag
public class MoveConnectionDecoratorContext
extends LocationContext
implements IMoveConnectionDecoratorContext
The Class MoveConnectionDecoratorContext.
-
Constructor Summary
ConstructorsConstructorDescriptionMoveConnectionDecoratorContext(ConnectionDecorator connectionDecorator, int x, int y, boolean executeAllowed) Creates a newMoveConnectionDecoratorContext. -
Method Summary
Modifier and TypeMethodDescriptionGets the connection decorator.booleanChecks if execute is allowed.protected voidsetConnectionDecorator(ConnectionDecorator connectionDecorator) Sets the connection decorator.protected voidsetExecuteAllowed(boolean executeAllowed) Sets the execute allowed.toString()Methods inherited from class org.eclipse.graphiti.features.context.impl.LocationContext
getX, getY, setLocation, setX, setYMethods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.features.context.ILocationContext
getX, getYMethods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
Constructor Details
-
MoveConnectionDecoratorContext
public MoveConnectionDecoratorContext(ConnectionDecorator connectionDecorator, int x, int y, boolean executeAllowed) Creates a newMoveConnectionDecoratorContext.- Parameters:
connectionDecorator- the connection decoratorx- the xy- the yexecuteAllowed- the execute allowed
-
-
Method Details
-
getConnectionDecorator
Description copied from interface:IMoveConnectionDecoratorContextGets the connection decorator.- Specified by:
getConnectionDecoratorin interfaceIMoveConnectionDecoratorContext- Returns:
- the connection decorator
-
setConnectionDecorator
Sets the connection decorator.- Parameters:
connectionDecorator- the new connection decorator
-
isExecuteAllowed
public boolean isExecuteAllowed()Description copied from interface:IMoveConnectionDecoratorContextChecks if execute is allowed.- Specified by:
isExecuteAllowedin interfaceIMoveConnectionDecoratorContext- Returns:
- true, if execute is allowed
-
setExecuteAllowed
protected void setExecuteAllowed(boolean executeAllowed) Sets the execute allowed.- Parameters:
executeAllowed- the new execute allowed
-
toString
- Overrides:
toStringin classLocationContext
-