I have two vertex objects in a Swing GUI using JGraphX: v0 and v1.\nThere are also two edges: e0 and e1.\nThe source for e0 is v0, and the destination is v1.\nThe source for e1 is v1, and the destination is v0.\nWhen this is drawn, the labels for both\ne0 and e1 are centered, draw on top of each other, and neither\ncan be read.

\n

I was wondering if there are any ways to draw this graph so that\nthe labels can be read?

\n

Thanks,

asked 17 Jan '12, 12:50

glassknife2141's gravatar image

glassknife2141
1114
accept rate: 0%


There is an experimental mxEdgeLabelLayout class which might do the trick. Feel free to improve it and contribute your changes!

link

answered 18 Jan '12, 01:04

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

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:

×194
×100
×29

Asked: 17 Jan '12, 12:50

Seen: 2,282 times

Last updated: 18 Jan '12, 01:04