use of com.cubrid.common.ui.er.router.ERConnectionRouter in project cubrid-manager by CUBRID.
the class RelationshipPart method createFigure.
@Override
protected IFigure createFigure() {
TablePart sourceTablePart = (TablePart) this.getSource();
TablePart targetTablePart = (TablePart) this.getTarget();
IFigure source = sourceTablePart == null ? null : sourceTablePart.getFigure();
IFigure target = targetTablePart == null ? null : targetTablePart.getFigure();
ConnectionFigure conn = new ConnectionFigure(source, target);
conn.setConnectionRouter(new ERConnectionRouter());
conn.setTargetDecoration(new PolygonDecoration());
return conn;
}
Aggregations