Interface KGraphElement

All Superinterfaces:
EMapPropertyHolder, org.eclipse.emf.ecore.EObject, org.eclipse.elk.graph.properties.IPropertyHolder, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
KEdge, KLabel, KLabeledGraphElement, KNode, KPort
All Known Implementing Classes:
KEdgeImpl, KGraphElementImpl, KLabeledGraphElementImpl, KLabelImpl, KNodeImpl, KPortImpl

public interface KGraphElement extends EMapPropertyHolder
A representation of the model object 'Element'. This is the superclass of all elements of a graph such as nodes, edges, ports, and labels. A graph element may contain an arbitrary number of additional data instances.

The following features are supported:

See Also:
EMF generated code
EMF model element
abstract="true"
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.emf.common.util.EList<KGraphData>
    Returns the value of the 'Data' containment reference list.
    <T extends KGraphData>
    T
    getData(Class<T> type)
    Returns the first data instance that matches the given class.
    getData(org.eclipse.emf.ecore.EClass type)
    Returns the first data instance that matches the given class.

    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.elk.graph.properties.IPropertyHolder

    copyProperties, getAllProperties, getProperty, hasProperty, setProperty

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

    eAdapters, eDeliver, eNotify, eSetDeliver
  • Method Details

    • getData

      org.eclipse.emf.common.util.EList<KGraphData> getData()
      Returns the value of the 'Data' containment reference list. The list contents are of type KGraphData. Each element of this list may contain additional data for the model element.
      Returns:
      the value of the 'Data' containment reference list.
      See Also:
      EMF generated code
      EMF model element
      containment="true"
    • getData

      KGraphData getData(org.eclipse.emf.ecore.EClass type)
      Returns the first data instance that matches the given class. Classes can be obtained using the static package methods of the corresponding EMF model.
      Returns:
      graph data for the given type, or null if there is none
      EMF generated code
      EMF model element
    • getData

      <T extends KGraphData> T getData(Class<T> type)
      Returns the first data instance that matches the given class.
      Parameters:
      type - the class of graph data to retrieve
      Returns:
      graph data for the given type, or null if there is none
      EMF generated code
      EMF model element