public synchronized void draw(final Graphics2D gfx, final float x, final float y) {
    if (!isEmpty()) {
      m_textLayout.draw(gfx, x, y);

      for (final CHighlighting highlighting : new ArrayList<>(m_highlighting)) {
        final double bpX = (x + highlighting.getStart()) - 2.;
        final double bpY = (y - m_charHeight) + 4;
        final double bpW = highlighting.getEnd() + 4;
        final double bpH = m_charHeight - 1;

        drawHighlighting(gfx, bpX, bpY, bpW, bpH, highlighting.getColor());
      }
    }
  }
Draws the line onto a graphics context.

@param gfx The graphics context to draw on.
@param x The x coordinate where the line is placed.
@param y The y coordinate where the line is placed.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/realizers/ZyLineContent.java