Class Edge

java.lang.Object
org.eclipse.gef.graph.Edge
All Implemented Interfaces:
org.eclipse.gef.common.attributes.IAttributeStore

public class Edge extends Object implements org.eclipse.gef.common.attributes.IAttributeStore
An Edge represents a (directed) connection between two Nodes in a Graph.
  • Property Details

    • attributes

      public javafx.beans.property.ReadOnlyMapProperty<String,Object> attributesProperty
      Specified by:
      attributesProperty in interface org.eclipse.gef.common.attributes.IAttributeStore
      See Also:
  • Constructor Details

  • Method Details

    • attributesProperty

      public javafx.beans.property.ReadOnlyMapProperty<String,Object> attributesProperty()
      Specified by:
      attributesProperty in interface org.eclipse.gef.common.attributes.IAttributeStore
      See Also:
    • getAttributes

      public javafx.collections.ObservableMap<String,Object> getAttributes()
      Gets the value of the property attributes.
      Specified by:
      getAttributes in interface org.eclipse.gef.common.attributes.IAttributeStore
      Property description:
    • getGraph

      public Graph getGraph()
      Returns the Graph to which this Edge belongs.
      Returns:
      The Graph to which this Edge belongs.
    • getSource

      public Node getSource()
      Returns the source Node of this Edge.
      Returns:
      The source Node of this Edge.
    • getTarget

      public Node getTarget()
      Returns the target Node of this Edge.
      Returns:
      The target Node of this Edge.
    • setSource

      public void setSource(Node source)
      Sets the source Node of this Edge to the given value.
      Parameters:
      source - The new source Node for this Edge.
    • setTarget

      public void setTarget(Node target)
      Sets the target Node of this Edge to the given value.
      Parameters:
      target - The new target Node for this Edge.
    • toString

      public String toString()
      Overrides:
      toString in class Object