Package org.eclipse.draw2d.geometry

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


  r.width--;
  r.height--;
 
  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());
}

}
View Full Code Here


  r.height--;
 
  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());
}

}
View Full Code Here

  g.setForegroundColor(LogicColorConstants.logicGreen);
  g.setBackgroundColor(LogicColorConstants.logicGreen);
 
  //Draw the sides of the border
  g.fillRectangle(r.x, r.y + 2, r.width, 6);
  g.fillRectangle(r.x, r.bottom() - 8, r.width, 6);
  g.fillRectangle(r.x, r.y + 2, 6, r.height - 4);
  g.fillRectangle(r.right() - 6, r.y + 2, 6, r.height - 4);

  //Outline the border
  g.setForegroundColor(LogicColorConstants.connectorGreen);
View Full Code Here

  g.fillRectangle(r.right() - 6, r.y + 2, 6, r.height - 4);

  //Outline the border
  g.setForegroundColor(LogicColorConstants.connectorGreen);
  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);
View Full Code Here

  g.fillRectangle(r.right() - 6, r.y + 2, 6, r.height - 4);

  //Outline the border
  g.setForegroundColor(LogicColorConstants.connectorGreen);
  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);
View Full Code Here

  //Outline the border
  g.setForegroundColor(LogicColorConstants.connectorGreen);
  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

  //Outline the border
  g.setForegroundColor(LogicColorConstants.connectorGreen);
  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

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

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

  //draw main area
  g.fillRectangle(r);
 
  //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);

  //draw and outline the arc
  r.height = 9;
  r.y += 4;
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.