Hello

I'm coding a very basic application, in which the user only deals with vertices (by using graphComponent.setConnectable(false)).

I need to "order" vertices (when they overlap) according to their X-position (and not their id, as it does by default in my simple graph): I suppose I may override/modify in jgraphx source (yet played a little with it) some "drawing" methods, but I couldn't figure which one. What would you recommend to do ?

Thanks in advance for any suggestion : )

asked 26 Nov '12, 14:57

bwomack's gravatar image

bwomack
31
accept rate: 0%


The painting order is implemented in mxGraph.drawCell (recursively).

link

answered 29 Nov '12, 02:50

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

Thank you ! I'm studying it to fit its behavior to my needs : )

(01 Dec '12, 04:07) bwomack

I finally added a dirty workaround to mxGraphComponent.drawChildren, and it works as expected. Thanks !

(03 Dec '12, 16:59) bwomack
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
×79
×3

Asked: 26 Nov '12, 14:57

Seen: 924 times

Last updated: 03 Dec '12, 16:59