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

java.lang.Object
  extended by DefaultContext
      extended by org.eclipse.graphiti.features.context.impl.LocationContext
          extended by org.eclipse.graphiti.features.context.impl.AreaContext
              extended by org.eclipse.graphiti.features.context.impl.AddContext
                  extended by org.eclipse.graphiti.features.context.impl.AddConnectionContext
All Implemented Interfaces:
IAddConnectionContext, IAddContext, IAreaContext, IConnectionContext, IContext, ILocationContext, ITargetConnectionContext, ITargetConnectionDecoratorContext, ITargetContext, IPropertyBag

public class AddConnectionContext
extends AddContext
implements IAddConnectionContext

The Class AddConnectionContext.


Field Summary
(package private)  Anchor sourceAnchor
          The target anchor.
(package private)  Anchor targetAnchor
          The target anchor.
 
Constructor Summary
AddConnectionContext(Anchor sourceAnchor, Anchor targetAnchor)
          Creates a new AddConnectionContext.
 
Method Summary
 Anchor getSourceAnchor()
          Gets the source anchor.
 Anchor getTargetAnchor()
          Gets the target anchor.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.graphiti.features.context.impl.AddContext
getNewObject, getTargetConnection, getTargetConnectionDecorator, getTargetContainer, setNewObject, setTargetConnection, setTargetConnectionDecorator, setTargetContainer
 
Methods inherited from class org.eclipse.graphiti.features.context.impl.AreaContext
getHeight, getWidth, setHeight, setSize, setWidth
 
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.IAddContext
getNewObject
 
Methods inherited from interface org.eclipse.graphiti.features.context.IAreaContext
getHeight, getWidth
 
Methods inherited from interface org.eclipse.graphiti.features.context.ILocationContext
getX, getY
 
Methods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
 
Methods inherited from interface org.eclipse.graphiti.features.context.ITargetContext
getTargetContainer
 
Methods inherited from interface org.eclipse.graphiti.features.context.ITargetConnectionContext
getTargetConnection
 
Methods inherited from interface org.eclipse.graphiti.features.context.ITargetConnectionDecoratorContext
getTargetConnectionDecorator
 

Field Detail

sourceAnchor

Anchor sourceAnchor
The target anchor.


targetAnchor

Anchor targetAnchor
The target anchor.

Constructor Detail

AddConnectionContext

public AddConnectionContext(Anchor sourceAnchor,
                            Anchor targetAnchor)
Creates a new AddConnectionContext.

Parameters:
sourceAnchor - the source anchor
targetAnchor - the target anchor
Method Detail

getSourceAnchor

public Anchor getSourceAnchor()
Description copied from interface: IConnectionContext
Gets the source anchor.

Specified by:
getSourceAnchor in interface IConnectionContext
Returns:
the source anchor

getTargetAnchor

public Anchor getTargetAnchor()
Description copied from interface: IConnectionContext
Gets the target anchor.

Specified by:
getTargetAnchor in interface IConnectionContext
Returns:
the target anchor

toString

public java.lang.String toString()
Overrides:
toString in class AddContext


Copyright (c) SAP AG 2005, 2012.