Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ConnectionEndpointLocator


   *            a GraphConnection
   */
  private static void decorateWithWeight(
      GraphConnection connection, String weight) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(0);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here


   *            a GraphConnection
   */
  private static void decorateWithSomeNegativeFigure(
      GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

   *            a GraphConnection
   */
  private static void decorateWithUnknownFigure(
      GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

   *            a GraphConnection
   */
  private static void decorateWithSomePositiveFigure(
      GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

   * @param connection
   *            a GraphConnection
   */
  private static void decorateWithHurtsFigure(GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

   * @param connection
   *            a GraphConnection
   */
  private static void decorateWithHelpsFigure(GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

   * @param connection
   *            a GraphConnection
   */
  private static void decorateWithMakeFigure(GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

   * @param connection
   *            a GraphConnection
   */
  private static void decorateWithBrakeFigure(GraphConnection connection) {

    ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
        (PolylineConnection) connection.getConnectionFigure(), true);
    relationshipLocator.setUDistance(10);
    relationshipLocator.setVDistance(10);

    Figure decoractionFigure = new Figure();

    ToolbarLayout layout = new ToolbarLayout();
    decoractionFigure.setLayoutManager(layout);
View Full Code Here

    public void init(boolean bpmnNotation) {
        this.bpmnNotation = bpmnNotation;

        label = new Label();
        ConnectionEndpointLocator locator = new ConnectionEndpointLocator(this, false);
        locator.setUDistance(10);
        add(label, locator);

        PolygonDecoration arrow = new PolygonDecoration();
        arrow.setTemplate(PolygonDecoration.TRIANGLE_TIP);
        arrow.setScale(5, 2.5);
View Full Code Here

    protected IFigure createFigure() {
        Connection result = (Connection) super.createFigure();
        // add connection label
        String label = (String) getConnectionWrapper().getConnection().getMetaData("label");
        if (label != null) {
            ConnectionEndpointLocator sourceEndpointLocator = new ConnectionEndpointLocator(result, true);
            sourceEndpointLocator.setVDistance(15);
            sourceLabel = new Label(label);
            result.add(sourceLabel, sourceEndpointLocator);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ConnectionEndpointLocator

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.