All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.JHighlighter

java.lang.Object
   |
   +----java.awt.Component
           |
           +----com.sun.java.swing.text.JHighlighter

public class JHighlighter
extends Component
implements Highlighter
Implements the Highlighter interface as a lightweight component that can be used as a backdrop to component(s) implementing View.

See Also:
Highlighter

Method Index

 o add(Range, Color)
Add a highlight to the view.
 o change(int, Range)
 o deinstall(JTextComponent)
 o install(JTextComponent)
 o paint(Graphics)
 o remove(int)
 o removeAll()

Methods

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Component
 o install
 public void install(JTextComponent c)
See Also:
install
 o deinstall
 public void deinstall(JTextComponent c)
See Also:
deinstall
 o add
 public int add(Range rng,
                Color c)
Add a highlight to the view. Returns a tag that can be used to refer to the highlight.

Parameters:
rng - portion of the subject to highlight.
c - color to make the highlight
 o remove
 public void remove(int tag)
 o removeAll
 public void removeAll()
 o change
 public void change(int tag,
                    Range rng)

All Packages  Class Hierarchy  This Package  Previous  Next  Index