public class JSyntaxUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JSyntaxUtils.DocElementVisitor |
static class |
JSyntaxUtils.DocElementVisitorRet |
| Modifier and Type | Field and Description |
|---|---|
static String |
SOURCE_NAME |
| Constructor and Description |
|---|
JSyntaxUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getColumnNumber(JTextComponent editor,
int pos)
Gets the column number at given position of editor.
|
static int |
getLineCount(JTextComponent pane) |
static int |
getLineNumber(JTextComponent editor,
int pos)
Gets the Line Number at the give position of the editor component.
|
static Rectangle |
getScreenBoundsForPoint(int x,
int y) |
static String |
getSourceName(JTextComponent component) |
static JSyntaxDocument |
getSyntaxDocument(JTextComponent component)
A helper function that will return the SyntaxDocument attached to the
given text component.
|
static void |
setSourceName(JTextComponent component,
String sourceName) |
static void |
setText(JTextComponent component,
net.thevpc.common.textsource.JTextSource source) |
public static final String SOURCE_NAME
public static String getSourceName(JTextComponent component)
public static void setSourceName(JTextComponent component, String sourceName)
public static void setText(JTextComponent component, net.thevpc.common.textsource.JTextSource source)
public static JSyntaxDocument getSyntaxDocument(JTextComponent component)
public static int getLineCount(JTextComponent pane)
public static int getLineNumber(JTextComponent editor, int pos)
public static int getColumnNumber(JTextComponent editor, int pos)
public static Rectangle getScreenBoundsForPoint(int x, int y)
Copyright © 2021 vpc open source initiative. All rights reserved.