Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to make PolylineConnection line look smoother
How to make PolylineConnection line look smoother [message #190320] Wed, 03 August 2005 11:39
Eclipse UserFriend
Originally posted by: erel.unicorn.com

I'm writing a GUI that draws a line between two figures.

the code is:

rightNode = new Ellipse();
leftNode.setSize(10, 10);
rightNode.setSize(10, 10);
leftNode.setBackgroundColor(ColorConstants.red);
rightNode.setBackgroundColor(ColorConstants.blue);
rightNode.setLocation(new Point(100,50));

PolylineConnection conn = new PolylineConnection();
// conn.setSourceAnchor(new ChopboxAnchor(node1));
// conn.setTargetAnchor(new ChopboxAnchor(node2));
conn.setSourceAnchor(new EllipseAnchor(leftNode));
conn.setTargetAnchor(new EllipseAnchor(rightNode))
Previous Topic:Bringing figures to top
Next Topic:Generalized Undo Support in Eclipse
Goto Forum:
  


Current Time: Tue Dec 03 08:55:15 GMT 2024

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

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

Back to the top