org.eclipse.graphiti.features.context.impl
Class MoveConnectionDecoratorContext

java.lang.Object
  extended by DefaultContext
      extended by org.eclipse.graphiti.features.context.impl.LocationContext
          extended by org.eclipse.graphiti.features.context.impl.MoveConnectionDecoratorContext
All Implemented Interfaces:
IContext, ILocationContext, IMoveConnectionDecoratorContext, IPropertyBag

public class MoveConnectionDecoratorContext
extends LocationContext
implements IMoveConnectionDecoratorContext

The Class MoveConnectionDecoratorContext.


Field Summary
private  ConnectionDecorator connectionDecorator
           
private  boolean executeAllowed
           
 
Constructor Summary
MoveConnectionDecoratorContext(ConnectionDecorator connectionDecorator, int x, int y, boolean executeAllowed)
          Creates a new MoveConnectionDecoratorContext.
 
Method Summary
 ConnectionDecorator getConnectionDecorator()
          Gets the connection decorator.
 boolean isExecuteAllowed()
          Checks if execute is allowed.
protected  void setConnectionDecorator(ConnectionDecorator connectionDecorator)
          Sets the connection decorator.
protected  void setExecuteAllowed(boolean executeAllowed)
          Sets the execute allowed.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.graphiti.features.context.impl.LocationContext
getX, getY, setLocation, setX, setY
 
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.context.ILocationContext
getX, getY
 
Methods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, putProperty
 

Field Detail

connectionDecorator

private ConnectionDecorator connectionDecorator

executeAllowed

private boolean executeAllowed
Constructor Detail

MoveConnectionDecoratorContext

public MoveConnectionDecoratorContext(ConnectionDecorator connectionDecorator,
                                      int x,
                                      int y,
                                      boolean executeAllowed)
Creates a new MoveConnectionDecoratorContext.

Parameters:
connectionDecorator - the connection decorator
x - the x
y - the y
executeAllowed - the execute allowed
Method Detail

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 java.lang.String toString()
Overrides:
toString in class LocationContext


Copyright (c) SAP AG 2005, 2010.