Search in sources :

Example 1 with HAConnectionFigure

use of com.cubrid.cubridmanager.ui.mondashboard.editor.figure.HAConnectionFigure in project cubrid-manager by CUBRID.

the class HAConnectionPart method refreshVisuals.

/**
	 * refresh Visuals
	 */
protected void refreshVisuals() {
    HAConnectionFigure conn = (HAConnectionFigure) getFigure();
    MonitorConnection model = (MonitorConnection) getModel();
    conn.setLabel(model.getLabel());
    super.refreshVisuals();
}
Also used : MonitorConnection(com.cubrid.cubridmanager.ui.mondashboard.editor.model.MonitorConnection) HAConnectionFigure(com.cubrid.cubridmanager.ui.mondashboard.editor.figure.HAConnectionFigure)

Example 2 with HAConnectionFigure

use of com.cubrid.cubridmanager.ui.mondashboard.editor.figure.HAConnectionFigure 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)

Aggregations

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