Exemplo n.º 1
0
 public StickingPolygon generateStickingBorder(
     int x, int y, int width, int height) { // LME: define the polygon on which relations stick on
   StickingPolygon p = new StickingPolygon();
   p.addPoint(new Point(x, y));
   p.addPoint(new Point(x + width, y));
   p.addPoint(new Point(x + width, y + height));
   p.addPoint(new Point(x, y + height), true);
   return p;
 }
Exemplo n.º 2
0
Arquivo: Node.java Projeto: dev693/swe
 @Override
 public StickingPolygon generateStickingBorder(int x, int y, int width, int height) {
   int size_3d = 10;
   StickingPolygon p = new StickingPolygon();
   p.addPoint(new Point(x, y + size_3d));
   p.addPoint(new Point(x, y + height));
   p.addPoint(new Point(x + width - size_3d, y + height));
   p.addPoint(new Point(x + width, y + height - size_3d));
   p.addPoint(new Point(x + width, y));
   p.addPoint(new Point(x + size_3d, y), true);
   return p;
 }