Search in sources :

Example 6 with Node

use of org.eclipse.elk.alg.graphviz.dot.dot.Node in project elk by eclipse.

the class EdgeStatementImpl method basicSetSourceNode.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSourceNode(Node newSourceNode, NotificationChain msgs) {
    Node oldSourceNode = sourceNode;
    sourceNode = newSourceNode;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DotPackage.EDGE_STATEMENT__SOURCE_NODE, oldSourceNode, newSourceNode);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Node(org.eclipse.elk.alg.graphviz.dot.dot.Node)

Example 7 with Node

use of org.eclipse.elk.alg.graphviz.dot.dot.Node in project elk by eclipse.

the class EdgeTargetImpl method basicSetTargetnode.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTargetnode(Node newTargetnode, NotificationChain msgs) {
    Node oldTargetnode = targetnode;
    targetnode = newTargetnode;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DotPackage.EDGE_TARGET__TARGETNODE, oldTargetnode, newTargetnode);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Node(org.eclipse.elk.alg.graphviz.dot.dot.Node)

Example 8 with Node

use of org.eclipse.elk.alg.graphviz.dot.dot.Node in project elk by eclipse.

the class NodeStatementImpl method basicSetNode.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetNode(Node newNode, NotificationChain msgs) {
    Node oldNode = node;
    node = newNode;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DotPackage.NODE_STATEMENT__NODE, oldNode, newNode);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Node(org.eclipse.elk.alg.graphviz.dot.dot.Node)

Aggregations

Node (org.eclipse.elk.alg.graphviz.dot.dot.Node)8 Attribute (org.eclipse.elk.alg.graphviz.dot.dot.Attribute)5 EdgeStatement (org.eclipse.elk.alg.graphviz.dot.dot.EdgeStatement)4 ElkNode (org.eclipse.elk.graph.ElkNode)4 EdgeTarget (org.eclipse.elk.alg.graphviz.dot.dot.EdgeTarget)3 NodeStatement (org.eclipse.elk.alg.graphviz.dot.dot.NodeStatement)3 Subgraph (org.eclipse.elk.alg.graphviz.dot.dot.Subgraph)3 KVector (org.eclipse.elk.core.math.KVector)3 ElkEdge (org.eclipse.elk.graph.ElkEdge)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)3 AttributeStatement (org.eclipse.elk.alg.graphviz.dot.dot.AttributeStatement)2 LinkedList (java.util.LinkedList)1 Graph (org.eclipse.elk.alg.graphviz.dot.dot.Graph)1 GraphvizModel (org.eclipse.elk.alg.graphviz.dot.dot.GraphvizModel)1 Port (org.eclipse.elk.alg.graphviz.dot.dot.Port)1 Statement (org.eclipse.elk.alg.graphviz.dot.dot.Statement)1 UnsupportedGraphException (org.eclipse.elk.core.UnsupportedGraphException)1 ElkPadding (org.eclipse.elk.core.math.ElkPadding)1 Direction (org.eclipse.elk.core.options.Direction)1 ElkEdgeSection (org.eclipse.elk.graph.ElkEdgeSection)1