Methods Summary |
---|
public java.lang.Object | addHighlight(int p0, int p1, javax.swing.text.Highlighter$HighlightPainter p)Adds a highlight to the view. Returns a tag that can be used
to refer to the highlight.
|
public void | changeHighlight(java.lang.Object tag, int p0, int p1)Changes the given highlight to span a different portion of
the document. This may be more efficient than a remove/add
when a selection is expanding/shrinking (such as a sweep
with a mouse) by damaging only what changed.
|
public void | deinstall(javax.swing.text.JTextComponent c)Called when the UI is being removed from the
interface of a JTextComponent. This is used to
unregister any listeners that were attached.
|
public javax.swing.text.Highlighter$Highlight[] | getHighlights()Fetches the current list of highlights.
|
public void | install(javax.swing.text.JTextComponent c)Called when the UI is being installed into the
interface of a JTextComponent. This can be used
to gain access to the model that is being navigated
by the implementation of this interface.
|
public void | paint(java.awt.Graphics g)Renders the highlights.
|
public void | removeAllHighlights()Removes all highlights this highlighter is responsible for.
|
public void | removeHighlight(java.lang.Object tag)Removes a highlight from the view.
|