org.eclipse.graphiti.features.context.impl
Class MoveConnectionDecoratorContext
java.lang.Object
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.
connectionDecorator
private ConnectionDecorator connectionDecorator
executeAllowed
private boolean executeAllowed
MoveConnectionDecoratorContext
public MoveConnectionDecoratorContext(ConnectionDecorator connectionDecorator,
int x,
int y,
boolean executeAllowed)
- Creates a new
MoveConnectionDecoratorContext
.
- Parameters:
connectionDecorator
- the connection decoratorx
- the xy
- the yexecuteAllowed
- the execute allowed
getConnectionDecorator
public ConnectionDecorator getConnectionDecorator()
- Description copied from interface:
IMoveConnectionDecoratorContext
- Gets the connection decorator.
- Specified by:
getConnectionDecorator
in interface IMoveConnectionDecoratorContext
- Returns:
- the connection decorator
setConnectionDecorator
protected void setConnectionDecorator(ConnectionDecorator connectionDecorator)
- Sets the connection decorator.
- Parameters:
connectionDecorator
- the new connection decorator
isExecuteAllowed
public boolean isExecuteAllowed()
- Description copied from interface:
IMoveConnectionDecoratorContext
- Checks if execute is allowed.
- Specified by:
isExecuteAllowed
in interface IMoveConnectionDecoratorContext
- Returns:
- true, if execute is allowed
setExecuteAllowed
protected void setExecuteAllowed(boolean executeAllowed)
- Sets the execute allowed.
- Parameters:
executeAllowed
- the new execute allowed
toString
public String toString()
- Overrides:
toString
in class LocationContext
Copyright (c) SAP AG 2005, 2010.