Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Using the layout from TreeExample, drawLine, when zoomed in > 2.5X, draws erratically
Using the layout from TreeExample, drawLine, when zoomed in > 2.5X, draws erratically [message #237032] Wed, 18 July 2007 19:48
Eclipse UserFriend
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.
Previous Topic:Testing GEF Editor
Next Topic:Three layers for three different types of objects
Goto Forum:
  


Current Time: Fri Apr 26 18:21:10 GMT 2024

Powered by FUDForum. Page generated in 0.02519 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top