public class Highlighting
extends java.lang.Object
| Constructor and Description |
|---|
Highlighting() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
highlight(javax.swing.text.JTextComponent text,
Span span,
java.awt.Color c) |
static void |
highlightAll(javax.swing.text.JTextComponent text,
java.util.Map<Span,java.awt.Color> highlights) |
static void |
removeAllHighlights(javax.swing.text.JTextComponent text) |
static void |
removeAllHighlights(javax.swing.text.JTextComponent text,
java.awt.Color c)
removes all highlights of a specific color (assuming they were applied with this highlighting class)
|
static java.lang.Object |
underline(javax.swing.text.JTextComponent text,
Span span,
java.awt.Color c) |
public static void removeAllHighlights(javax.swing.text.JTextComponent text)
public static void removeAllHighlights(javax.swing.text.JTextComponent text,
java.awt.Color c)
text - c - public static void highlightAll(javax.swing.text.JTextComponent text,
java.util.Map<Span,java.awt.Color> highlights)
public static java.lang.Object highlight(javax.swing.text.JTextComponent text,
Span span,
java.awt.Color c)
public static java.lang.Object underline(javax.swing.text.JTextComponent text,
Span span,
java.awt.Color c)