Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.AbstractPointListShape


   *
   * @param request
   */
  protected void showPointlistCreationFeedback(CreatePointlistRequest request) {
    Point p = new Point(request.getPoints().getLastPoint().getCopy());
    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);
    }
    feedback.addPoint(p);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.AbstractPointListShape

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.