|Home >> All >> org >> syntax|
|||org.syntax.jedit.* (17)||||org.syntax.jedit.tokenmarker.* (7)|
JEditTextArea: jEdit's text area component. It is more suited for editing program source code than JEditorPane, because it drops the unnecessary features (images, variable-width lines, and so on) and adds a whole bunch of useful goodies such as: More flexible key binding scheme Supports macro recorders Rectangular selection Bracket highlighting Syntax highlighting Command repetition Block caret can be enabled It is also faster and doesn't have as many problems. It can be used in other applications; the only other part of jEdit it depends on is the syntax package. To use it in your app, treat it like any other ...
TokenMarker: A token marker that splits lines of text into tokens. Each token carries a length field and an indentification tag that can be mapped to a color for painting that token. For performance reasons, the linked list of tokens is reused after each line is tokenized. Therefore, the return value of markTokens should only be used for immediate painting. Notably, it cannot be cached.
InputHandler: An input handler converts the user's key strokes into concrete actions. It also takes care of macro recording and action repetition. This class provides all the necessary support code for an input handler, but doesn't actually do any key binding logic. It is up to the implementations of this class to do so.
Token: A linked list of tokens. Each token has three fields - a token identifier, which is a byte value that can be looked up in the array returned by SyntaxDocument.getColors() to get a color value, a length value which is the length of the token in the text, and a pointer to the next token in the list.
KeywordMap: A KeywordMap is similar to a hashtable in that it maps keys to values. However, the `keys' are Swing segments. This allows lookups of text substrings without the overhead of creating a new string object. This class is used by CTokenMarker to map keywords to ids.
TextAreaDefaults: Encapsulates default settings for a text area. This can be passed to the constructor once the necessary fields have been filled out. The advantage of doing this over calling lots of set() methods after creating the text area is that this method is faster.
DefaultInputHandler: The default input handler. It maps sequences of keystrokes into actions and inserts key typed events into the text area.
SyntaxStyle: A simple text style class. It can specify the color, italic flag, and bold flag of a run of text.
TextAreaPainter: The text area repaint manager. It performs double buffering and paints lines of text.
SyntaxDocument: A document implementation that can be tokenized by the syntax highlighting system.
SyntaxUtilities: Class with several utility functions used by jEdit's syntax colorizing subsystem.
TextUtilities: Class with several utility functions used by the text area component.
XMLTokenMarker: XML Token Marker Rewrite
HTMLTokenMarker: HTML token marker.
XSLTokenMarker: XSL token marker.
CTokenMarker: C token marker.