|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hunsicker.jalopy.swing.syntax.SyntaxUtilities
public class SyntaxUtilities
Class with segment and bracket matching functions used by the syntax colorizing subsystem. It also provides a way to get the default color table.
Method Summary | |
---|---|
static java.awt.Color[] |
getDefaultSyntaxColors()
Returns the default color table. |
static boolean |
regionMatches(boolean ignoreCase,
javax.swing.text.Segment text,
int offset,
char[] match)
Checks if a subregion of a Segment is equal to a character array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.Color[] getDefaultSyntaxColors()
setColors()
method of SyntaxDocument
to use the default
syntax colors.
public static boolean regionMatches(boolean ignoreCase, javax.swing.text.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 match
true
if the given Segment is equal to the character array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |