public class JavaSyntaxColoringModel extends FastSyntaxColoringModel
JavaSyntaxColoringModel class implements the
TextEditModel interface.
The JavaSyntaxColoringModel object hilights the syntax of
C, C++, and Java.DefaultTextEditModel.ParagraphStyleUndo, DefaultTextEditModel.ReplaceUndo, DefaultTextEditModel.TextStyleUndo| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static int |
C_LANG
The syntax coloring of the C language.
|
protected static int |
CPP_LANG
The syntax coloring of the C++ language.
|
protected static int |
JAVA_LANG
The syntax coloring of the Java language.
|
protected int |
language
the syntax coloring language.
|
baseFont, COMMENT_STYLE, commentStyle, CONSTANT_STYLE, constantStyle, factory, KEYWORD_STYLE, keywordStyle, mlCommentStyle, mlConstantStyle, MULTILINE_COMMENT_STYLE, MULTILINE_CONSTANT_STYLE, NORMAL_STYLE, normalStyle, syntaxColoringEnabledtextListener, textListenerKrichText, textModelListeners| コンストラクタと説明 |
|---|
JavaSyntaxColoringModel()
Constructs an empty model.
|
JavaSyntaxColoringModel(java.lang.String string)
Constructs a model with the specified string.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
isCMode()
Checks if this component colors the syntax of the C language.
|
boolean |
isCPPMode()
Checks if this component colors the syntax of the C++ language.
|
boolean |
isJavaMode()
Checks if this component colors the syntax of the Java language.
|
void |
setCMode()
Makes this component colors the syntax of the C language.
|
void |
setCPPMode()
Makes this component colors the syntax of the C++ language.
|
void |
setJavaMode()
Makes this component colors the syntax of the Java language.
|
getDefaultCommentColor, getDefaultCommentStyle, getDefaultConstantColor, getDefaultConstantStyle, getDefaultKeywordColor, getDefaultKeywordStyle, getDefaultNormalColor, getDefaultNormalStyle, notifyTextModelListeners, setCommentStyleAndColor, setConstantStyleAndColor, setKeywordStyleAndColor, setNormalStyleAndColorcoloringSyntax, coloringSyntax, getBaseFont, getCommentColor, getCommentStyle, getConstantColor, getConstantStyle, getKeywordColor, getKeywordStyle, getNormalColor, getNormalStyle, getTokenizer, getTokenType, isSyntaxColoringEnabled, modifyTextStyle, replace, replace, setBaseFont, setCommentColor, setCommentStyle, setConstantColor, setConstantStyle, setKeywordColor, setKeywordStyle, setNormalColor, setNormalStyle, setRichText, setSyntaxColoringEnabled, setTextStyleaddTextListener, modifyParagraphStyle, notifyTextListeners, removeTextListener, setParagraphStyle, setParagraphStyles, setTextStylesaddTextModelListener, getRichText, notifyTextModelListeners, removeTextModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTextModelListener, getRichText, removeTextModelListenerprotected int language
protected static final int JAVA_LANG
protected static final int C_LANG
protected static final int CPP_LANG
public JavaSyntaxColoringModel()
public JavaSyntaxColoringModel(java.lang.String string)
string - the string.public boolean isJavaMode()
setJavaMode()public void setJavaMode()
isJavaMode()public boolean isCMode()
setCMode()public void setCMode()
isCMode()public boolean isCPPMode()
setCPPMode()public void setCPPMode()
isCPPMode()