use of org.talend.designer.gefabstractmap.figures.routers.LookupConnectionRouter 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;
}
use of org.talend.designer.gefabstractmap.figures.routers.LookupConnectionRouter in project tdi-studio-se by Talend.
the class LookupConnectionPart method createFigure.
@Override
protected IFigure createFigure() {
PolylineConnection connection = new PolylineConnection();
connection.setTargetDecoration(new PolygonDecoration());
// connection.setBackgroundColor(ColorConstants.yellow);
connection.setForegroundColor(ColorProviderMapper.getColor(ColorInfo.COLOR_UNSELECTED_LOOKUP_LINKS));
connection.setLineWidth(2);
cr = new LookupConnectionRouter();
connection.setConnectionRouter(cr);
return connection;
}
Aggregations