Public Member Functions | |
| TextAreaPainter (JEditTextArea textArea, TextAreaDefaults defaults) | |
| final SyntaxStyle[] | getStyles () |
| final void | setStyles (SyntaxStyle[] styles) |
| final Color | getCaretColor () |
| final void | setCaretColor (Color caretColor) |
| final Color | getSelectionColor () |
| final void | setSelectionColor (Color selectionColor) |
| final Color | getLineHighlightColor () |
| final void | setLineHighlightColor (Color lineHighlightColor) |
| final boolean | isLineHighlightEnabled () |
| final void | setLineHighlightEnabled (boolean lineHighlight) |
| final Color | getBracketHighlightColor () |
| final void | setBracketHighlightColor (Color bracketHighlightColor) |
| final boolean | isBracketHighlightEnabled () |
| final void | setBracketHighlightEnabled (boolean bracketHighlight) |
| final boolean | isBlockCaretEnabled () |
| final void | setBlockCaretEnabled (boolean blockCaret) |
| final Color | getEOLMarkerColor () |
| final void | setEOLMarkerColor (Color eolMarkerColor) |
| final boolean | getEOLMarkersPainted () |
| final void | setEOLMarkersPainted (boolean eolMarkers) |
| boolean | getInvalidLinesPainted () |
| void | setInvalidLinesPainted (boolean paintInvalid) |
| void | addCustomHighlight (Highlight highlight) |
| String | getToolTipText (MouseEvent evt) |
| FontMetrics | getFontMetrics () |
| void | setFont (Font font) |
| void | paint (Graphics gfx) |
| final void | invalidateLine (int line) |
| final void | invalidateLineRange (int firstLine, int lastLine) |
| final void | invalidateSelectedLines () |
| float | nextTabStop (float x, int tabOffset) |
| Dimension | getPreferredSize () |
| Dimension | getMinimumSize () |
Protected Member Functions | |
| void | paintLine (Graphics gfx, TokenMarker tokenMarker, int line, int x) |
| void | paintPlainLine (Graphics gfx, int line, Font defaultFont, Color defaultColor, int x, int y) |
| void | paintSyntaxLine (Graphics gfx, TokenMarker tokenMarker, int line, Font defaultFont, Color defaultColor, int x, int y) |
| void | paintHighlight (Graphics gfx, int line, int y) |
| void | paintLineHighlight (Graphics gfx, int line, int y) |
| void | paintBracketHighlight (Graphics gfx, int line, int y) |
| void | paintCaret (Graphics gfx, int line, int y) |
Protected Attributes | |
| JEditTextArea | textArea |
| SyntaxStyle[] | styles |
| Color | caretColor |
| Color | selectionColor |
| Color | lineHighlightColor |
| Color | bracketHighlightColor |
| Color | eolMarkerColor |
| boolean | blockCaret |
| boolean | lineHighlight |
| boolean | bracketHighlight |
| boolean | paintInvalid |
| boolean | eolMarkers |
| int | cols |
| int | rows |
| int | tabSize |
| FontMetrics | fm |
| Highlight | highlights |
Package Attributes | |
| int | currentLineIndex |
| Token | currentLineTokens |
| Segment | currentLine |
Static Private Attributes | |
| static final long | serialVersionUID = 8455073142089642026L |
Classes | |
| interface | Highlight |
|
||||||||||||
|
Creates a new repaint manager. This should be not be called directly. |
|
|
Adds a custom highlight painter.
|
|
|
Returns the bracket highlight color. |
|
|
Returns the caret color. |
|
|
Returns the EOL marker color. |
|
|
Returns true if EOL markers are drawn, false otherwise. |
|
|
Returns the font metrics used by this component. |
|
|
Returns true if invalid lines are painted as red tildes (~), false otherwise. |
|
|
Returns the line highlight color. |
|
|
Returns the painter's minimum size. |
|
|
Returns the painter's preferred size. |
|
|
Returns the selection color. |
|
|
Returns the syntax styles used to paint colorized text. Entry n will be used to paint tokens with id = n.
|
|
|
Returns the tool tip to display at the specified location.
|
|
|
Marks a line as needing a repaint.
|
|
||||||||||||
|
Marks a range of lines as needing a repaint.
|
|
|
Repaints the lines containing the selection. |
|
|
Returns true if the caret should be drawn as a block, false otherwise. |
|
|
Returns true if bracket highlighting is enabled, false otherwise. When bracket highlighting is enabled, the bracket matching the one before the caret (if any) is highlighted. |
|
|
Returns true if line highlight is enabled, false otherwise. |
|
||||||||||||
|
Implementation of TabExpander interface. Returns next tab stop after a specified point.
|
|
|
Repaints the text.
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
Sets if the caret should be drawn as a block, false otherwise.
|
|
|
Sets the bracket highlight color.
|
|
|
Enables or disables bracket highlighting. When bracket highlighting is enabled, the bracket matching the one before the caret (if any) is highlighted.
|
|
|
Sets the caret color.
|
|
|
Sets the EOL marker color.
|
|
|
Sets if EOL markers are to be drawn.
|
|
|
Sets the font for this component. This is overridden to update the cached font metrics and to recalculate which lines are visible.
|
|
|
Sets if invalid lines are to be painted as red tildes.
|
|
|
Sets the line highlight color.
|
|
|
Enables or disables current line highlighting.
|
|
|
Sets the selection color.
|
|
|
Sets the syntax styles used to paint colorized text. Entry n will be used to paint tokens with id = n.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5