Class JSyntaxUtils
java.lang.Object
net.thevpc.jeep.editor.JSyntaxUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetColumnNumber(JTextComponent editor, int pos) Gets the column number at given position of editor.static intgetLineCount(JTextComponent pane) static intgetLineNumber(JTextComponent editor, int pos) Gets the Line Number at the give position of the editor component.static RectanglegetScreenBoundsForPoint(int x, int y) static StringgetSourceName(JTextComponent component) static JSyntaxDocumentgetSyntaxDocument(JTextComponent component) A helper function that will return the SyntaxDocument attached to the given text component.static voidsetSourceName(JTextComponent component, String sourceName) static voidsetText(JTextComponent component, JTextSource source)
-
Field Details
-
SOURCE_NAME
- See Also:
-
-
Constructor Details
-
JSyntaxUtils
public JSyntaxUtils()
-
-
Method Details
-
getSourceName
-
setSourceName
-
setText
-
getSyntaxDocument
A helper function that will return the SyntaxDocument attached to the given text component. Return null if the document is not a SyntaxDocument, or if the text component is null -
getLineCount
-
getLineNumber
Gets the Line Number at the give position of the editor component. The first line number is ZERO- Returns:
- line number
-
getColumnNumber
Gets the column number at given position of editor. The first column is ZERO- Returns:
- the 0 based column number
-
getScreenBoundsForPoint
-