javax.swing.text.html
Class HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter
java.lang.Object
javax.swing.text.LayeredHighlighter.LayerPainter
javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
javax.swing.text.html.HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter
- All Implemented Interfaces:
- Highlighter.HighlightPainter
- Enclosing class:
- HTMLEditorKit.NavigateLinkAction
- class HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter
- extends DefaultHighlighter.DefaultHighlightPainter
A highlight painter that draws a one-pixel border around
the highlighted area.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter
HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter(Color color)
paintLayer
public Shape paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
- Paints a portion of a highlight.
- Overrides:
paintLayer
in class DefaultHighlighter.DefaultHighlightPainter
- Parameters:
g
- the graphics contextoffs0
- the starting model offset >= 0offs1
- the ending model offset >= offs1bounds
- the bounding box of the view, which is not
necessarily the region to paint.c
- the editorview
- View painting for
- Returns:
- region in which drawing occurred