use of org.eclipse.draw2d.ManhattanConnectionRouter in project cubrid-manager by CUBRID.
the class Host2ChildConnectionPart method createFigure.
/**
* create figure used by edit part.
*
* @return IFigure connectin figure
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setLineStyle(SWT.LINE_DASH);
conn.setConnectionRouter(new ManhattanConnectionRouter());
conn.setSourceAnchor(getSourceConnectionAnchor());
conn.setTargetAnchor(getTargetConnectionAnchor());
conn.setForegroundColor(CONNECTION_DEFAULT_COLOR);
return conn;
}
use of org.eclipse.draw2d.ManhattanConnectionRouter in project cubrid-manager by CUBRID.
the class HAConnectionPart method createFigure.
/**
* create figure used by edit part.
*
* @return IFigure connectin figure
*/
protected IFigure createFigure() {
HAConnectionFigure conn = new HAConnectionFigure();
conn.setTargetDecoration(new PolygonDecoration());
conn.setConnectionRouter(new ManhattanConnectionRouter());
conn.setForegroundColor(CONNECTION_DEFAULT_COLOR);
conn.setLineWidth(3);
return conn;
}
use of org.eclipse.draw2d.ManhattanConnectionRouter in project cubrid-manager by CUBRID.
the class BrokerConnectionPart method createFigure.
/**
* create figure used by edit part.
*
* @return IFigure connectin figure
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setTargetDecoration(new PolygonDecoration());
conn.setConnectionRouter(new ManhattanConnectionRouter());
conn.setForegroundColor(CONNECTION_DEFAULT_COLOR);
conn.setLineWidth(3);
return conn;
}
Aggregations