org.eclipse.graphiti.mm.pictograms.impl
Class ConnectionDecoratorImpl

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.graphiti.mm.impl.PropertyContainerImpl
          extended by org.eclipse.graphiti.mm.impl.GraphicsAlgorithmContainerImpl
              extended by org.eclipse.graphiti.mm.pictograms.impl.PictogramElementImpl
                  extended by org.eclipse.graphiti.mm.pictograms.impl.AnchorContainerImpl
                      extended by org.eclipse.graphiti.mm.pictograms.impl.ShapeImpl
                          extended by org.eclipse.graphiti.mm.pictograms.impl.ConnectionDecoratorImpl
All Implemented Interfaces:
GraphicsAlgorithmContainer, AnchorContainer, ConnectionDecorator, PictogramElement, Shape, PropertyContainer

public class ConnectionDecoratorImpl
extends ShapeImpl
implements ConnectionDecorator

An implementation of the model object 'Connection Decorator'.

The following features are implemented:


Field Summary
protected  double location
          The cached value of the 'Location' attribute.
protected static double LOCATION_EDEFAULT
          The default value of the 'Location' attribute.
protected static boolean LOCATION_RELATIVE_EDEFAULT
          The default value of the 'Location Relative' attribute.
protected  boolean locationRelative
          The cached value of the 'Location Relative' attribute.
 
Fields inherited from class org.eclipse.graphiti.mm.pictograms.impl.AnchorContainerImpl
anchors
 
Fields inherited from class org.eclipse.graphiti.mm.pictograms.impl.PictogramElementImpl
active, ACTIVE_EDEFAULT, graphicsAlgorithm, link, visible, VISIBLE_EDEFAULT
 
Fields inherited from class org.eclipse.graphiti.mm.impl.PropertyContainerImpl
properties
 
Constructor Summary
protected ConnectionDecoratorImpl()
           
 
Method Summary
 Connection basicGetConnection()
           
 NotificationChain basicSetConnection(Connection newConnection, NotificationChain msgs)
           
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Connection getConnection()
           
 double getLocation()
           
 boolean isLocationRelative()
           
 void setConnection(Connection newConnection)
           
 void setLocation(double newLocation)
           
 void setLocationRelative(boolean newLocationRelative)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.ShapeImpl
basicGetContainer, basicSetContainer, getContainer, setContainer
 
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.AnchorContainerImpl
getAnchors
 
Methods inherited from class org.eclipse.graphiti.mm.pictograms.impl.PictogramElementImpl
basicGetGraphicsAlgorithm, basicGetLink, basicSetGraphicsAlgorithm, basicSetLink, getGraphicsAlgorithm, getLink, isActive, isVisible, setActive, setGraphicsAlgorithm, setLink, setVisible
 
Methods inherited from class org.eclipse.graphiti.mm.impl.PropertyContainerImpl
getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.Shape
getContainer, setContainer
 
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.AnchorContainer
getAnchors
 
Methods inherited from interface org.eclipse.graphiti.mm.pictograms.PictogramElement
getGraphicsAlgorithm, getLink, isActive, isVisible, setActive, setGraphicsAlgorithm, setLink, setVisible
 
Methods inherited from interface org.eclipse.graphiti.mm.PropertyContainer
getProperties
 

Field Detail

LOCATION_RELATIVE_EDEFAULT

protected static final boolean LOCATION_RELATIVE_EDEFAULT
The default value of the 'Location Relative' attribute.

See Also:
isLocationRelative(), Constant Field Values

locationRelative

protected boolean locationRelative
The cached value of the 'Location Relative' attribute.

See Also:
isLocationRelative()

LOCATION_EDEFAULT

protected static final double LOCATION_EDEFAULT
The default value of the 'Location' attribute.

See Also:
getLocation(), Constant Field Values

location

protected double location
The cached value of the 'Location' attribute.

See Also:
getLocation()
Constructor Detail

ConnectionDecoratorImpl

protected ConnectionDecoratorImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class ShapeImpl

isLocationRelative

public boolean isLocationRelative()

Specified by:
isLocationRelative in interface ConnectionDecorator
Returns:
the value of the 'Location Relative' attribute.
See Also:
ConnectionDecorator.setLocationRelative(boolean), PictogramsPackage.getConnectionDecorator_LocationRelative()

setLocationRelative

public void setLocationRelative(boolean newLocationRelative)

Specified by:
setLocationRelative in interface ConnectionDecorator
Parameters:
newLocationRelative - the new value of the 'Location Relative' attribute.
See Also:
ConnectionDecorator.isLocationRelative()

getLocation

public double getLocation()

Specified by:
getLocation in interface ConnectionDecorator
Returns:
the value of the 'Location' attribute.
See Also:
ConnectionDecorator.setLocation(double), PictogramsPackage.getConnectionDecorator_Location()

setLocation

public void setLocation(double newLocation)

Specified by:
setLocation in interface ConnectionDecorator
Parameters:
newLocation - the new value of the 'Location' attribute.
See Also:
ConnectionDecorator.getLocation()

getConnection

public Connection getConnection()

Specified by:
getConnection in interface ConnectionDecorator
Returns:
the value of the 'Connection' container reference.
See Also:
ConnectionDecorator.setConnection(Connection), PictogramsPackage.getConnectionDecorator_Connection(), Connection.getConnectionDecorators()

basicGetConnection

public Connection basicGetConnection()


basicSetConnection

public NotificationChain basicSetConnection(Connection newConnection,
                                            NotificationChain msgs)


setConnection

public void setConnection(Connection newConnection)

Specified by:
setConnection in interface ConnectionDecorator
Parameters:
newConnection - the new value of the 'Connection' container reference.
See Also:
ConnectionDecorator.getConnection()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class ShapeImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class ShapeImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class ShapeImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Overrides:
eGet in class ShapeImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Overrides:
eSet in class ShapeImpl

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class ShapeImpl

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class ShapeImpl

toString

public java.lang.String toString()

Overrides:
toString in class PictogramElementImpl


Copyright (c) SAP AG 2005, 2010.