public class SyntaxUtilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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. |
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 matchtrue
if the given Segment is equal to the character array.