Package mars.venus.editor.jeditsyntax
Interface TextAreaPainter.Highlight
- Enclosing class:
- TextAreaPainter
public static interface TextAreaPainter.Highlight
Highlight interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetToolTipText
(MouseEvent event) Returns the tool tip to display at the specified location.void
init
(JEditTextArea textArea, TextAreaPainter.Highlight next) Called after the highlight painter has been added.void
paintHighlight
(Graphics gfx, int line, float y) This should paint the highlight and delegate to the next highlight painter.
-
Method Details
-
init
Called after the highlight painter has been added.- Parameters:
textArea
- The text areanext
- The painter this one should delegate to
-
paintHighlight
This should paint the highlight and delegate to the next highlight painter.- Parameters:
gfx
- The graphics contextline
- The line numbery
- The y co-ordinate of the line
-
getToolTipText
Returns the tool tip to display at the specified location. If this highlighter doesn't know what to display, it should delegate to the next highlight painter.- Parameters:
event
- The mouse event
-