Class KPortImpl

java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
All Implemented Interfaces:
EMapPropertyHolder, KGraphElement, KLabeledGraphElement, KLayoutData, KPort, KShapeLayout, org.eclipse.elk.graph.properties.IPropertyHolder, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class KPortImpl extends KLabeledGraphElementImpl implements KPort
An implementation of the model object 'KPort'.

The following features are implemented:

EMF generated code
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

    org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl

    Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

    org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList

    Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

    org.eclipse.emf.ecore.InternalEObject.EStore
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.eclipse.emf.common.util.EList<KEdge>
    The cached value of the 'Edges' reference list.
    protected float
    The cached value of the 'Height' attribute.
    protected static final float
    The default value of the 'Height' attribute.
    protected KInsets
    The cached value of the 'Insets' containment reference.
    protected float
    The cached value of the 'Width' attribute.
    protected static final float
    The default value of the 'Width' attribute.
    protected float
    The cached value of the 'Xpos' attribute.
    protected static final float
    The default value of the 'Xpos' attribute.
    protected float
    The cached value of the 'Ypos' attribute.
    protected static final float
    The default value of the 'Ypos' attribute.

    Fields inherited from class de.cau.cs.kieler.klighd.kgraph.impl.KLabeledGraphElementImpl

    labels

    Fields inherited from class de.cau.cs.kieler.klighd.kgraph.impl.KGraphElementImpl

    data

    Fields inherited from class de.cau.cs.kieler.klighd.kgraph.impl.EMapPropertyHolderImpl

    persistentEntries, properties

    Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

    eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY

    Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

    EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET

    Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

    EOPPOSITE_FEATURE_BASE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyVector(org.eclipse.elk.core.math.KVector pos)
    org.eclipse.emf.common.notify.NotificationChain
    basicSetInsets(KInsets newInsets, org.eclipse.emf.common.notify.NotificationChain msgs)
    org.eclipse.emf.common.notify.NotificationChain
    basicSetNode(KNode newNode, org.eclipse.emf.common.notify.NotificationChain msgs)
    org.eclipse.elk.core.math.KVector
    int
    eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
    org.eclipse.emf.common.notify.NotificationChain
    eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
    int
    eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
    eGet(int featureID, boolean resolve, boolean coreType)
    org.eclipse.emf.common.notify.NotificationChain
    eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
    org.eclipse.emf.common.notify.NotificationChain
    eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
    boolean
    eIsSet(int featureID)
    void
    eSet(int featureID, Object newValue)
    protected org.eclipse.emf.ecore.EClass
    void
    eUnset(int featureID)
    org.eclipse.emf.common.util.EList<KEdge>
    float
    float
    float
    float
    boolean
    void
    void
    setHeight(float newHeight)
    void
    setInsets(KInsets newInsets)
    void
    setNode(KNode newNode)
    void
    setPos(float newXpos, float newYpos)
    void
    setSize(float newWidth, float newHeight)
    void
    setWidth(float newWidth)
    void
    setXpos(float newXpos)
    void
    setYpos(float newYpos)

    Methods inherited from class de.cau.cs.kieler.klighd.kgraph.impl.KLabeledGraphElementImpl

    getLabels

    Methods inherited from class de.cau.cs.kieler.klighd.kgraph.impl.KGraphElementImpl

    getData, getData, getData

    Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

    eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI

    Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

    eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues

    Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

    eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface de.cau.cs.kieler.klighd.kgraph.EMapPropertyHolder

    getPersistentEntries, getProperties, makePersistent

    Methods inherited from interface org.eclipse.emf.ecore.EObject

    eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset

    Methods inherited from interface org.eclipse.emf.ecore.InternalEObject

    eNotificationRequired

    Methods inherited from interface org.eclipse.elk.graph.properties.IPropertyHolder

    copyProperties, getAllProperties, getProperty, hasProperty, setProperty

    Methods inherited from interface de.cau.cs.kieler.klighd.kgraph.KGraphElement

    getData, getData, getData

    Methods inherited from interface de.cau.cs.kieler.klighd.kgraph.KLabeledGraphElement

    getLabels

    Methods inherited from interface org.eclipse.emf.common.notify.Notifier

    eAdapters, eDeliver, eNotify, eSetDeliver
  • Field Details

    • XPOS_EDEFAULT

      protected static final float XPOS_EDEFAULT
      The default value of the 'Xpos' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • xpos

      protected float xpos
      The cached value of the 'Xpos' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • YPOS_EDEFAULT

      protected static final float YPOS_EDEFAULT
      The default value of the 'Ypos' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • ypos

      protected float ypos
      The cached value of the 'Ypos' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • WIDTH_EDEFAULT

      protected static final float WIDTH_EDEFAULT
      The default value of the 'Width' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • width

      protected float width
      The cached value of the 'Width' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • HEIGHT_EDEFAULT

      protected static final float HEIGHT_EDEFAULT
      The default value of the 'Height' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • height

      protected float height
      The cached value of the 'Height' attribute.
      See Also:
      EMF generated code
      EMF ordered element
    • insets

      protected KInsets insets
      The cached value of the 'Insets' containment reference.
      See Also:
      EMF generated code
      EMF ordered element
    • edges

      protected org.eclipse.emf.common.util.EList<KEdge> edges
      The cached value of the 'Edges' reference list.
      See Also:
      EMF generated code
      EMF ordered element
  • Constructor Details

    • KPortImpl

      protected KPortImpl()
      EMF generated code
  • Method Details

    • eStaticClass

      protected org.eclipse.emf.ecore.EClass eStaticClass()
      Overrides:
      eStaticClass in class KLabeledGraphElementImpl
      EMF generated code
    • getXpos

      public float getXpos()
      Specified by:
      getXpos in interface KShapeLayout
      Returns:
      the value of the 'Xpos' attribute.
      See Also:
      EMF generated code
    • setXpos

      public void setXpos(float newXpos)
      Specified by:
      setXpos in interface KShapeLayout
      Parameters:
      newXpos - the new value of the 'Xpos' attribute.
      See Also:
      EMF generated code
    • getYpos

      public float getYpos()
      Specified by:
      getYpos in interface KShapeLayout
      Returns:
      the value of the 'Ypos' attribute.
      See Also:
      EMF generated code
    • setYpos

      public void setYpos(float newYpos)
      Specified by:
      setYpos in interface KShapeLayout
      Parameters:
      newYpos - the new value of the 'Ypos' attribute.
      See Also:
      EMF generated code
    • getWidth

      public float getWidth()
      Specified by:
      getWidth in interface KShapeLayout
      Returns:
      the value of the 'Width' attribute.
      See Also:
      EMF generated code
    • setWidth

      public void setWidth(float newWidth)
      Specified by:
      setWidth in interface KShapeLayout
      Parameters:
      newWidth - the new value of the 'Width' attribute.
      See Also:
      EMF generated code
    • getHeight

      public float getHeight()
      Specified by:
      getHeight in interface KShapeLayout
      Returns:
      the value of the 'Height' attribute.
      See Also:
      EMF generated code
    • setHeight

      public void setHeight(float newHeight)
      Specified by:
      setHeight in interface KShapeLayout
      Parameters:
      newHeight - the new value of the 'Height' attribute.
      See Also:
      EMF generated code
    • getInsets

      public KInsets getInsets()
      Specified by:
      getInsets in interface KShapeLayout
      Returns:
      the value of the 'Insets' containment reference.
      See Also:
      EMF generated code
    • basicSetInsets

      public org.eclipse.emf.common.notify.NotificationChain basicSetInsets(KInsets newInsets, org.eclipse.emf.common.notify.NotificationChain msgs)
      EMF generated code
    • setInsets

      public void setInsets(KInsets newInsets)
      Specified by:
      setInsets in interface KShapeLayout
      Parameters:
      newInsets - the new value of the 'Insets' containment reference.
      See Also:
      EMF generated code
    • getNode

      public KNode getNode()
      Specified by:
      getNode in interface KPort
      Returns:
      the value of the 'Node' container reference.
      See Also:
      EMF generated code
    • basicSetNode

      public org.eclipse.emf.common.notify.NotificationChain basicSetNode(KNode newNode, org.eclipse.emf.common.notify.NotificationChain msgs)
      EMF generated code
    • setNode

      public void setNode(KNode newNode)
      Specified by:
      setNode in interface KPort
      Parameters:
      newNode - the new value of the 'Node' container reference.
      See Also:
      EMF generated code
    • getEdges

      public org.eclipse.emf.common.util.EList<KEdge> getEdges()
      Specified by:
      getEdges in interface KPort
      Returns:
      the value of the 'Edges' reference list.
      See Also:
      EMF generated code
    • setPos

      public void setPos(float newXpos, float newYpos)
      Specified by:
      setPos in interface KShapeLayout
      Parameters:
      newXpos - the new x coordinate value
      newYpos - the new y coordinate value
      EMF generated code
      NOT
    • applyVector

      public void applyVector(org.eclipse.elk.core.math.KVector pos)
      Specified by:
      applyVector in interface KShapeLayout
      Parameters:
      pos - the vector for the new position
      EMF generated code
      NOT
    • createVector

      public org.eclipse.elk.core.math.KVector createVector()
      Specified by:
      createVector in interface KShapeLayout
      Returns:
      the position vector
      EMF generated code
      NOT
    • setSize

      public void setSize(float newWidth, float newHeight)
      Specified by:
      setSize in interface KShapeLayout
      Parameters:
      newWidth - the new width
      newHeight - the new height
      EMF generated code
      NOT
    • isModified

      public boolean isModified()
      Specified by:
      isModified in interface KLayoutData
      EMF generated code
      NOT
    • resetModificationFlag

      public void resetModificationFlag()
      Specified by:
      resetModificationFlag in interface KLayoutData
      EMF generated code
      NOT
    • eInverseAdd

      public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
      Overrides:
      eInverseAdd in class KLabeledGraphElementImpl
      EMF generated code
    • eInverseRemove

      public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
      Overrides:
      eInverseRemove in class KLabeledGraphElementImpl
      EMF generated code
    • eBasicRemoveFromContainerFeature

      public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
      Overrides:
      eBasicRemoveFromContainerFeature in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      EMF generated code
    • eGet

      public Object eGet(int featureID, boolean resolve, boolean coreType)
      Specified by:
      eGet in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eGet in class KLabeledGraphElementImpl
      EMF generated code
    • eSet

      public void eSet(int featureID, Object newValue)
      Specified by:
      eSet in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eSet in class KLabeledGraphElementImpl
      EMF generated code
    • eUnset

      public void eUnset(int featureID)
      Specified by:
      eUnset in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eUnset in class KLabeledGraphElementImpl
      EMF generated code
    • eIsSet

      public boolean eIsSet(int featureID)
      Specified by:
      eIsSet in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eIsSet in class KLabeledGraphElementImpl
      EMF generated code
    • eBaseStructuralFeatureID

      public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
      Specified by:
      eBaseStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eBaseStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      EMF generated code
    • eDerivedStructuralFeatureID

      public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
      Specified by:
      eDerivedStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject
      Overrides:
      eDerivedStructuralFeatureID in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      EMF generated code
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
      EMF generated code
      NOT