Class GapContent

  extended byswingwtx.swing.text.StringContent
      extended byswingwtx.swing.text.GapContent
All Implemented Interfaces:

public class GapContent
extends StringContent

This is Swing's super-scalable Document - in the meantime, we just descend StringContent to make it work. If anyone is interested, I believe the underlying principle of this is supposed to be that operating changes around the gap are cheap (as moving/resizing the gap is easy), whereas having to move every character in the buffer up and down according to edits is rather expensive. FIXME: Implement properly

Constructor Summary
GapContent(int initialSize)
Methods inherited from class swingwtx.swing.text.StringContent
createPosition, getChars, getString, insertString, length, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GapContent()


public GapContent(int initialSize)