Using the layout from TreeExample, drawLine, when zoomed in > 2.5X, draws erratically [message #237032] |
Wed, 18 July 2007 19:48 |
Eclipse User |
|
|
|
Originally posted by: czimmet.yahoo.com
I have been using the draw2d TreeLayout example as the basis for a
hierarchical editor. I am using a ScalableRootEditPart and have enabled
zooming. When one of the children in my editor requires an extremely
long vertical line, it appears chopped up and the ends no longer are
connected when I zoom beyond 2.5x.
For example, if I hard code in NormalLayout paintLines(Graphics g)
g.drawline(140,226,140,36138); // 1. the line starts above 226
// 2. the line breaks up in the middle
// 3. the line resumes
// 4. the line continues past 36138
g.drawString("(140,226)",140,226); //appears where it should
g.drawString("(140,36138)",140,36138); //appears where it should
If the lines were brought back together it would appear that the length
would more than likely be correct.
Any help would be greatly appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.02519 seconds