Uses of Class
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
Packages that use RSyntaxTextArea
Package
Description
A syntax-highlighting text editor.
Code folding functionality.
Interfaces for parsing text in RSyntaxTextAreas and identifying errors,
warnings, etc.
Facilitates adding code templates to an
RSyntaxTextArea
.-
Uses of RSyntaxTextArea in org.fife.ui.rsyntaxtextarea
Subclasses of RSyntaxTextArea in org.fife.ui.rsyntaxtextareaModifier and TypeClassDescriptionclass
An extension ofRSyntaxTextArea
that adds information about the file being edited, such as: Its name and location.Fields in org.fife.ui.rsyntaxtextarea declared as RSyntaxTextAreaModifier and TypeFieldDescriptionprivate RSyntaxTextArea
SyntaxView.host
Cached for each paint() call so each drawLine() call has access to it.private RSyntaxTextArea
WrappedSyntaxView.host
Cached for each paint() call so each drawView() call has access to it.private RSyntaxTextArea
ErrorStrip.textArea
The text area.private RSyntaxTextArea
MarkOccurrencesSupport.textArea
private RSyntaxTextArea
MatchedBracketPopup.textArea
private RSyntaxTextArea
ParserManager.textArea
private RSyntaxTextArea
SelectRegionLinkGeneratorResult.textArea
Methods in org.fife.ui.rsyntaxtextarea with parameters of type RSyntaxTextAreaModifier and TypeMethodDescriptionprivate boolean
AbstractJFlexCTokenMaker.CStyleInsertBreakAction.appearsNested
(RSyntaxTextArea textArea, int line, int offs) Returns whether the MLC token containingoffs
appears to have a "nested" comment (i.e., contains "/*
" somewhere inside it).private StringBuilder
TokenImpl.appendHtmlLexeme
(RSyntaxTextArea textArea, StringBuilder sb, boolean tabsToSpaces) Appends an HTML version of the lexeme of this token (i.e.Token.appendHTMLRepresentation
(StringBuilder sb, RSyntaxTextArea textArea, boolean fontFamily) Appends HTML code for painting this token, using the given text area's color scheme.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.TokenImpl.appendHTMLRepresentation
(StringBuilder sb, RSyntaxTextArea textArea, boolean fontFamily) TokenImpl.appendHTMLRepresentation
(StringBuilder sb, RSyntaxTextArea textArea, boolean fontFamily, boolean tabsToSpaces) void
Theme.apply
(RSyntaxTextArea textArea) Applies this theme to a text area.protected Fold
RSyntaxTextAreaEditorKit.FoldRelatedAction.getClosestFold
(RSyntaxTextArea textArea) static Color
RSyntaxUtilities.getFoldedLineBottomColor
(RSyntaxTextArea textArea) Returns the color to use for the line underneath a folded region line.Token.getHTMLRepresentation
(RSyntaxTextArea textArea) Returns aString
containing HTML code for painting this token, using the given text area's color scheme.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 locationx
if the token list starts at pixel locationx0
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 intoendBeforeX-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 a tag, this method returns the token representing the tag name; otherwise,null
is returned.CodeTemplateManager.getTemplate
(RSyntaxTextArea textArea) Returns the template that should be inserted at the current caret position, assuming the trigger character was pressed.static String
HtmlUtil.getTextAsHtml
(RSyntaxTextArea textArea, int start, int end) Returns text from a text area as HTML.static Token
RSyntaxUtilities.getTokenAtOffset
(RSyntaxTextArea textArea, int offset) Returns the token at the specified offset.static Token
RSyntaxUtilities.getTokenAtOffsetOrLastTokenIfEndOfLine
(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).DefaultOccurrenceMarker.getTokenToMark
(RSyntaxTextArea textArea) HtmlOccurrenceMarker.getTokenToMark
(RSyntaxTextArea textArea) OccurrenceMarker.getTokenToMark
(RSyntaxTextArea textArea) Returns the token to mark occurrences, of, provided it matches the criteria put forth byOccurrenceMarker.isValidType(RSyntaxTextArea, Token)
.XmlOccurrenceMarker.getTokenToMark
(RSyntaxTextArea textArea) 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.FileTypeUtil.guessContentType
(RSyntaxTextArea textArea) Sets the text area's highlighting style based on its content (e.g.protected void
RSyntaxTextAreaEditorKit.InsertBreakAction.handleInsertBreak
(RSyntaxTextArea textArea, boolean noSelection) Actually inserts the newline into the document, and auto-indents if appropriate.private void
RSyntaxTextAreaEditorKit.InsertBreakAction.handleInsertBreakWithoutSelection
(RSyntaxTextArea textArea) private void
AbstractJFlexCTokenMaker.CStyleInsertBreakAction.insertBreakInMLC
(ActionEvent e, RSyntaxTextArea textArea, int line) private void
RSyntaxTextAreaEditorKit.InsertQuoteAction.insertEmptyQuoteLiteral
(RSyntaxTextArea textArea) void
MarkOccurrencesSupport.install
(RSyntaxTextArea textArea) Installs this listener on a text area.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
DefaultOccurrenceMarker.isValidType
(RSyntaxTextArea textArea, Token t) boolean
HtmlOccurrenceMarker.isValidType
(RSyntaxTextArea textArea, Token t) boolean
OccurrenceMarker.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) Token.listOffsetToView
(RSyntaxTextArea textArea, TabExpander e, int pos, int x0, Rectangle rect) Returns the bounding box for the specified document location.TokenImpl.listOffsetToView
(RSyntaxTextArea textArea, TabExpander e, int pos, int x0, Rectangle rect) final float
DefaultTokenPainter.paint
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e) float
DefaultTokenPainter.paint
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart) float
DefaultTokenPainter.paint
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart, boolean paintBG) float
TokenPainter.paint
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e) Paints this token.float
TokenPainter.paint
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart) Paints this token.float
TokenPainter.paint
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart, boolean paintBG) Paints this token.protected void
DefaultTokenPainter.paintBackground
(float x, float y, float width, float height, Graphics2D g, int fontAscent, RSyntaxTextArea host, Color color) Paints the background of a token.protected float
DefaultTokenPainter.paintImpl
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart, boolean selected, boolean useSTC) Does the dirty-work of actually painting the token.protected float
VisibleWhitespaceTokenPainter.paintImpl
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart, boolean selected, boolean useSTC) protected void
RSyntaxTextAreaUI.paintMatchedBracketImpl
(Graphics g, RSyntaxTextArea rsta, Rectangle r) float
DefaultTokenPainter.paintSelected
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, boolean useSTC) float
DefaultTokenPainter.paintSelected
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart, boolean useSTC) float
TokenPainter.paintSelected
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, boolean useSTC) Paints this token as it should appear in a selected region of text (assuming painting with a selection-foreground color is enabled in the parentRSyntaxTextArea
).float
TokenPainter.paintSelected
(Token token, Graphics2D g, float x, float y, RSyntaxTextArea host, TabExpander e, float clipStart, boolean useSTC) Paints this token as it should appear in a selected region of text (assuming painting with a selection-foreground color is enabled in the parentRSyntaxTextArea
).protected void
DefaultTokenPainter.paintTabLines
(Token token, int x, int y, int endX, Graphics2D g, TabExpander e, RSyntaxTextArea host) Paints dotted "tab" lines; that is, lines that show where your caret would go to on the line if you hit "tab".private void
RSyntaxTextAreaEditorKit.InsertBreakAction.possiblyCloseCurlyBrace
(RSyntaxTextArea textArea, String leadingWS) static String
TokenUtils.tokenToHtml
(RSyntaxTextArea textArea, Token token) Generates HTML that renders a token with the style used in an RSTA instance.Constructors in org.fife.ui.rsyntaxtextarea with parameters of type RSyntaxTextAreaModifierConstructorDescriptionActiveLineRangeEvent
(RSyntaxTextArea source, int min, int max) Constructor.ErrorStrip
(RSyntaxTextArea textArea) Constructor.FoldingAwareIconRowHeader
(RSyntaxTextArea textArea) Constructor.(package private)
MatchedBracketPopup
(Window parent, RSyntaxTextArea textArea, int offsToRender) (package private)
ParserManager
(int delay, RSyntaxTextArea textArea) Constructor.(package private)
ParserManager
(RSyntaxTextArea textArea) Constructor.SelectRegionLinkGeneratorResult
(RSyntaxTextArea textArea, int sourceOffset, int selStart, int selEnd) Theme
(RSyntaxTextArea textArea) Creates a theme from an RSyntaxTextArea. -
Uses of RSyntaxTextArea in org.fife.ui.rsyntaxtextarea.folding
Fields in org.fife.ui.rsyntaxtextarea.folding declared as RSyntaxTextAreaModifier and TypeFieldDescriptionprivate RSyntaxTextArea
DefaultFoldManager.textArea
private RSyntaxTextArea
Fold.textArea
Methods in org.fife.ui.rsyntaxtextarea.folding with parameters of type RSyntaxTextAreaModifier and TypeMethodDescriptionCurlyFoldParser.getFolds
(RSyntaxTextArea textArea) FoldParser.getFolds
(RSyntaxTextArea textArea) Returns a list of all folds in the text area.HtmlFoldParser.getFolds
(RSyntaxTextArea textArea) JsonFoldParser.getFolds
(RSyntaxTextArea textArea) LatexFoldParser.getFolds
(RSyntaxTextArea textArea) LinesWithContentFoldParser.getFolds
(RSyntaxTextArea textArea) NsisFoldParser.getFolds
(RSyntaxTextArea textArea) PythonFoldParser.getFolds
(RSyntaxTextArea textArea) XmlFoldParser.getFolds
(RSyntaxTextArea textArea) YamlFoldParser.getFolds
(RSyntaxTextArea textArea) private int
HtmlFoldParser.getTagCloseInfo
(Token tagNameToken, RSyntaxTextArea textArea, int line, HtmlFoldParser.TagCloseInfo info) Grabs the token representing the closing of a tag (i.e.Constructors in org.fife.ui.rsyntaxtextarea.folding with parameters of type RSyntaxTextAreaModifierConstructorDescriptionDefaultFoldManager
(RSyntaxTextArea textArea) Constructor.Fold
(int type, RSyntaxTextArea textArea, int startOffs) -
Uses of RSyntaxTextArea in org.fife.ui.rsyntaxtextarea.parser
Methods in org.fife.ui.rsyntaxtextarea.parser with parameters of type RSyntaxTextAreaModifier and TypeMethodDescriptionvoid
ExtendedHyperlinkListener.linkClicked
(RSyntaxTextArea textArea, HyperlinkEvent e) Called when a link in aFocusableTip
is clicked. -
Uses of RSyntaxTextArea in org.fife.ui.rsyntaxtextarea.templates
Methods in org.fife.ui.rsyntaxtextarea.templates with parameters of type RSyntaxTextAreaModifier and TypeMethodDescriptionvoid
CodeTemplate.invoke
(RSyntaxTextArea textArea) Invokes this code template.void
StaticCodeTemplate.invoke
(RSyntaxTextArea textArea) Invokes this code template.