|
Re: Custom connection decoration [message #516460 is a reply to message #516147] |
Wed, 24 February 2010 05:08 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
In your connectionEditPart class createFigure method
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;
}
just change the connection.setTargetDecoration(*)
to your own implimentaion...
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
Powered by
FUDForum. Page generated in 0.01801 seconds