DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page view initializes the connections not correct
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2009
Unhappy view initializes the connections not correct - 10-04-2009, 02:01 PM

Hello!

I need some help with my view, which displays figures like ellipses, connections.
I use draw2d from GEF.
After long searching I have found a class for displaying bezier connections. They look like braces )( . I am speaking of this class http://mail.eclipse.org/viewcvs/inde...n.java?view=co

Actually my view looks almost like i want it, but only almost
Let me explain:
The first time I open my view the arrow heads of the connections seems not to know where to look. As soon as I am resizing the view or moving one of the ellipses all arrow heads turn the right way.

I create the connections this way:
Code:
private BezierConnection createConnection(State from, State to) {
		final BezierConnection conn = new BezierConnection(20, 0.4, 20, 0.4);
		
		conn.setSourceAnchor(new EllipseAnchor(from));
		conn.setTargetAnchor(new EllipseAnchor(to));
		
		PolygonDecoration dec = new PolygonDecoration();
		dec.setTemplate(PolygonDecoration.TRIANGLE_TIP);
		conn.setTargetDecoration(dec);
		
		return conn;
	}
I do not know what to do?
Is someone using the same class and had the same problem.
Does anyone know the solution?
Or can you recommend me another code which constructs a bezierConnection?

Please Help!

Thanks in advance!
Best regards
p.s.:sorry for my english
Attached Files
File Type: pdf arrowHeads.pdf (17.2 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying The Correct Glyph Aegis1888 Eclipse 2 07-07-2009 04:21 AM
not updating the content in a view w.r.t the changes in other view prathyusharao Eclipse 0 04-23-2008 02:19 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com