jp.sourceforge.gtibuilder.editor
クラス TextColoring
java.lang.Object
jp.sourceforge.gtibuilder.editor.TextColoring
- すべての実装インタフェース:
- DocumentListener, EventListener
- public class TextColoring
- extends Object
- implements DocumentListener
このクラスはJavaのソースコードを色分け表示するときに使われます。
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tp
private JTextPane tp
document
private StyledDocument document
colorText
private static String[][] colorText
inited
private static boolean inited
commentDatabase
private List commentDatabase
commentFound
private boolean commentFound
javaKey
public static final SimpleAttributeSet javaKey
comment
public static final SimpleAttributeSet comment
text
public static final SimpleAttributeSet text
normal
public static final SimpleAttributeSet normal
TextColoring
public TextColoring(JTextPane tp)
- Creates a new instance of TextColoring
changedUpdate
public void changedUpdate(DocumentEvent documentEvent)
- 定義:
- インタフェース
DocumentListener 内の changedUpdate
insertUpdate
public void insertUpdate(DocumentEvent documentEvent)
- 定義:
- インタフェース
DocumentListener 内の insertUpdate
removeUpdate
public void removeUpdate(DocumentEvent documentEvent)
- 定義:
- インタフェース
DocumentListener 内の removeUpdate
changeDocument
public void changeDocument(int offset,
int length)
coloringText
private void coloringText(int start,
int end)
coloring
private void coloring(TextColoring.Word word)
coloringComment
private void coloringComment()
init
private static void init()
reset
public static void reset()