|
Gridarta Editor
|
Class with several utility functions used by jEdit's syntax colorizing subsystem. More...
Collaboration diagram for net.sf.gridarta.textedit.textarea.SyntaxUtilities:Static Public Member Functions | |
| static SyntaxStyles | getDefaultSyntaxStyles () |
| Returns the default styles. More... | |
| static int | paintSyntaxLine (final Segment line, final Iterable< Token > tokens, final SyntaxStyles styles, final TabExpander expander, final Graphics gfx, final int x, final int y) |
| Paints the specified line onto the graphics context. More... | |
| static boolean | regionMatches (final boolean ignoreCase, final Segment text, final int offset, final CharSequence match) |
| Checks if a sub-region of a. More... | |
Private Member Functions | |
| SyntaxUtilities () | |
| Private constructor to prevent instantiation. More... | |
Class with several utility functions used by jEdit's syntax colorizing subsystem.
Definition at line 26 of file SyntaxUtilities.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 31 of file SyntaxUtilities.java.
|
static |
Returns the default styles.
This can be passed to TextAreaPainter#setStyles(SyntaxStyles) to use the default syntax styles.
Definition at line 69 of file SyntaxUtilities.java.
References net.sf.gridarta.textedit.textarea.Token.COMMENT1, net.sf.gridarta.textedit.textarea.Token.COMMENT2, net.sf.gridarta.textedit.textarea.Token.ID_COUNT, net.sf.gridarta.textedit.textarea.Token.INVALID, net.sf.gridarta.textedit.textarea.Token.KEYWORD1, net.sf.gridarta.textedit.textarea.Token.KEYWORD2, net.sf.gridarta.textedit.textarea.Token.KEYWORD3, net.sf.gridarta.textedit.textarea.Token.LABEL, net.sf.gridarta.textedit.textarea.Token.LITERAL1, net.sf.gridarta.textedit.textarea.Token.LITERAL2, and net.sf.gridarta.textedit.textarea.Token.OPERATOR.
|
static |
Paints the specified line onto the graphics context.
Note that this method modifies the offset and count values of the segment.
| line | the line segment |
| tokens | the token list for the line |
| styles | the syntax styles |
| expander | the tab expander used to determine tab stops. May be null |
| gfx | the graphics context |
| x | the x co-ordinate |
| y | the y co-ordinate |
Definition at line 99 of file SyntaxUtilities.java.
References net.sf.gridarta.textedit.textarea.SyntaxStyles.getStyle(), net.sf.gridarta.textedit.textarea.Token.NULL, and net.sf.gridarta.textedit.textarea.SyntaxStyle.setGraphicsFlags().
Referenced by net.sf.gridarta.textedit.textarea.TextAreaPainter.paintSyntaxLine().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks if a sub-region of a.
is equal to a string.
| ignoreCase | true if case should be ignored, false otherwise |
| text | the segment |
| offset | the offset into the segment |
| match | the string to match |
Definition at line 42 of file SyntaxUtilities.java.
Referenced by net.sf.gridarta.textedit.textarea.tokenmarker.HTMLTokenMarker.markTokensImpl(), net.sf.gridarta.textedit.textarea.tokenmarker.PythonTokenMarker.markTokensImpl(), and net.sf.gridarta.textedit.textarea.tokenmarker.LuaTokenMarker.markTokensImpl().
Here is the caller graph for this function: