com.vuze.plugins.mlab.tools.ndt.swingemu

## Class StyledDocument

- java.lang.Object
- - com.vuze.plugins.mlab.tools.ndt.swingemu.StyledDocument

-     public class StyledDocument
      extends Object

  Emulation of javax.swing.text.StyledDocument for the NDT (Network Diagnostic Tool) plugin.

  This class provides a functional document model that captures text content from the NDT tool and logs it to the I2P logging system. Unlike most components in this package, StyledDocument provides actual functionality by storing text content and forwarding it to the I2P logger.

  This allows NDT test results and formatted text to be captured and logged even in headless environments without requiring an actual graphical display. The document supports text insertion and length tracking but provides no actual styling or rendering functionality.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StyledDocument()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getLength()`
    `void` | `insertString(int offset, String s, Object x)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StyledDocument

          public StyledDocument()

  - ### Method Detail

    - #### getLength

          public int getLength()

    - #### insertString

          public void insertString(int offset,
                                   String s,
                                   Object x)
                            throws BadLocationException

      Throws:
        `BadLocationException`