|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmars.venus.editors.jeditsyntax.TextUtilities
public class TextUtilities
Class with several utility functions used by the text area component.
| Constructor Summary | |
|---|---|
TextUtilities()
|
|
| Method Summary | |
|---|---|
static int |
findMatchingBracket(Document doc,
int offset)
Returns the offset of the bracket matching the one at the specified offset of the document, or -1 if the bracket is unmatched (or if the character is not a bracket). |
static int |
findWordEnd(String line,
int pos,
String noWordSep)
Locates the end of the word at the specified position. |
static int |
findWordStart(String line,
int pos,
String noWordSep)
Locates the start of the word at the specified position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextUtilities()
| Method Detail |
|---|
public static int findMatchingBracket(Document doc,
int offset)
throws BadLocationException
doc - The documentoffset - The offset
BadLocationException - If an out-of-bounds access
was attempted on the document text
public static int findWordStart(String line,
int pos,
String noWordSep)
line - The textpos - The position
public static int findWordEnd(String line,
int pos,
String noWordSep)
line - The textpos - The position
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||