Interface KEdgeLayout

All Superinterfaces:
EMapPropertyHolder, org.eclipse.emf.ecore.EObject, org.eclipse.elk.graph.properties.IPropertyHolder, KLayoutData, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
KEdge
All Known Implementing Classes:
KEdgeImpl

public interface KEdgeLayout extends KLayoutData
A representation of the model object 'KEdge Layout'. This layout data contains special information for edges, such as bend points. Each graph element has either a shape layout or an edge layout attached.

All layout coordinates for edges are defined to be relative to the parent of the source node, except when the target node is directly or indirectly contained in the source node, in which case all coordinates are relative to the source node itself. The insets of the reference node are not included in relative coordinates.

The following features are supported:

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

    Modifier and Type
    Method
    Description
    void
    applyVectorChain(org.eclipse.elk.core.math.KVectorChain points)
    Set the source point, bend points, and target point of this edge layout from the given vector chain.
    org.eclipse.elk.core.math.KVectorChain
    Create a vector chain from the points of this edge layout.
    org.eclipse.emf.common.util.EList<KPoint>
    Returns the value of the 'Bend Points' containment reference list.
    Returns the value of the 'Source Point' containment reference.
    Returns the value of the 'Target Point' containment reference.
    void
    Sets the value of the 'Source Point' containment reference.
    void
    Sets the value of the 'Target Point' containment reference.

    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 de.cau.cs.kieler.klighd.kgraph.KLayoutData

    isModified, resetModificationFlag

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

    eAdapters, eDeliver, eNotify, eSetDeliver
  • Method Details

    • getBendPoints

      org.eclipse.emf.common.util.EList<KPoint> getBendPoints()
      Returns the value of the 'Bend Points' containment reference list. The list contents are of type KPoint. The coordinates of bend points must obey the general rules for edge coordinates defined above.
      Returns:
      the value of the 'Bend Points' containment reference list.
      See Also:
      EMF generated code
      EMF model element
      containment="true"
    • getSourcePoint

      KPoint getSourcePoint()
      Returns the value of the 'Source Point' containment reference. The source point is the point at which the edge touches the source node or source port. The coordinates of source points must obey the general rules for edge coordinates defined above.
      Returns:
      the value of the 'Source Point' containment reference.
      See Also:
      EMF generated code
      EMF model element
      containment="true" required="true"
    • setSourcePoint

      void setSourcePoint(KPoint value)
      Sets the value of the 'Source Point' containment reference.
      Parameters:
      value - the new value of the 'Source Point' containment reference.
      See Also:
      EMF generated code
    • getTargetPoint

      KPoint getTargetPoint()
      Returns the value of the 'Target Point' containment reference. The target point is the point at which the edge touches the target node or target port. The coordinates of target points must obey the general rules for edge coordinates defined above.
      Returns:
      the value of the 'Target Point' containment reference.
      See Also:
      EMF generated code
      EMF model element
      containment="true" required="true"
    • setTargetPoint

      void setTargetPoint(KPoint value)
      Sets the value of the 'Target Point' containment reference.
      Parameters:
      value - the new value of the 'Target Point' containment reference.
      See Also:
      EMF generated code
    • applyVectorChain

      void applyVectorChain(org.eclipse.elk.core.math.KVectorChain points)
      Set the source point, bend points, and target point of this edge layout from the given vector chain. The vector chain should contain at least two points; the first point is taken as source point, while the last one is taken as target point.
      Parameters:
      points - the new points for this edge layout
      EMF generated code
      EMF model element
      pointsDataType="de.cau.cs.kieler.klighd.kgraph.KVectorChain"
    • createVectorChain

      org.eclipse.elk.core.math.KVectorChain createVectorChain()
      Create a vector chain from the points of this edge layout. The resulting vector chain contains at least two points; the first point is the source point, while the last one is the target point.
      Returns:
      the points of this edge layout
      EMF generated code
      EMF model element
      dataType="de.cau.cs.kieler.klighd.kgraph.KVectorChain"