@Override
  protected void paintBox(
      final Graphics2D gfx,
      final double x,
      final double y,
      final double width1,
      final double height2) {
    final int roundedX = (int) (x - (m_width / 2));
    final int roundedY = (int) (y - (m_height / 2));

    final BasicStroke oldStroke = (BasicStroke) gfx.getStroke();
    gfx.setStroke(new BasicStroke(oldStroke.getLineWidth()));

    gfx.setColor(m_backGroundColor);
    gfx.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.80f));
    gfx.fillRoundRect(
        roundedX, roundedY, m_roundedWidth, m_roundedHeight, RECT_ARC_SIZE, RECT_ARC_SIZE);

    gfx.setColor(borderColor);
    gfx.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.95f));
    gfx.drawRoundRect(
        roundedX, roundedY, m_roundedWidth, m_roundedHeight, RECT_ARC_SIZE, RECT_ARC_SIZE);

    gfx.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.00f));
    gfx.setStroke(oldStroke);
  }
Edge label class that is used to display edge comments.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/realizers/ZyEdgeLabel.java