Пример #1
0
 /** Gets the display box of the connector. */
 @Override
 public Rectangle2D.Double getBounds() {
   Point2D.Double p = locator.locate(getOwner());
   return new Rectangle2D.Double(p.x - SIZE / 2, p.y - SIZE / 2, SIZE, SIZE);
 }
Пример #2
0
 protected Point2D.Double locate(ConnectionFigure connection) {
   return locator.locate(getOwner());
 }