1 /* 2 SwingWT 3 Copyright(c)2003-2004 Robin Rawson-Tetley 4 5 For more information on distributing and using this program, please 6 see the accompanying "COPYING" file. 7 8 Contact me by electronic mail: bobintetley@users.sourceforge.net 9 10 $Log: GapContent.java,v $ 11 Revision 1.1 2004/04/28 11:02:05 bobintetley 12 PlainDocument implementation 13 14 15 */ 16 17 package swingwtx.swing.text; 18 19 /** 20 * This is Swing's super-scalable Document - in the 21 * meantime, we just descend StringContent to make 22 * it work. 23 * 24 * If anyone is interested, I believe the underlying principle 25 * of this is supposed to be that operating changes around the 26 * gap are cheap (as moving/resizing the gap is easy), whereas 27 * having to move every character in the buffer up and down 28 * according to edits is rather expensive. 29 * 30 * FIXME: Implement properly 31 * 32 * @author Robin Rawson-Tetley 33 */ 34 public class GapContent extends StringContent { 35 public GapContent() { super(); } 36 public GapContent(int initialSize) { super(initialSize); } 37 }