Search in sources :

Example 1 with ERConnectionRouter

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;
}
Also used : ERConnectionRouter(com.cubrid.common.ui.er.router.ERConnectionRouter) PolygonDecoration(org.eclipse.draw2d.PolygonDecoration) ConnectionFigure(com.cubrid.common.ui.er.figures.ConnectionFigure) IFigure(org.eclipse.draw2d.IFigure)

Aggregations

ConnectionFigure (com.cubrid.common.ui.er.figures.ConnectionFigure)1 ERConnectionRouter (com.cubrid.common.ui.er.router.ERConnectionRouter)1 IFigure (org.eclipse.draw2d.IFigure)1 PolygonDecoration (org.eclipse.draw2d.PolygonDecoration)1