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

    m_content.draw(gfx, roundedX, roundedY);
  }
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