Class AddContext
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.AreaContext
org.eclipse.graphiti.features.context.impl.AddContext
- All Implemented Interfaces:
IAddContext,IAreaContext,IContext,ILocationContext,ITargetConnectionContext,ITargetConnectionDecoratorContext,ITargetContext,IPropertyBag
- Direct Known Subclasses:
AddConnectionContext
The Class AddContext.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAddContext.AddContext(IAreaContext context, Object newObject) Creates a newAddContext. -
Method Summary
Modifier and TypeMethodDescriptionA pictogram element has to be added.Gets the target connection.Gets the target connection decorator.Gets the target container.voidsetNewObject(Object newObject) Sets the new object.voidsetTargetConnection(Connection targetConnection) Sets the target connection.voidsetTargetConnectionDecorator(ConnectionDecorator targetConnectionDecorator) Sets the target connection decorator.voidsetTargetContainer(ContainerShape targetContainer) Sets the target container.toString()Methods inherited from class org.eclipse.graphiti.features.context.impl.AreaContext
getHeight, getWidth, setHeight, setSize, setWidthMethods 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.IAreaContext
getHeight, getWidthMethods inherited from interface org.eclipse.graphiti.features.context.ILocationContext
getX, getYMethods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
Constructor Details
-
AddContext
public AddContext()Creates a newAddContext. -
AddContext
Creates a newAddContext.- Parameters:
context- the contextnewObject- the new object
-
-
Method Details
-
getNewObject
Description copied from interface:IAddContextA pictogram element has to be added. This pictogram element has to link to a domain model element.- Specified by:
getNewObjectin interfaceIAddContext- Returns:
- instance of a domain model element
-
getTargetConnection
Description copied from interface:ITargetConnectionContextGets the target connection.- Specified by:
getTargetConnectionin interfaceITargetConnectionContext- Returns:
- the target connection where the new pictogram element (currently this has to be a shape) has to be inserted
-
getTargetConnectionDecorator
Description copied from interface:ITargetConnectionDecoratorContextGets the target connection decorator.- Specified by:
getTargetConnectionDecoratorin interfaceITargetConnectionDecoratorContext- Returns:
- the target connection decorator where the new pictogram element (currently this has to be a shape) has to be inserted
-
getTargetContainer
Description copied from interface:ITargetContextGets the target container.- Specified by:
getTargetContainerin interfaceITargetContext- Returns:
- the target container shape where the new pictogram element (currently this has to be a shape) has to be added
-
setNewObject
Sets the new object.- Parameters:
newObject- the new object
-
setTargetContainer
Sets the target container.- Parameters:
targetContainer- The target container to set.
-
setTargetConnection
Sets the target connection.- Parameters:
targetConnection- The target connection to set.
-
setTargetConnectionDecorator
Sets the target connection decorator.- Parameters:
targetConnectionDecorator- The target connection decorator to set.
-
toString
- Overrides:
toStringin classAreaContext
-