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, setWidth
getX, getY, setLocation, setX, setY
getProperty, getPropertyKeys, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHeight, getWidth
getX, getY
getProperty, getPropertyKeys, putProperty
public AddContext()
AddContext
.public AddContext(IAreaContext context, java.lang.Object newObject)
AddContext
.context
- the contextnewObject
- the new objectpublic java.lang.Object getNewObject()
IAddContext
getNewObject
in interface IAddContext
public Connection getTargetConnection()
ITargetConnectionContext
getTargetConnection
in interface ITargetConnectionContext
public ConnectionDecorator getTargetConnectionDecorator()
ITargetConnectionDecoratorContext
getTargetConnectionDecorator
in interface ITargetConnectionDecoratorContext
public ContainerShape getTargetContainer()
ITargetContext
getTargetContainer
in interface ITargetContext
public 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