Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ChopboxAnchor


    protected List<ElementConnection> getModelTargetConnections() {
        return getElementWrapper().getIncomingConnections();
    }
   
    public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection) {
        return new ChopboxAnchor(getFigure());
    }
View Full Code Here


    public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection) {
        return new ChopboxAnchor(getFigure());
    }

    public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart connection) {
        return new ChopboxAnchor(getFigure());
    }
View Full Code Here

    public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart connection) {
        return new ChopboxAnchor(getFigure());
    }

    public ConnectionAnchor getSourceConnectionAnchor(Request request) {
        return new ChopboxAnchor(getFigure());
    }
View Full Code Here

    public ConnectionAnchor getSourceConnectionAnchor(Request request) {
        return new ChopboxAnchor(getFigure());
    }

    public ConnectionAnchor getTargetConnectionAnchor(Request request) {
        return new ChopboxAnchor(getFigure());
    }
View Full Code Here

  public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection) {
    if (connection.getSource() == connection.getTarget()) {
      return new SelfConnectionSourceAnchor(getFigure());
    }
    if (sourceAnchor == null) {
      sourceAnchor = new ChopboxAnchor(getFigure());
    }
    return sourceAnchor;
  }
View Full Code Here

    if (connection.getSource() == connection.getTarget()) {
      ((PolylineConnection)connection.getFigure()).setConnectionRouter(new SelfLoopConnectionRouter());
      return new SelfConnectionTargetAnchor(getFigure());
    }
    if (targetAnchor == null) {
      targetAnchor = new ChopboxAnchor(getFigure());
    }
    return targetAnchor;
  }
View Full Code Here

    return targetAnchor;
  }

  public ConnectionAnchor getSourceConnectionAnchor(Request request) {
    if (sourceAnchor == null) {
      sourceAnchor = new ChopboxAnchor(getFigure());
    }
    return sourceAnchor;
  }
View Full Code Here

        private RoundedRectangle rectangle;
        private ConnectionAnchor defaultConnectionAnchor;
        private List<ConnectionAnchor> outgoingConnectionAnchors = new ArrayList<ConnectionAnchor>();
       
        public WorkItemFigure() {
            defaultConnectionAnchor = new ChopboxAnchor(this);
//            FixedConnectionAnchor c = new FixedConnectionAnchor(this);
//            outgoingConnectionAnchors.add(c);
//            c = new FixedConnectionAnchor(this);
//            outgoingConnectionAnchors.add(c);
        }
View Full Code Here

        ((Label) figure).getIcon().getBounds().height);
  }

  @Override
  public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection) {
    return new ChopboxAnchor(getFigure());
  }
View Full Code Here

    return new ChopboxAnchor(getFigure());
  }

  @Override
  public ConnectionAnchor getSourceConnectionAnchor(Request request) {
    return new ChopboxAnchor(getFigure());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ChopboxAnchor

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.