public class FastSyntaxColoringModel extends SyntaxColoringModel
FastSyntaxColoringModel class implements the
TextEditModel interface.
The FastSyntaxColoringModel object hilights the syntax of
the text representing a program written in a computer language.
The FastSyntaxColoringModel hilights the syntax faster than
the SyntaxColoringModel but it cannot change the font styles
for the tokens.
DefaultTextEditModel.ParagraphStyleUndo, DefaultTextEditModel.ReplaceUndo, DefaultTextEditModel.TextStyleUndobaseFont, COMMENT_STYLE, commentStyle, CONSTANT_STYLE, constantStyle, factory, KEYWORD_STYLE, keywordStyle, mlCommentStyle, mlConstantStyle, MULTILINE_COMMENT_STYLE, MULTILINE_CONSTANT_STYLE, NORMAL_STYLE, normalStyle, syntaxColoringEnabledtextListener, textListenerKrichText, textModelListeners| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
FastSyntaxColoringModel()
Constructs an empty model.
|
|
FastSyntaxColoringModel(RichText richText,
LanguageTokenizerFactory factory)
Constructs a model with the specified rich text and factory of the
language tokenizer.
|
|
FastSyntaxColoringModel(RichText richText,
LanguageTokenizerFactory factory,
java.awt.Font baseFont)
Constructs a model with the specified rich text, factory of the
language tokenizer, and base font.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected java.awt.Color |
getDefaultCommentColor()
Returns the default font color for the comment tokens.
|
protected int |
getDefaultCommentStyle()
Returns the default font style for the comment tokens.
|
protected java.awt.Color |
getDefaultConstantColor()
Returns the default font color for the constant tokens.
|
protected int |
getDefaultConstantStyle()
Returns the default font style for the constant tokens.
|
protected java.awt.Color |
getDefaultKeywordColor()
Returns the default font color for the keyword tokens.
|
protected int |
getDefaultKeywordStyle()
Returns the default font style for the keyword tokens.
|
protected java.awt.Color |
getDefaultNormalColor()
Returns the default font color for the normal tokens.
|
protected int |
getDefaultNormalStyle()
Returns the default font style for the normal tokens.
|
protected void |
notifyTextModelListeners(int begin,
int end,
TextChange change)
Notifies the text model event to the text model listeners.
|
void |
setCommentStyleAndColor(int fontStyle,
java.awt.Color color)
Sets the font style for the comment tokens.
|
void |
setConstantStyleAndColor(int fontStyle,
java.awt.Color color)
Sets the font style for the constant tokens.
|
void |
setKeywordStyleAndColor(int fontStyle,
java.awt.Color color)
Sets the font style for the keyword tokens.
|
void |
setNormalStyleAndColor(int fontStyle,
java.awt.Color color)
Sets the font style for the normal tokens.
|
coloringSyntax, 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, removeTextModelListenerpublic FastSyntaxColoringModel(RichText richText, LanguageTokenizerFactory factory)
richText - the rich text.factory - the factory of the language tokenizer.public FastSyntaxColoringModel(RichText richText, LanguageTokenizerFactory factory, java.awt.Font baseFont)
richText - the rich text.factory - the factory of the language tokenizer.baseFont - the base font of the model.protected FastSyntaxColoringModel()
public void setNormalStyleAndColor(int fontStyle,
java.awt.Color color)
setNormalStyleAndColor クラス内 SyntaxColoringModelpublic void setKeywordStyleAndColor(int fontStyle,
java.awt.Color color)
setKeywordStyleAndColor クラス内 SyntaxColoringModelpublic void setConstantStyleAndColor(int fontStyle,
java.awt.Color color)
setConstantStyleAndColor クラス内 SyntaxColoringModelpublic void setCommentStyleAndColor(int fontStyle,
java.awt.Color color)
setCommentStyleAndColor クラス内 SyntaxColoringModelprotected void notifyTextModelListeners(int begin,
int end,
TextChange change)
notifyTextModelListeners クラス内 SyntaxColoringModelprotected int getDefaultNormalStyle()
getDefaultNormalStyle クラス内 SyntaxColoringModelprotected java.awt.Color getDefaultNormalColor()
getDefaultNormalColor クラス内 SyntaxColoringModelprotected int getDefaultKeywordStyle()
getDefaultKeywordStyle クラス内 SyntaxColoringModelprotected java.awt.Color getDefaultKeywordColor()
getDefaultKeywordColor クラス内 SyntaxColoringModelprotected int getDefaultConstantStyle()
getDefaultConstantStyle クラス内 SyntaxColoringModelprotected java.awt.Color getDefaultConstantColor()
getDefaultConstantColor クラス内 SyntaxColoringModelprotected int getDefaultCommentStyle()
getDefaultCommentStyle クラス内 SyntaxColoringModelprotected java.awt.Color getDefaultCommentColor()
getDefaultCommentColor クラス内 SyntaxColoringModel