Search in sources :

Example 1 with ManhattanConnectionRouter

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;
}
Also used : ManhattanConnectionRouter(org.eclipse.draw2d.ManhattanConnectionRouter) PolylineConnection(org.eclipse.draw2d.PolylineConnection)

Example 2 with ManhattanConnectionRouter

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;
}
Also used : HAConnectionFigure(com.cubrid.cubridmanager.ui.mondashboard.editor.figure.HAConnectionFigure) PolygonDecoration(org.eclipse.draw2d.PolygonDecoration) ManhattanConnectionRouter(org.eclipse.draw2d.ManhattanConnectionRouter)

Example 3 with ManhattanConnectionRouter

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;
}
Also used : PolygonDecoration(org.eclipse.draw2d.PolygonDecoration) ManhattanConnectionRouter(org.eclipse.draw2d.ManhattanConnectionRouter) PolylineConnection(org.eclipse.draw2d.PolylineConnection)

Aggregations

ManhattanConnectionRouter (org.eclipse.draw2d.ManhattanConnectionRouter)3 PolygonDecoration (org.eclipse.draw2d.PolygonDecoration)2 PolylineConnection (org.eclipse.draw2d.PolylineConnection)2 HAConnectionFigure (com.cubrid.cubridmanager.ui.mondashboard.editor.figure.HAConnectionFigure)1