| Package | Description |
|---|---|
| org.fife.ui.rsyntaxtextarea |
A syntax-highlighting text editor.
|
| 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 |
|---|---|
String |
Token.getHTMLRepresentation(RSyntaxTextArea textArea)
Returns a
String containing HTML code for painting this
token, using the given text area's color scheme. |
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.
|
abstract 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 |
DefaultToken.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 |
VisibleWhitespaceToken.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 |
static int |
RSyntaxUtilities.getMatchingBracketPosition(RSyntaxTextArea textArea) |
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. |
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.
|
CodeTemplate |
CodeTemplateManager.getTemplate(RSyntaxTextArea textArea)
Returns the template that should be inserted at the current caret
position, assuming the trigger character was pressed.
|
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).
|
float |
Token.getWidth(RSyntaxTextArea textArea,
TabExpander e,
float x0)
Returns the width of this token given the specified parameters.
|
abstract float |
Token.getWidthUpTo(int numChars,
RSyntaxTextArea textArea,
TabExpander e,
float x0)
Returns the width of a specified number of characters in this token.
|
float |
DefaultToken.getWidthUpTo(int numChars,
RSyntaxTextArea textArea,
TabExpander e,
float x0)
Returns the width of a specified number of characters in this token.
|
float |
VisibleWhitespaceToken.getWidthUpTo(int numChars,
RSyntaxTextArea textArea,
TabExpander e,
float x0)
Returns the width of a specified number of characters in this token.
|
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.
|
abstract Rectangle |
Token.listOffsetToView(RSyntaxTextArea textArea,
TabExpander e,
int pos,
int x0,
Rectangle rect)
Returns the bounding box for the specified document location.
|
Rectangle |
DefaultToken.listOffsetToView(RSyntaxTextArea textArea,
TabExpander e,
int pos,
int x0,
Rectangle rect)
Returns the bounding box for the specified document location.
|
Rectangle |
VisibleWhitespaceToken.listOffsetToView(RSyntaxTextArea textArea,
TabExpander e,
int pos,
int x0,
Rectangle rect)
Returns the bounding box for the specified document location.
|
static float |
RSyntaxUtilities.makeTokenListStartAt(Token tokenList,
int pos,
TabExpander e,
RSyntaxTextArea textArea,
float x0)
Modifies the passed-in token list to start at the specified offset.
|
float |
Token.paint(Graphics2D g,
float x,
float y,
RSyntaxTextArea host,
TabExpander e)
Paints this token.
|
abstract float |
Token.paint(Graphics2D g,
float x,
float y,
RSyntaxTextArea host,
TabExpander e,
float clipStart)
Paints this token.
|
float |
DefaultToken.paint(Graphics2D g,
float x,
float y,
RSyntaxTextArea host,
TabExpander e,
float clipStart)
Paints this token.
|
float |
VisibleWhitespaceToken.paint(Graphics2D g,
float x,
float y,
RSyntaxTextArea host,
TabExpander e,
float clipStart)
Paints this token, using special symbols for whitespace characters.
|
protected void |
Token.paintBackground(float x,
float y,
float width,
float height,
Graphics2D g,
int fontAscent,
RSyntaxTextArea host,
Color color)
Paints the background of a token.
|
void |
TokenMaker.setWhitespaceVisible(boolean visible,
RSyntaxTextArea textArea)
Sets whether tokens are generated that "show" whitespace.
|
void |
RSyntaxDocument.setWhitespaceVisible(boolean visible,
RSyntaxTextArea textArea)
Sets whether whitespace is visible.
|
| Constructor and Description |
|---|
XMLParser(RSyntaxTextArea textArea) |
| 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 © 2009-2013 jtstand.com. All Rights Reserved.