Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.BendpointConnectionRouter


            layer.setAntialias(SWT.ON);
        }

        if (getProcessWrapper().getRouterLayout().equals(ProcessWrapper.ROUTER_LAYOUT_MANUAL)) {
            AutomaticRouter router = new FanRouter();
            router.setNextRouter(new BendpointConnectionRouter());
            layer.setConnectionRouter(router);
        } else if (getProcessWrapper().getRouterLayout().equals(ProcessWrapper.ROUTER_LAYOUT_MANHATTAN)) {
            layer.setConnectionRouter(new ManhattanConnectionRouter());
        } else {
            layer.setConnectionRouter(new ShortestPathConnectionRouter(getFigure()));
View Full Code Here


   
    protected abstract ElementConnectionFactory getDefaultElementConnectionFactory();

    protected IFigure createFigure() {
        PolylineConnection result = new PolylineConnection();
        result.setConnectionRouter(new BendpointConnectionRouter());
        result.setTargetDecoration(new PolygonDecoration());
        return result;
    }
View Full Code Here

    this(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
  }
 
  public LabelArrowConnection(Color color){
    add(label, new ConnectionLocator(this, ConnectionLocator.MIDDLE));
    setConnectionRouter(new BendpointConnectionRouter());
    setTargetDecoration(new PolygonDecoration());
    if(color!=null){
      setForegroundColor(color);
    }
  }
View Full Code Here

            layer.setAntialias(SWT.ON);
        }

        if (getProcessWrapper().getRouterLayout().equals(ProcessWrapper.ROUTER_LAYOUT_MANUAL)) {
            AutomaticRouter router = new FanRouter();
            router.setNextRouter(new BendpointConnectionRouter());
            layer.setConnectionRouter(router);
        } else if (getProcessWrapper().getRouterLayout().equals(ProcessWrapper.ROUTER_LAYOUT_MANHATTAN)) {
            layer.setConnectionRouter(new ManhattanConnectionRouter());
        } else {
            layer.setConnectionRouter(new ShortestPathConnectionRouter(getFigure()));
View Full Code Here

   
    protected abstract ElementConnectionFactory getDefaultElementConnectionFactory();

    protected IFigure createFigure() {
        PolylineConnection result = new PolylineConnection();
        result.setConnectionRouter(new BendpointConnectionRouter());
        result.setTargetDecoration(new PolygonDecoration());
        return result;
    }
View Full Code Here

    if ((getViewer().getControl().getStyle() & SWT.MIRRORED ) == 0)
        cLayer.setAntialias(SWT.ON);

  if (getLogicDiagram().getConnectionRouter().equals(LogicDiagram.ROUTER_MANUAL)) {
    AutomaticRouter router = new FanRouter();
    router.setNextRouter(new BendpointConnectionRouter());
    cLayer.setConnectionRouter(router);
  } else if (getLogicDiagram().getConnectionRouter().equals(LogicDiagram.ROUTER_MANHATTAN))
    cLayer.setConnectionRouter(new ManhattanConnectionRouter());
  else
    cLayer.setConnectionRouter(new ShortestPathConnectionRouter(getFigure()));
View Full Code Here

  protected PolylineConnection createConnection(Edge edge) {
    PolylineConnection conn = new PolylineConnection();

    // Prepare connection router with corresponding bendpoints
    conn.setConnectionRouter(new BendpointConnectionRouter());

    // Add bend point if source's bean prefered height is different from
    // heigth calculated by DirectedGraphLayout
    List<AbsoluteBendpoint> bends = new ArrayList<AbsoluteBendpoint>();
    Bean source = (Bean) getReference().source;
View Full Code Here

   * @see org.eclipse.gef.editparts.AbstractConnectionEditPart#createFigure()
   */
  @Override
  protected IFigure createFigure() {
    PolylineConnection conn = (PolylineConnection) super.createFigure();
    conn.setConnectionRouter(new BendpointConnectionRouter() {
      @Override
      public void route(Connection conn) {
        GraphAnimation.recordInitialState(conn);
        if (!GraphAnimation.playbackState(conn)) {
          super.route(conn);
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.BendpointConnectionRouter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.