Hi All!
I am drawing a figure for Data Modelling Diagram which is containing
number of rectangles and lines which are connecting them. I am using
SWT's draw2d.
I have calculate position of rectangles and start/end ing point of
lines so that they should not coincide or overlapped on each other.
In case of less no of rectangles it works fine but when i have great
number of rectangles then rectangles get overlapped and lines get
coincide on each other.
So, could anyone help me out to give any algorithm/suggestion to sort
out my problem??
Regards,
Zia
Thomas Weidenfeller - 14 Jun 2006 08:59 GMT
> I have calculate position of rectangles and start/end ing point of
> lines so that they should not coincide or overlapped on each other.
[quoted text clipped - 4 lines]
> So, could anyone help me out to give any algorithm/suggestion to sort
> out my problem??
The problem is difficult and no general solution satisfying all possible
requirements is known. You might e.g. give that book a try:
http://www.prenhall.com/allbooks/esm_0133016153.html
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/