use of org.talend.designer.gefabstractmap.figures.routers.CurveConnectionRouter in project tdi-studio-se by Talend.
the class ConnectionEditPart method createFigure.
@Override
protected IFigure createFigure() {
PolylineConnection connection = new PolylineConnection();
connection.setTargetDecoration(new PolygonDecoration());
curvrRouter = new CurveConnectionRouter();
connection.setForegroundColor(ColorConstants.gray);
connection.setLineWidth(2);
connection.setConnectionRouter(curvrRouter);
return connection;
}
use of org.talend.designer.gefabstractmap.figures.routers.CurveConnectionRouter in project tdi-studio-se by Talend.
the class FilterConnectionPart method getFigure.
@Override
public IFigure getFigure() {
PolylineConnection figure = (PolylineConnection) super.getFigure();
if (getTarget() instanceof OutputTablePart) {
if (curvrRouter == null) {
curvrRouter = new CurveConnectionRouter();
figure.setConnectionRouter(curvrRouter);
}
} else if (getTarget() instanceof InputTablePart) {
if (cr == null) {
cr = new LookupConnectionRouter();
figure.setConnectionRouter(cr);
}
}
if (cr != null) {
cr.setOffset(calculateConnOffset());
}
return figure;
}
Aggregations