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
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
Previous Topic:Polyline Connection
Next Topic:How to realise an undo for Element Propertys ...
Goto Forum:
  


Current Time: Thu Apr 25 06:46:42 GMT 2024

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

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

Back to the top