public class AddContext extends AreaContext implements IAddContext
| Constructor and Description |
|---|
AddContext()
Creates a new
AddContext. |
AddContext(IAreaContext context,
java.lang.Object newObject)
Creates a new
AddContext. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getNewObject()
A pictogram element has to be added.
|
Connection |
getTargetConnection()
Gets the target connection.
|
ConnectionDecorator |
getTargetConnectionDecorator()
Gets the target connection decorator.
|
ContainerShape |
getTargetContainer()
Gets the target container.
|
void |
setNewObject(java.lang.Object newObject)
Sets the new object.
|
void |
setTargetConnection(Connection targetConnection)
Sets the target connection.
|
void |
setTargetConnectionDecorator(ConnectionDecorator targetConnectionDecorator)
Sets the target connection decorator.
|
void |
setTargetContainer(ContainerShape targetContainer)
Sets the target container.
|
java.lang.String |
toString() |
getHeight, getWidth, setHeight, setSize, setWidthgetX, getY, setLocation, setX, setYgetProperty, getPropertyKeys, putPropertyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeight, getWidthgetX, getYgetProperty, getPropertyKeys, putPropertypublic AddContext()
AddContext.public AddContext(IAreaContext context, java.lang.Object newObject)
AddContext.context - the contextnewObject - the new objectpublic java.lang.Object getNewObject()
IAddContextgetNewObject in interface IAddContextpublic Connection getTargetConnection()
ITargetConnectionContextgetTargetConnection in interface ITargetConnectionContextpublic ConnectionDecorator getTargetConnectionDecorator()
ITargetConnectionDecoratorContextgetTargetConnectionDecorator in interface ITargetConnectionDecoratorContextpublic ContainerShape getTargetContainer()
ITargetContextgetTargetContainer in interface ITargetContextpublic void setNewObject(java.lang.Object newObject)
newObject - the new objectpublic void setTargetContainer(ContainerShape targetContainer)
targetContainer - The target container to set.public void setTargetConnection(Connection targetConnection)
targetConnection - The target connection to set.public void setTargetConnectionDecorator(ConnectionDecorator targetConnectionDecorator)
targetConnectionDecorator - The target connection decorator to set.public java.lang.String toString()
toString in class AreaContext