Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ConnectionLocator


  public LabelArrowConnection(){
    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


            ConnectionEndpointLocator locator = new ConnectionEndpointLocator(fConnection, true);
            locator.setUDistance(4);
            locator.setVDistance(0);
            return locator;
          }
          if (anchorString.equals(IMarkerConstants.MARKER_ANCHORPOINT_CENTRE)) return new ConnectionLocator(fConnection, ConnectionLocator.MIDDLE);
        }
      }
    } catch (CoreException e) {
      // ignore this exception since the marker may no longer exist
    }

    // default
    return new ConnectionLocator(fConnection, ConnectionLocator.MIDDLE);
  }
View Full Code Here

  protected IFigure createFigure() {
    PolylineConnection conn = (PolylineConnection) super.createFigure();
    l = new TransitionLabel(75);
    l.setForegroundColor(ColorConstants.black);
    l.setOpaque(true);
    conn.add(l, new ConnectionLocator(conn));
    return conn;
  }
View Full Code Here

      label.setBorder(new LineBorder());
      label.setBackgroundColor(COLOR);
      label.setOpaque(true);
      label.setIcon(WebflowUIImages
          .getImage(WebflowUIImages.IMG_OBJS_ACTION));
      conn.add(label, new ConnectionLocator(conn));
    }

    conn.setToolTip(new Label(eLabelProvider.getText(getModel(), false,
        true, true)));
View Full Code Here

      /*
       * if (getSelected() != EditPart.SELECTED_NONE) { ((LineBorder)
       * label.getBorder()).setWidth(2); }
       */
      if (conn != null) {
        conn.add(label, new ConnectionLocator(conn));
      }
    }
    else {
      if (label != null && getFigure().getChildren().contains(label)) {
        getFigure().remove(label);
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ConnectionLocator

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.