use of org.eclipse.draw2d.BendpointConnectionRouter in project dbeaver by serge-rider.
the class DummyEdgePart method createFigure.
/**
* @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setConnectionRouter(new BendpointConnectionRouter());
conn.setVisible(true);
return conn;
}
use of org.eclipse.draw2d.BendpointConnectionRouter in project dbeaver by dbeaver.
the class DummyEdgePart method createFigure.
/**
* @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setConnectionRouter(new BendpointConnectionRouter());
conn.setVisible(true);
return conn;
}
use of org.eclipse.draw2d.BendpointConnectionRouter in project dbeaver by dbeaver.
the class DummyEdgePart method createFigure.
/**
* @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setConnectionRouter(new BendpointConnectionRouter());
conn.setVisible(true);
return conn;
}
use of org.eclipse.draw2d.BendpointConnectionRouter in project cubrid-manager by CUBRID.
the class ConnectionPart method createFigure.
/**
* @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
* @return conn
*/
protected IFigure createFigure() {
PolylineConnection conn = new PolylineConnection();
conn.setTargetDecoration(new PolygonDecoration());
conn.setConnectionRouter(new BendpointConnectionRouter());
return conn;
}
use of org.eclipse.draw2d.BendpointConnectionRouter in project archi by archimatetool.
the class AbstractDiagramPart method refreshVisuals.
@Override
public void refreshVisuals() {
// on the connection figures - see AbstractConnectionFigure
if (AnimationUtil.doAnimate()) {
Animation.markBegin();
}
ConnectionLayer cLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
switch(getModel().getConnectionRouterType()) {
case IDiagramModel.CONNECTION_ROUTER_MANHATTAN:
cLayer.setConnectionRouter(new ManhattanConnectionRouter());
break;
case IDiagramModel.CONNECTION_ROUTER_BENDPOINT:
default:
AutomaticRouter router = new FanRouter();
router.setNextRouter(new BendpointConnectionRouter());
cLayer.setConnectionRouter(router);
break;
}
if (AnimationUtil.doAnimate()) {
Animation.run(AnimationUtil.animationSpeed());
}
}
Aggregations