/**
   * Draws the label in addition to the spline. Performs drawing only if the connection is not
   * minimized or under the cursor.
   *
   * @see org.openbp.cockpit.modeler.figures.spline.PolySplineFigure#drawSpline(Graphics2D g2)
   */
  protected void drawSpline(Graphics2D g2) {
    if (isVisible() && !isMinimized()) {
      super.drawSpline(g2);

      label.draw(g2);
    }
  }