jp.sourceforge.gtibuilder.editor
クラス TextColoring

java.lang.Object
  拡張jp.sourceforge.gtibuilder.editor.TextColoring
すべての実装インタフェース:
DocumentListener, EventListener

public class TextColoring
extends Object
implements DocumentListener

このクラスはJavaのソースコードを色分け表示するときに使われます。


入れ子クラスの概要
(パッケージプライベート)  class TextColoring.Comment
           
(パッケージプライベート)  class TextColoring.Word
           
 
フィールドの概要
private static String[][] colorText
           
static SimpleAttributeSet comment
           
private  List commentDatabase
           
private  boolean commentFound
           
private  StyledDocument document
           
private static boolean inited
           
static SimpleAttributeSet javaKey
           
static SimpleAttributeSet normal
           
static SimpleAttributeSet text
           
private  JTextPane tp
           
 
コンストラクタの概要
TextColoring(JTextPane tp)
          Creates a new instance of TextColoring
 
メソッドの概要
 void changeDocument(int offset, int length)
           
 void changedUpdate(DocumentEvent documentEvent)
           
private  void coloring(TextColoring.Word word)
           
private  void coloringComment()
           
private  void coloringText(int start, int end)
           
private static void init()
           
 void insertUpdate(DocumentEvent documentEvent)
           
 void removeUpdate(DocumentEvent documentEvent)
           
static void reset()
           
 
クラス 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()