Package org.eclipse.draw2d.geometry

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


  g.drawPoint(r.x, r.bottom() - 3);
  g.drawPoint(r.right() - 1, r.y + 2);
  g.drawPoint(r.right() - 1, r.bottom() - 3);
  g.drawLine(r.x, r.y + 2, r.right() - 1, r.y + 2);
  g.drawLine(r.x, r.bottom() - 3, r.right() - 1, r.bottom() - 3);
  g.drawLine(r.x, r.y + 2, r.x, r.bottom() - 3);
  g.drawLine(r.right() - 1, r.bottom() - 3, r.right() - 1, r.y + 2);
 
  r.crop(new Insets(1, 1, 0, 0));
  r.expand(1, 1);
  r.crop(getInsets(figure));
View Full Code Here


  g.drawPoint(r.right() - 1, r.y + 2);
  g.drawPoint(r.right() - 1, r.bottom() - 3);
  g.drawLine(r.x, r.y + 2, r.right() - 1, r.y + 2);
  g.drawLine(r.x, r.bottom() - 3, r.right() - 1, r.bottom() - 3);
  g.drawLine(r.x, r.y + 2, r.x, r.bottom() - 3);
  g.drawLine(r.right() - 1, r.bottom() - 3, r.right() - 1, r.y + 2);
 
  r.crop(new Insets(1, 1, 0, 0));
  r.expand(1, 1);
  r.crop(getInsets(figure));
  drawConnectors(g, figure.getBounds().getCropped(in));
View Full Code Here

  g.fillOval(r);
  r.width--;
  r.height--;
  g.drawOval(r);
  g.popState();
  g.drawLine(r.x + r.width / 2, r.bottom(), r.x + r.width / 2, r.bottom() + 2);

  //Draw the gate outline and top curve
  g.translate(getLocation());
  g.drawPolyline(GATE_TOP);
  g.fillPolygon(GATE_OUTLINE);
View Full Code Here

  g.fillOval(r);
  r.width--;
  r.height--;
  g.drawOval(r);
  g.popState();
  g.drawLine(r.x + r.width / 2, r.bottom(), r.x + r.width / 2, r.bottom() + 2);

  //Draw the gate outline and top curve
  g.translate(getLocation());
  g.drawPolyline(GATE_TOP);
  g.fillPolygon(GATE_OUTLINE);
View Full Code Here

  r.width--;
  r.height--;
  g.drawPoint(r.x, r.y + 4);
 
  g.drawArc(r, 180, 180);
  g.drawLine(r.x + r.width / 2, r.bottom(), r.x + r.width / 2, r.bottom() + 2);
  g.drawPoint(r.x + r.width / 2, r.bottom());
 
  //draw gate
  g.translate(getLocation());
  g.drawPolyline(GATE_OUTLINE);
View Full Code Here

  r.width--;
  r.height--;
  g.drawPoint(r.x, r.y + 4);
 
  g.drawArc(r, 180, 180);
  g.drawLine(r.x + r.width / 2, r.bottom(), r.x + r.width / 2, r.bottom() + 2);
  g.drawPoint(r.x + r.width / 2, r.bottom());
 
  //draw gate
  g.translate(getLocation());
  g.drawPolyline(GATE_OUTLINE);
View Full Code Here

  r.height--;
  g.drawPoint(r.x, r.y + 4);
 
  g.drawArc(r, 180, 180);
  g.drawLine(r.x + r.width / 2, r.bottom(), r.x + r.width / 2, r.bottom() + 2);
  g.drawPoint(r.x + r.width / 2, r.bottom());
 
  //draw gate
  g.translate(getLocation());
  g.drawPolyline(GATE_OUTLINE);
  g.fillPolygon(GATE_OUTLINE);
View Full Code Here

  Rectangle r = getOwner().getBounds();
  int x,y;
  if (topDown)
    y = r.y + offsetV;
  else
    y = r.bottom() - 1 - offsetV;

  if (leftToRight)
    x = r.x + offsetH;
  else
    x = r.right() - 1 - offsetH;
View Full Code Here

    Rectangle r = super.getBounds();
    g.setAntialias(SWT.ON);
    g.setBackgroundColor(COLOR);
    g.fillRectangle(r.x, r.y, 5, r.height - 5);
    g.fillRectangle(r.right() - 9, r.y, 5, r.height - 5);
    g.fillRectangle(r.x, r.bottom() - 9, r.width - 5, 5);
    g.fillRectangle(r.x, r.y, r.width - 5, getBeanSize());
  }

  public int getBeanSize() {
    int size = label.getPreferredSize().height;
View Full Code Here

    int x, y;
    if (topDown) {
      y = r.y + offsetV;
    }
    else {
      y = r.bottom() - 1 - offsetV;
    }

    if (leftToRight) {
      x = r.x + offsetH;
    }
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.