|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.venus.editors.jeditsyntax.SyntaxUtilities
public class SyntaxUtilities
Class with several utility functions used by jEdit's syntax colorizing subsystem.
Field Summary | |
---|---|
static Popup |
popup
|
static boolean |
popupShowing
Paints the specified line onto the graphics context. |
Method Summary | |
---|---|
static SyntaxStyle[] |
getCurrentSyntaxStyles()
Returns the CURRENT style table. |
static SyntaxStyle[] |
getDefaultSyntaxStyles()
Returns the default style table. |
static int |
paintSyntaxLine(Segment line,
Token tokens,
SyntaxStyle[] styles,
TabExpander expander,
Graphics gfx,
int x,
int y)
|
static boolean |
regionMatches(boolean ignoreCase,
Segment text,
int offset,
char[] match)
Checks if a subregion of a Segment is equal to a
character array. |
static boolean |
regionMatches(boolean ignoreCase,
Segment text,
int offset,
String match)
Checks if a subregion of a Segment is equal to a
string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean popupShowing
public static Popup popup
Method Detail |
---|
public static boolean regionMatches(boolean ignoreCase, Segment text, int offset, String match)
Segment
is equal to a
string.
ignoreCase
- True if case should be ignored, false otherwisetext
- The segmentoffset
- The offset into the segmentmatch
- The string to matchpublic static boolean regionMatches(boolean ignoreCase, Segment text, int offset, char[] match)
Segment
is equal to a
character array.
ignoreCase
- True if case should be ignored, false otherwisetext
- The segmentoffset
- The offset into the segmentmatch
- The character array to matchpublic static SyntaxStyle[] getDefaultSyntaxStyles()
setStyles()
method of SyntaxDocument
to use the default syntax styles.
public static SyntaxStyle[] getCurrentSyntaxStyles()
setStyles()
method of SyntaxDocument
to use the current syntax styles. If changes have been made
via MARS Settings menu, the current settings will not be the
same as the default settings.
public static int paintSyntaxLine(Segment line, Token tokens, SyntaxStyle[] styles, TabExpander expander, Graphics gfx, int x, int y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |