private void drawHighlighting(
      final Graphics2D gfx,
      final double x,
      final double y,
      final double width,
      final double height,
      final Color color) {
    gfx.setColor(color);

    final int roundedX = (int) Math.round(x);
    final int roundedY = (int) Math.round(y);
    final int roundedHeight = (int) Math.round(height);
    final int roundedWidth = (int) Math.round(width);

    gfx.setComposite(DEFAULT_COMPOSITE);

    // Draw the inner part of the highlighting area
    gfx.fillRoundRect(roundedX, roundedY, roundedWidth, roundedHeight, 10, 10);

    // Draw the border of the highlighting area
    gfx.setColor(color.darker());
    gfx.setStroke(DEFAULT_BORDER_STROKE);
    gfx.drawRoundRect(roundedX, roundedY, roundedWidth, roundedHeight, 10, 10);

    // Reset the setting changes
    gfx.setComposite(NORMAL_COMPOSITE);
    gfx.setStroke(NORMAL_STROKE);
  }
Highlights the line.

@param gfx The graphics context where the highlighting is drawn.
@param x The x position where the highlighting begins.
@param y The y position where the highlighting begins.
@param width The width of the highlighting area.
@param height The height of the highlighting area.
@param color The color of the highlighting area.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/realizers/ZyLineContent.java