Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Layout Kernel » Problem with port alignment
Problem with port alignment [message #1836551] Thu, 07 January 2021 10:16 Go to next message
Mehmet Karaman is currently offline Mehmet KaramanFriend
Messages: 63
Registered: November 2012
Location: Berlin
Member
Hello,

I am currently working on a graph, which has a node (parent-node) with two ports on east and west side (which are representing input and output).
In this node there are some other nodes (child-nodes) which are somehow connected to the ports of the parent-node.

By default, ports are aligned in the center, but in my case it wasn't. I've tried to create an example to reproduce this in the web ide (examples page).

node default {
    algorithm: layered
    nodeLabels.placement: "INSIDE V_TOP H_CENTER" 
    label "Default" { layout [ size: 43, 15 ] }

    node InnerDiagram {
        portConstraints: FIXED_ORDER
        portAlignment.east: CENTER // This doesn't have an effect
        portAlignment.west: CENTER // This too

        port p1 { side: WEST }
        port p2 { side: EAST } 

        node n2 { label "2" }
        node n3 { label "3" }

        edge InnerDiagram.p1 -> n2
        edge InnerDiagram.p1 -> n3
        edge n2->InnerDiagram.p2
        edge n3->InnerDiagram.p2
    }
}

InnerDiagram.p1 and InnerDiagram.p2 are ports which are not aligned in the center.

Is this a bug or is this a misunderstanding/wrong configuration? Thank you in advance.

Best regards
MKaraman
Re: Problem with port alignment [message #1836585 is a reply to message #1836551] Fri, 08 January 2021 07:32 Go to previous message
Ulf Rueegg is currently offline Ulf RueeggFriend
Messages: 26
Registered: February 2010
Junior Member
I believe as soon as hierarchical ports are involved the hierarchical node's port alignment cannot be influenced any more.

You could still set port constraints to FIXED_POS and compute port positions yourself. For centering that's a bit problematic though as you need to know the resulting diagram's size to determine the center.
Previous Topic:EMF version
Next Topic:[Stress/Force] Edge labels placing
Goto Forum:
  


Current Time: Tue Dec 10 14:58:54 GMT 2024

Powered by FUDForum. Page generated in 0.03767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top