public Rectangle2D getBounds() {
    if (isEmpty()) {
      final AttributedString dummyString = new AttributedString(" ");
      final TextLayout dummyLayout = new TextLayout(dummyString.getIterator(), m_fontContext);

      return dummyLayout.getBounds();
    }

    return new Rectangle2D.Double(0, 0, m_charWidth * m_text.length(), m_charHeight);
  }
Returns the bounds of the line.

@return The bounds of the line.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/realizers/ZyLineContent.java