/** Draws this connector. */
  public void draw(Graphics g) {
    Rectangle r = displayBox();

    g.setColor(Color.blue);
    g.fillOval(r.x, r.y, r.width, r.height);
    g.setColor(Color.black);
    g.drawOval(r.x, r.y, r.width, r.height);
  }
 /**
  * Draws the background. If a background pattern is set it is used to fill the background.
  * Otherwise the background is filled in the background color.
  */
 public void drawBackground(Graphics g) {
   g.setColor(getBackground());
   g.fillRect(0, 0, getBounds().width, getBounds().height);
 }