Serialized Form


Package syntaxhighlight

Class syntaxhighlight.JTextComponentRowHeader extends javax.swing.JPanel implements Serializable

serialVersionUID: 1L

Serialized Fields

textAntiAliasing

java.lang.Object textAntiAliasing
The anti-aliasing setting of the line number text. See RenderingHints.


borderColor

java.awt.Color borderColor
The color of the border that joint the gutter and the script text area.


highlightedColor

java.awt.Color highlightedColor
The background of the row when it is highlighted.


paddingLeft

int paddingLeft
The minimum padding from 'the leftmost of the line number text' to 'the left margin'.


paddingRight

int paddingRight
The minimum padding from 'the rightmost of the line number text' to 'the right margin' (not to the gutter border).


borderWidth

int borderWidth
The width of the border that joint the gutter and the script text area.


scrollPane

javax.swing.JScrollPane scrollPane
The JScrollPane that it be added into.


textComponent

javax.swing.text.JTextComponent textComponent
The text component to listen the change events on.


document

javax.swing.text.Document document
The document of the text component.


documentListener

javax.swing.event.DocumentListener documentListener
The document listener for JTextComponentRowHeader.document.


panelWidth

int panelWidth
The cached panel width.


largestRowNumber

int largestRowNumber
The cached largest row number (for determine panel width JTextComponentRowHeader.panelWidth).


textComponentHeight

int textComponentHeight
The cached text component height, for determine panel height.


lineNumberOffset

int lineNumberOffset
The line number offset. E.g. set offset to 9 will make the first line number to appear at line 1 + 9 = 10


highlightedLineList

java.util.List<E> highlightedLineList
The list of line numbers that indicate which lines are needed to be highlighted.


listenToDocumentUpdate

boolean listenToDocumentUpdate
Indicator indicate whether it is listening to the document change events or not.

Class syntaxhighlight.SyntaxHighlighter extends javax.swing.JScrollPane implements Serializable

serialVersionUID: 1L

Serialized Fields

highlighter

SyntaxHighlighterPane highlighter
The script text area.


highlighterRowHeader

JTextComponentRowHeader highlighterRowHeader
The gutter panel (line number).


theme

Theme theme
The theme.


parser

Parser parser
The parser.


content

java.lang.String content
The content of the syntax highlighter, null if there is no content so far.

Class syntaxhighlight.SyntaxHighlighterPane extends javax.swing.JTextPane implements Serializable

serialVersionUID: 1L

Serialized Fields

lineNumberOffset

int lineNumberOffset
The line number offset. E.g. set offset to 9 will make the first line number to appear at line 1 + 9 = 10


highlightedBackground

java.awt.Color highlightedBackground
The background color of the highlighted line. Default is black.


highlightWhenMouseOver

boolean highlightWhenMouseOver
Indicator that indicate to turn on the mouse-over highlight effect or not. See SyntaxHighlighterPane.setHighlightOnMouseOver(boolean).


highlightedLineList

java.util.List<E> highlightedLineList
The list of line numbers that indicate which lines are needed to be highlighted.


highlightPainter

javax.swing.text.Highlighter.HighlightPainter highlightPainter
The highlighter painter used to do the highlight line effect.


theme

Theme theme
The theme.


styleList

java.util.Map<K,V> styleList
The style list.


mouseOnLine

int mouseOnLine
Record the mouse cursor is currently pointing at which line of the document. -1 means not any line. It is used internally.