javax.swing.text.html
Class HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter

java.lang.Object
  extended byjavax.swing.text.LayeredHighlighter.LayerPainter
      extended byjavax.swing.text.DefaultHighlighter.DefaultHighlightPainter
          extended byjavax.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.


Field Summary
 
Fields inherited from class javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
 
Constructor Summary
(package private) HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter(Color color)
           
 
Method Summary
 Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
          Paints a portion of a highlight.
 
Methods inherited from class javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
getColor, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter

HTMLEditorKit.NavigateLinkAction.FocusHighlightPainter(Color color)
Method Detail

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 context
offs0 - the starting model offset >= 0
offs1 - the ending model offset >= offs1
bounds - the bounding box of the view, which is not necessarily the region to paint.
c - the editor
view - View painting for
Returns:
region in which drawing occurred