Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.Rectangle.right()


            y = r.bottom() - 1 - offsetV;
        }
        if (leftToRight) {
            x = r.x + offsetH;
        } else {
            x = r.right() - 1 - offsetH;
        }
        Point p = new PrecisionPoint(x, y);
        getOwner().translateToAbsolute(p);
        return p;
    }
View Full Code Here


      if (epIndex > 0) {
        // Need to determine if a line break.
        Rectangle boxPrev = transposer
            .t(getAbsoluteBounds((GraphicalEditPart) getHost()
                .getChildren().get(epIndex - 1)));
        int prevRight = boxPrev.right();
        if (prevRight < r.x) {
          // Not a line break
          x = prevRight + (r.x - prevRight) / 2;
        } else if (prevRight == r.x) {
          x = prevRight + 1;
View Full Code Here

  r.translate(2, 2);
  r.setSize(11, 9);

  //Draw terminals, 2 at top
  g.drawLine(r.x + 2, r.y + 2, r.x + 2, r.y - 2);
  g.drawLine(r.right() - 3, r.y + 2, r.right() - 3, r.y - 2);

  // fix it
  g.drawPoint(r.x + 2, r.y + 2);
  g.drawPoint(r.right() - 3, r.y + 2);
 
View Full Code Here

  r.translate(2, 2);
  r.setSize(11, 9);

  //Draw terminals, 2 at top
  g.drawLine(r.x + 2, r.y + 2, r.x + 2, r.y - 2);
  g.drawLine(r.right() - 3, r.y + 2, r.right() - 3, r.y - 2);

  // fix it
  g.drawPoint(r.x + 2, r.y + 2);
  g.drawPoint(r.right() - 3, r.y + 2);
 
View Full Code Here

  g.drawLine(r.x + 2, r.y + 2, r.x + 2, r.y - 2);
  g.drawLine(r.right() - 3, r.y + 2, r.right() - 3, r.y - 2);

  // fix it
  g.drawPoint(r.x + 2, r.y + 2);
  g.drawPoint(r.right() - 3, r.y + 2);
 
  //Draw an oval that represents the bottom arc
  r.y += 4;
 
  /*
 
View Full Code Here

  r.translate(2, 2);
  r.setSize(11, 9);

  //Draw terminals, 2 at top
  g.drawLine(r.x + 2, r.y, r.x + 2, r.y - 2);
  g.drawLine(r.right() - 3, r.y, r.right() - 3, r.y - 2);
  g.drawPoint(r.x + 2, r.y);
  g.drawPoint(r.right() - 3, r.y);
 
  //outline main area
  g.drawLine(r.x, r.y, r.right() - 1, r.y);
View Full Code Here

  r.translate(2, 2);
  r.setSize(11, 9);

  //Draw terminals, 2 at top
  g.drawLine(r.x + 2, r.y, r.x + 2, r.y - 2);
  g.drawLine(r.right() - 3, r.y, r.right() - 3, r.y - 2);
  g.drawPoint(r.x + 2, r.y);
  g.drawPoint(r.right() - 3, r.y);
 
  //outline main area
  g.drawLine(r.x, r.y, r.right() - 1, r.y);
View Full Code Here

  //Draw terminals, 2 at top
  g.drawLine(r.x + 2, r.y, r.x + 2, r.y - 2);
  g.drawLine(r.right() - 3, r.y, r.right() - 3, r.y - 2);
  g.drawPoint(r.x + 2, r.y);
  g.drawPoint(r.right() - 3, r.y);
 
  //outline main area
  g.drawLine(r.x, r.y, r.right() - 1, r.y);
  g.drawLine(r.right() - 1, r.y, r.right() - 1, r.bottom() - 1);
  g.drawLine(r.x, r.y, r.x, r.bottom() - 1);
View Full Code Here

  g.drawLine(r.right() - 3, r.y, r.right() - 3, r.y - 2);
  g.drawPoint(r.x + 2, r.y);
  g.drawPoint(r.right() - 3, r.y);
 
  //outline main area
  g.drawLine(r.x, r.y, r.right() - 1, r.y);
  g.drawLine(r.right() - 1, r.y, r.right() - 1, r.bottom() - 1);
  g.drawLine(r.x, r.y, r.x, r.bottom() - 1);

  g.drawPoint(r.x, r.y);
  g.drawPoint(r.right() - 1, r.y);
View Full Code Here

  g.drawPoint(r.x + 2, r.y);
  g.drawPoint(r.right() - 3, r.y);
 
  //outline main area
  g.drawLine(r.x, r.y, r.right() - 1, r.y);
  g.drawLine(r.right() - 1, r.y, r.right() - 1, r.bottom() - 1);
  g.drawLine(r.x, r.y, r.x, r.bottom() - 1);

  g.drawPoint(r.x, r.y);
  g.drawPoint(r.right() - 1, r.y);
 
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.