Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » problems with ManhattanConnectionRouter
problems with ManhattanConnectionRouter [message #184265] Sat, 11 June 2005 08:12
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 194
Registered: July 2009
Senior Member
Hi,

can anyone help me to customize a ManhattanConnection Router.
I have written a GEF Edtitor with some Edit Parts an Connections. I use the
ManhattanConnectionRouter. So far all works fine.
But as my EditParts have fixed positions and the user should only define
which connections he needs, I whant to refine the ManhattanRouting a little
bit ;-)
Just whant to add some smal edges for better look.

My code is now very simple. Where can I influence the routig path?

Thanks for help
Ralph

public class AssociationEditPart extends AbstractConnectionEditPart {
PolylineConnection polylineConnection;
protected IFigure createFigure() {
polylineConnection = new PolylineConnection();
polylineConnection.setTargetDecoration(new PolygonDecoration());
ManhattanConnectionRouter manhattanConnectionRouter= new
ManhattanConnectionRouter();
polylineConnection.setConnectionRouter( manhattanConnectionRouter);
return polylineConnection;
}

protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new
ConnectionEndpointEditPolicy());

installEditPolicy(EditPolicy.CONNECTION_ROLE, new
ConnectionEditPolicy() {
protected Command getDeleteCommand(final GroupRequest request) {
return new AssociationDeleteCommand((Association)
getModel());
}
});
}
Previous Topic:Is there a Rose model for the EDiagram example?
Next Topic:problems with ManhattanConnectionRouter
Goto Forum:
  


Current Time: Thu Dec 12 20:10:50 GMT 2024

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

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

Back to the top