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
-
add(Range, Color)
- Add a highlight to the view.
-
change(int, Range)
-
-
deinstall(JTextComponent)
-
-
install(JTextComponent)
-
-
paint(Graphics)
-
-
remove(int)
-
-
removeAll()
-
paint
public void paint(Graphics g)
- Overrides:
- paint in class Component
install
public void install(JTextComponent c)
- See Also:
- install
deinstall
public void deinstall(JTextComponent c)
- See Also:
- deinstall
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
remove
public void remove(int tag)
removeAll
public void removeAll()
change
public void change(int tag,
Range rng)
All Packages Class Hierarchy This Package Previous Next Index