Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Mapping ConnectionAnchors with Connections
Mapping ConnectionAnchors with Connections [message #238710] Thu, 27 September 2007 11:53
René is currently offline RenéFriend
Messages: 45
Registered: July 2009
Hi all,

I m study the Shape Diagram GEF example and looking for the point where
the connection figures get their start and end point.
On the model site is all clear. A command set there the source and
target component. The editpart should create the figure for this model.
The code for this in the part looks like this:

protected IFigure createFigure() {
PolylineConnection connection = (PolylineConnection) super.createFigure();
connection.setTargetDecoration(new PolygonDecoration()); // arrow at
target endpoint
connection.setLineStyle(getCastedModel().getLineStyle()); // line
drawing style
return connection;

But how gets the figure the start and endpoint?! I hope someone can help
me with this really simple problem. I cant see it.

Previous Topic:new learner for Graphical Programming
Next Topic:numeric characters in Arabic os
Goto Forum:

Current Time: Wed May 23 11:19:50 GMT 2018

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

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

Back to the top