respective view factories, but for the one connector that extends
PolylineConnection, it doesn't curve at all.
Now, I read that there still might be a way to curve it using routing
constraints (setroutingconstraint)?
I can't seem to get the code right, and it's just not working properly.
Can someone post an example of how it's done?
This is what I have so far:
///////////////////////////////////////////
public class DependencyLineConnection extends PolylineConnection {
........
protected void outlineShape(Graphics g) {
.......
ConnectionRouter connectionRouter = this.getConnectionRouter();
ArrayList<AbsoluteBendpoint> list = new ArrayList<AbsoluteBendpoint>();
list.add(new AbsoluteBendpoint(midPoint));
this.setRoutingConstraint(list);
///////////////////////////////////////////
This doesn't work, and the line disappears. Any tips?
Thanks in advance.
~Kelvin Ng