We have a diagram that uses the mxHierarchicalLayout to position the elements on the diagram. One problem we're having is that if an element has two out-going edges that the source portion of the edge seems to anchor itself to the vertex at the same point so the two edges overlay/overlap each other until they split off to go to their target vertices. This results in a diagram that is hard to follow. When we played around with the mxCompactTreeLayout, it seemed to draw the edges using different anchor points on the vertex for each outgoing/incoming edge so the lines were distinct and much more readable. The problem with that is that the mxCompactTreeLayout expects a well formatted tree structure, which our diagrams may not be.\nIs there a way to have the mxHierarchicalLayout to not overlay/overlap the edges at all as they go into and out of the vertices (much in the same manner of the mxCompactTreeLayout)?

asked 18 Aug '11, 07:48

cgidwhite's gravatar image

cgidwhite
194829
accept rate: 66%


The hierarchical layout does separate incoming and outgoing edges along the respective faces of vertices now. This went in last year (2012).

link

answered 08 Feb '13, 03:48

David's gravatar image

David
4.9k21831
accept rate: 47%

I'm using mxConstants.STYLE_EDGE = mxEdgeStyle.SegmentConnector to overcome the same problem. This allows a user to drag the edges off that default terminal it snaps to. Hope this helps.

link

answered 21 Aug '12, 09:26

CJay28's gravatar image

CJay28
1
accept rate: 0%

In my case SegmentConnector is helpfull as its not overlapping on vertex. As before i was using toptobottom style, i was getting an connection line from vertex and the created edge. Thats missing now... Any Ideas...

Thanks in advance

(01 Feb '13, 03:56) hansie
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×228
×100
×28
×10
×3

Asked: 18 Aug '11, 07:48

Seen: 6,420 times

Last updated: 08 Feb '13, 03:48