Home » openjdk-7 » javax » swing » text » [javadoc | source]
javax.swing.text
public static class: DefaultHighlighter.DefaultHighlightPainter [javadoc | source]
java.lang.Object
   javax.swing.text.LayeredHighlighter.LayerPainter
      javax.swing.text.DefaultHighlighter$DefaultHighlightPainter

All Implemented Interfaces:
    HighlightPainter

Direct Known Subclasses:
    FocusHighlightPainter

Simple highlight painter that fills a highlighted area with a solid color.
Constructor:
 public DefaultHighlightPainter(Color c) 
    Constructs a new highlight painter. If c is null, the JTextComponent will be queried for its selection color.
    Parameters:
    c - the color for the highlight
Method from javax.swing.text.DefaultHighlighter$DefaultHighlightPainter Summary:
getColor,   paint,   paintLayer
Methods from javax.swing.text.LayeredHighlighter$LayerPainter:
paintLayer
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.DefaultHighlighter$DefaultHighlightPainter Detail:
 public Color getColor() 
    Returns the color of the highlight.
 public  void paint(Graphics g,
    int offs0,
    int offs1,
    Shape bounds,
    JTextComponent c) 
    Paints a highlight.
 public Shape paintLayer(Graphics g,
    int offs0,
    int offs1,
    Shape bounds,
    JTextComponent c,
    View view) 
    Paints a portion of a highlight.