Package | Description |
---|---|
org.fife.ui.rsyntaxtextarea |
A syntax-highlighting text editor.
|
org.fife.ui.rsyntaxtextarea.folding |
Code folding functionality.
|
org.fife.ui.rsyntaxtextarea.parser |
Interfaces for parsing text in RSyntaxTextAreas and identifying errors,
warnings, etc.
|
org.fife.ui.rsyntaxtextarea.templates |
Facilitates adding code templates to an
RSyntaxTextArea . |
Modifier and Type | Class and Description |
---|---|
class |
TextEditorPane
An extension of
RSyntaxTextArea
that adds information about the file being edited, such as:
Its name and location. |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
Token.appendHTMLRepresentation(StringBuilder sb,
RSyntaxTextArea textArea,
boolean fontFamily)
Appends HTML code for painting this token, using the given text area's
color scheme.
|
StringBuilder |
TokenImpl.appendHTMLRepresentation(StringBuilder sb,
RSyntaxTextArea textArea,
boolean fontFamily) |
StringBuilder |
Token.appendHTMLRepresentation(StringBuilder sb,
RSyntaxTextArea textArea,
boolean fontFamily,
boolean tabsToSpaces)
Appends HTML code for painting this token, using the given text area's
color scheme.
|
StringBuilder |
TokenImpl.appendHTMLRepresentation(StringBuilder sb,
RSyntaxTextArea textArea,
boolean fontFamily,
boolean tabsToSpaces) |
void |
Theme.apply(RSyntaxTextArea textArea)
Applies this theme to a text area.
|
static Color |
RSyntaxUtilities.getFoldedLineBottomColor(RSyntaxTextArea textArea)
Returns the color to use for the line underneath a folded region line.
|
String |
Token.getHTMLRepresentation(RSyntaxTextArea textArea)
Returns a
String containing HTML code for painting this
token, using the given text area's color scheme. |
String |
TokenImpl.getHTMLRepresentation(RSyntaxTextArea textArea) |
static Rectangle |
RSyntaxUtilities.getLineWidthUpTo(RSyntaxTextArea textArea,
Segment s,
int p0,
int p1,
TabExpander e,
Rectangle rect,
int x0)
Returns the bounding box (in the current view) of a specified position
in the model.
|
int |
Token.getListOffset(RSyntaxTextArea textArea,
TabExpander e,
float x0,
float x)
Determines the offset into this token list (i.e., into the
document) that covers pixel location
x if the token list
starts at pixel location x0 |
int |
TokenImpl.getListOffset(RSyntaxTextArea textArea,
TabExpander e,
float x0,
float x) |
static Point |
RSyntaxUtilities.getMatchingBracketPosition(RSyntaxTextArea textArea,
Point input)
Returns the location of the bracket paired with the one at the current
caret position.
|
static Token |
RSyntaxUtilities.getNextImportantToken(Token t,
RSyntaxTextArea textArea,
int line)
Returns the next non-whitespace, non-comment token in a text area.
|
int |
Token.getOffsetBeforeX(RSyntaxTextArea textArea,
TabExpander e,
float startX,
float endBeforeX)
Returns the position in the document that represents the last character
in the token that will fit into
endBeforeX-startX pixels. |
int |
TokenImpl.getOffsetBeforeX(RSyntaxTextArea textArea,
TabExpander e,
float startX,
float endBeforeX) |
static int |
RSyntaxUtilities.getPositionAbove(RSyntaxTextArea c,
int offs,
float x,
TabExpander e)
Determines the position in the model that is closest to the given
view location in the row above.
|
static int |
RSyntaxUtilities.getPositionBelow(RSyntaxTextArea c,
int offs,
float x,
TabExpander e)
Determines the position in the model that is closest to the given
view location in the row below.
|
static TokenUtils.TokenSubList |
TokenUtils.getSubTokenList(Token tokenList,
int pos,
TabExpander e,
RSyntaxTextArea textArea,
float x0)
Modifies the passed-in token list to start at the specified offset.
|
static TokenUtils.TokenSubList |
TokenUtils.getSubTokenList(Token tokenList,
int pos,
TabExpander e,
RSyntaxTextArea textArea,
float x0,
TokenImpl tempToken)
Modifies the passed-in token list to start at the specified offset.
|
static Token |
HtmlOccurrenceMarker.getTagNameTokenForCaretOffset(RSyntaxTextArea textArea,
OccurrenceMarker occurrenceMarker)
If the caret is inside of a tag, this method returns the token
representing the tag name; otherwise,
null is returned. |
CodeTemplate |
CodeTemplateManager.getTemplate(RSyntaxTextArea textArea)
Returns the template that should be inserted at the current caret
position, assuming the trigger character was pressed.
|
static Token |
RSyntaxUtilities.getTokenAtOffset(RSyntaxTextArea textArea,
int offset)
Returns the token at the specified offset.
|
static float |
RSyntaxUtilities.getTokenListWidth(Token tokenList,
RSyntaxTextArea textArea,
TabExpander e)
Determines the width of the given token list taking tabs
into consideration.
|
static float |
RSyntaxUtilities.getTokenListWidth(Token tokenList,
RSyntaxTextArea textArea,
TabExpander e,
float x0)
Determines the width of the given token list taking tabs
into consideration.
|
static float |
RSyntaxUtilities.getTokenListWidthUpTo(Token tokenList,
RSyntaxTextArea textArea,
TabExpander e,
float x0,
int upTo)
Determines the width of the given token list taking tabs into
consideration and only up to the given index in the document
(exclusive).
|
Token |
OccurrenceMarker.getTokenToMark(RSyntaxTextArea textArea)
Returns the token to mark occurrences, of, provided it matches the
criteria put forth by
OccurrenceMarker.isValidType(RSyntaxTextArea, Token) . |
Token |
HtmlOccurrenceMarker.getTokenToMark(RSyntaxTextArea textArea)
Returns the token to mark occurrences, of, provided it matches the
criteria put forth by
OccurrenceMarker.isValidType(RSyntaxTextArea, Token) . |
Token |
XmlOccurrenceMarker.getTokenToMark(RSyntaxTextArea textArea)
Returns the token to mark occurrences, of, provided it matches the
criteria put forth by
OccurrenceMarker.isValidType(RSyntaxTextArea, Token) . |
float |
Token.getWidth(RSyntaxTextArea textArea,
TabExpander e,
float x0)
Returns the width of this token given the specified parameters.
|
float |
TokenImpl.getWidth(RSyntaxTextArea textArea,
TabExpander e,
float x0) |
float |
Token.getWidthUpTo(int numChars,
RSyntaxTextArea textArea,
TabExpander e,
float x0)
Returns the width of a specified number of characters in this token.
|
float |
TokenImpl.getWidthUpTo(int numChars,
RSyntaxTextArea textArea,
TabExpander e,
float x0) |
static int |
RSyntaxUtilities.getWordEnd(RSyntaxTextArea textArea,
int offs)
Returns the end of the word at the given offset.
|
static int |
RSyntaxUtilities.getWordStart(RSyntaxTextArea textArea,
int offs)
Returns the start of the word at the given offset.
|
protected void |
RSyntaxTextAreaEditorKit.InsertBreakAction.handleInsertBreak(RSyntaxTextArea textArea,
boolean noSelection)
Actually inserts the newline into the document, and auto-indents
if appropriate.
|
LinkGeneratorResult |
LinkGenerator.isLinkAtOffset(RSyntaxTextArea textArea,
int offs)
If a region of text under the mouse position should be considered a
hyperlink, a result object is returned.
|
boolean |
OccurrenceMarker.isValidType(RSyntaxTextArea textArea,
Token t)
Returns whether the specified token is a type that we can do a
"mark occurrences" of.
|
boolean |
HtmlOccurrenceMarker.isValidType(RSyntaxTextArea textArea,
Token t)
Returns whether the specified token is a type that we can do a
"mark occurrences" of.
|
boolean |
XmlOccurrenceMarker.isValidType(RSyntaxTextArea textArea,
Token t)
Returns whether the specified token is a type that we can do a
"mark occurrences" of.
|
Rectangle |
Token.listOffsetToView(RSyntaxTextArea textArea,
TabExpander e,
int pos,
int x0,
Rectangle rect)
Returns the bounding box for the specified document location.
|
Rectangle |
TokenImpl.listOffsetToView(RSyntaxTextArea textArea,
TabExpander e,
int pos,
int x0,
Rectangle rect) |
protected void |
RSyntaxTextAreaUI.paintMatchedBracketImpl(Graphics g,
RSyntaxTextArea rsta,
Rectangle r) |
Constructor and Description |
---|
ActiveLineRangeEvent(RSyntaxTextArea source,
int min,
int max)
Constructor.
|
ErrorStrip(RSyntaxTextArea textArea)
Constructor.
|
FoldingAwareIconRowHeader(RSyntaxTextArea textArea)
Constructor.
|
SelectRegionLinkGeneratorResult(RSyntaxTextArea textArea,
int sourceOffset,
int selStart,
int selEnd) |
Theme(RSyntaxTextArea textArea)
Creates a theme from an RSyntaxTextArea.
|
Modifier and Type | Method and Description |
---|---|
List<Fold> |
LatexFoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
List<Fold> |
HtmlFoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
List<Fold> |
CurlyFoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
List<Fold> |
JsonFoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
List<Fold> |
XmlFoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
List<Fold> |
NsisFoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
List<Fold> |
FoldParser.getFolds(RSyntaxTextArea textArea)
Returns a list of all folds in the text area.
|
Constructor and Description |
---|
Fold(int type,
RSyntaxTextArea textArea,
int startOffs) |
FoldManager(RSyntaxTextArea textArea)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ExtendedHyperlinkListener.linkClicked(RSyntaxTextArea textArea,
HyperlinkEvent e)
Called when a link in a
FocusableTip is clicked. |
Modifier and Type | Method and Description |
---|---|
void |
StaticCodeTemplate.invoke(RSyntaxTextArea textArea)
Invokes this code template.
|
void |
CodeTemplate.invoke(RSyntaxTextArea textArea)
Invokes this code template.
|
Copyright © 2003–2015. All rights reserved.