Factored TibetanDocument into two classes, one that is a

DefaultStyledDocument, and another consisting entirely of static utility
methods for processing Tibetan text.  Moved TibetanDocument.DuffData
into its own class.

I think this makes things a bit more transparent, and gets us a little closer to
making clean use of Swing.
This commit is contained in:
dchandler 2002-11-02 03:38:59 +00:00
parent 5249c48807
commit abcf8f19b3
25 changed files with 1490 additions and 1337 deletions

View file

@ -19,8 +19,8 @@ package org.thdl.tib.scanner;
import javax.swing.*;
import javax.swing.table.*;
import org.thdl.tib.text.TibetanDocument;
import org.thdl.tib.text.TibetanDocument.DuffData;
import org.thdl.tib.text.TibTextUtils;
import org.thdl.tib.text.DuffData;
/** Stores the words being displayed in a DictionaryTable.
@ -114,7 +114,7 @@ public class DictionaryTableModel extends AbstractTableModel
try
{
for (i=0; i<array.length; i++)
arrayTibetan[i]=TibetanDocument.getTibetanMachineWeb(array[i].getWylie());
arrayTibetan[i]=TibTextUtils.getTibetanMachineWeb(array[i].getWylie());
}
catch (Exception e)
{
@ -122,4 +122,4 @@ public class DictionaryTableModel extends AbstractTableModel
}
}
}
}
}