Examples of translateToRelative()


Examples of org.eclipse.draw2d.AbstractPointListShape.translateToRelative()

    AbstractPointListShape feedback = getPolylineFeedback(request);
    /*
     * For efficiency reasons we don't use getPointListFor() and don't
     * normalize the feedback
     */
    feedback.translateToRelative(p);
    if (feedback.getPoints().size() == 0) {
      Point start = request.getPoints().getFirstPoint().getCopy();
      feedback.translateToRelative(start);
      feedback.addPoint(start);
    }
View Full Code Here

Examples of org.eclipse.draw2d.AbstractPointListShape.translateToRelative()

     * normalize the feedback
     */
    feedback.translateToRelative(p);
    if (feedback.getPoints().size() == 0) {
      Point start = request.getPoints().getFirstPoint().getCopy();
      feedback.translateToRelative(start);
      feedback.addPoint(start);
    }
    feedback.addPoint(p);
  }

View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

  {
    CreateBendpointCommand com = new CreateBendpointCommand();
    Point p = request.getLocation();
    Connection conn = getConnection();

    conn.translateToRelative(p);

    com.setLocation(p);
    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

    com.setLocation(p);
    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();

    conn.translateToRelative(ref1);
    conn.translateToRelative(ref2);


    com.setRelativeDimensions(p.getDifference(ref1),
      p.getDifference(ref2));
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

    com.setLocation(p);
    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();

    conn.translateToRelative(ref1);
    conn.translateToRelative(ref2);


    com.setRelativeDimensions(p.getDifference(ref1),
      p.getDifference(ref2));
    com.setWire((EdgeModel) request.getSource().getModel());
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

  {
    MoveBendpointCommand com = new MoveBendpointCommand();
    Point p = request.getLocation();
    Connection conn = getConnection();

    conn.translateToRelative(p);

    com.setLocation(p);

    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

    com.setLocation(p);

    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();

    conn.translateToRelative(ref1);
    conn.translateToRelative(ref2);

    com.setRelativeDimensions(p.getDifference(ref1),
      p.getDifference(ref2));
    com.setWire((EdgeModel) request.getSource().getModel());
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();

    conn.translateToRelative(ref1);
    conn.translateToRelative(ref2);

    com.setRelativeDimensions(p.getDifference(ref1),
      p.getDifference(ref2));
    com.setWire((EdgeModel) request.getSource().getModel());
    com.setIndex(request.getIndex());
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

    }
    CreateBendPointCommand com = new CreateBendPointCommand();
    Point p = request.getLocation();
    Connection conn = getConnection();

    conn.translateToRelative(p);

    com.setLocation(p);
    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();
View Full Code Here

Examples of org.eclipse.draw2d.Connection.translateToRelative()

    com.setLocation(p);
    Point ref1 = getConnection().getSourceAnchor().getReferencePoint();
    Point ref2 = getConnection().getTargetAnchor().getReferencePoint();

    conn.translateToRelative(ref1);
    conn.translateToRelative(ref2);

    com.setRelativeDimensions(p.getDifference(ref1), p.getDifference(ref2));
    com.setDiagramConnectionModel((DiagramConnectionModel) request.getSource().getModel());
    com.setIndex(request.getIndex());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.