    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class eh.eh_DebugListModel

    java.lang.Object
       |
       +----eh.eh_DebugListModel

public class eh_DebugListModel
extends Object

eh_DebugListModel manages the buffering of lines of debug output in order to display them without a significant performance overhead. Debug output is placed in a StringBuffer, which is then added to a PlainDocument that drives the display itself. The StringBuffer and PlainDocument live herein.

##

DebugBoxMaxChars
  The maximum number of characters the debug box will hold.
DebugBoxTrimSize
  Once the debug box has reached its maximum size, this number of characters will be trimmed from its start.
DebugBuffer
DebugDocument
  Document into which debug information is to be placed for display.

##

eh_DebugListModel()

##

add(String)
  Add InputString to debug output.
checkCapacity()
  If the debug box has reached its designated capacity, trim it by removing a chunk from the beginning.
getDebugBoxMaxChars()
getDebugDocument()
refreshScreen()
  Move the buffered output to the screen.
setDebugBoxMaxChars(int)

##

DebugBuffer

     protected StringBuffer DebugBuffer

DebugDocument

     protected PlainDocument DebugDocument

  Document into which debug information is to be placed for display.

DebugBoxMaxChars

     protected int DebugBoxMaxChars

  The maximum number of characters the debug box will hold. Once this limit is reached, a chunk is removed from the front.

DebugBoxTrimSize

     protected int DebugBoxTrimSize

  Once the debug box has reached its maximum size, this number of characters will be trimmed from its start.

##

eh_DebugListModel

     public eh_DebugListModel()

##

add

     public void add(String InputString)

  Add InputString to debug output.

  Parameters:
    InputString - The string to output

refreshScreen

     protected void refreshScreen()

  Move the buffered output to the screen.

checkCapacity

     protected void checkCapacity()

  If the debug box has reached its designated capacity, trim it by removing a chunk from the beginning. The size of the chunk to remove is such that we end up with 10% less than capacity.

setDebugBoxMaxChars

     public void setDebugBoxMaxChars(int InputMaxLines)

getDebugDocument

     public PlainDocument getDebugDocument()

getDebugBoxMaxChars

     public int getDebugBoxMaxChars()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index