All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.util.FastSyntaxColoringModel
java.lang.Object
|
+----jp.kyasu.awt.DefaultTextModel
|
+----jp.kyasu.awt.DefaultTextEditModel
|
+----jp.kyasu.awt.util.SyntaxColoringModel
|
+----jp.kyasu.awt.util.FastSyntaxColoringModel
- public class FastSyntaxColoringModel
- extends SyntaxColoringModel
The 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.
- Version:
- 09 May 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- LanguageTokenizer, LanguageTokenizerFactory
-
FastSyntaxColoringModel(RichText, LanguageTokenizerFactory)
- Constructs a model with the specified rich text and factory of the
language tokenizer.
-
FastSyntaxColoringModel(RichText, LanguageTokenizerFactory, Font)
- Constructs a model with the specified rich text, factory of the
language tokenizer, and base font.
-
setCommentStyleAndColor(int, Color)
- Sets the font style for the comment tokens.
-
setConstantStyleAndColor(int, Color)
- Sets the font style for the constant tokens.
-
setKeywordStyleAndColor(int, Color)
- Sets the font style for the keyword tokens.
-
setNormalStyleAndColor(int, Color)
- Sets the font style for the normal tokens.
FastSyntaxColoringModel
public FastSyntaxColoringModel(RichText richText,
LanguageTokenizerFactory factory)
- Constructs a model with the specified rich text and factory of the
language tokenizer.
- Parameters:
- richText - the rich text.
- factory - the factory of the language tokenizer.
FastSyntaxColoringModel
public FastSyntaxColoringModel(RichText richText,
LanguageTokenizerFactory factory,
Font baseFont)
- Constructs a model with the specified rich text, factory of the
language tokenizer, and base font.
- Parameters:
- richText - the rich text.
- factory - the factory of the language tokenizer.
- baseFont - the base font of the model.
setNormalStyleAndColor
public void setNormalStyleAndColor(int fontStyle,
Color color)
- Sets the font style for the normal tokens.
- Overrides:
- setNormalStyleAndColor in class SyntaxColoringModel
setKeywordStyleAndColor
public void setKeywordStyleAndColor(int fontStyle,
Color color)
- Sets the font style for the keyword tokens.
- Overrides:
- setKeywordStyleAndColor in class SyntaxColoringModel
setConstantStyleAndColor
public void setConstantStyleAndColor(int fontStyle,
Color color)
- Sets the font style for the constant tokens.
- Overrides:
- setConstantStyleAndColor in class SyntaxColoringModel
setCommentStyleAndColor
public void setCommentStyleAndColor(int fontStyle,
Color color)
- Sets the font style for the comment tokens.
- Overrides:
- setCommentStyleAndColor in class SyntaxColoringModel
All Packages Class Hierarchy This Package Previous Next Index