org.eclipse.graphiti.features.context.impl
Class CreateContext
java.lang.Object
DefaultContext
org.eclipse.graphiti.features.context.impl.LocationContext
org.eclipse.graphiti.features.context.impl.AreaContext
org.eclipse.graphiti.features.context.impl.CreateContext
- All Implemented Interfaces:
- IAreaContext, IContext, ICreateContext, ILocationContext, ITargetConnectionContext, ITargetContext, IPropertyBag
public class CreateContext
- extends AreaContext
- implements ICreateContext
The Class CreateContext.
targetContainer
private ContainerShape targetContainer
targetConnection
private Connection targetConnection
CreateContext
public CreateContext()
- Creates a new
CreateContext
.
getTargetConnection
public Connection getTargetConnection()
- Description copied from interface:
ITargetConnectionContext
- Gets the target connection.
- Specified by:
getTargetConnection
in interface ITargetConnectionContext
- Returns:
- the target connection where the new pictogram element (currently
this has to be a shape) has to be inserted
getTargetContainer
public ContainerShape getTargetContainer()
- Description copied from interface:
ITargetContext
- Gets the target container.
- Specified by:
getTargetContainer
in interface ITargetContext
- Returns:
- the target container shape where the new pictogram element
(currently this has to be a shape) has to be added
setTargetConnection
public void setTargetConnection(Connection targetConnection)
- Sets the target connection.
- Parameters:
targetConnection
- The target connection to set.
setTargetContainer
public void setTargetContainer(ContainerShape targetContainer)
- Sets the target container.
- Parameters:
targetContainer
- The targetContainer to set.
toString
public String toString()
- Overrides:
toString
in class AreaContext
Copyright (c) SAP AG 2005, 2012.