Mapping ConnectionAnchors with Connections [message #238710] |
Thu, 27 September 2007 11:53 |
René Messages: 45 Registered: July 2009 |
Member |
|
|
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.
Thanks
Rene
|
|
|
Powered by
FUDForum. Page generated in 0.02645 seconds