Liking cljdoc? Tell your friends :D

javax.swing.text.Highlighter

An interface for an object that allows one to mark up the background with colored areas.

An interface for an object that allows one to mark up the background
with colored areas.
raw docstring

add-highlightclj

(add-highlight this p-0 p-1 p)

Adds a highlight to the view. Returns a tag that can be used to refer to the highlight.

p-0 - the beginning of the range >= 0 - int p-1 - the end of the range >= p0 - int p - the painter to use for the actual highlighting - javax.swing.text.Highlighter$HighlightPainter

returns: an object that refers to the highlight - java.lang.Object

throws: javax.swing.text.BadLocationException - for an invalid range specification

Adds a highlight to the view.  Returns a tag that can be used
 to refer to the highlight.

p-0 - the beginning of the range >= 0 - `int`
p-1 - the end of the range >= p0 - `int`
p - the painter to use for the actual highlighting - `javax.swing.text.Highlighter$HighlightPainter`

returns: an object that refers to the highlight - `java.lang.Object`

throws: javax.swing.text.BadLocationException - for an invalid range specification
raw docstring

change-highlightclj

(change-highlight this tag p-0 p-1)

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.

tag - which highlight to change - java.lang.Object p-0 - the beginning of the range >= 0 - int p-1 - the end of the range >= p0 - int

throws: javax.swing.text.BadLocationException - for an invalid range specification

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.

tag - which highlight to change - `java.lang.Object`
p-0 - the beginning of the range >= 0 - `int`
p-1 - the end of the range >= p0 - `int`

throws: javax.swing.text.BadLocationException - for an invalid range specification
raw docstring

deinstallclj

(deinstall this c)

Called when the UI is being removed from the interface of a JTextComponent. This is used to unregister any listeners that were attached.

c - the JTextComponent editor - javax.swing.text.JTextComponent

Called when the UI is being removed from the
 interface of a JTextComponent.  This is used to
 unregister any listeners that were attached.

c - the JTextComponent editor - `javax.swing.text.JTextComponent`
raw docstring

get-highlightsclj

(get-highlights this)

Fetches the current list of highlights.

returns: the highlight list - javax.swing.text.Highlighter$Highlight[]

Fetches the current list of highlights.

returns: the highlight list - `javax.swing.text.Highlighter$Highlight[]`
raw docstring

installclj

(install this 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.

c - the JTextComponent editor - javax.swing.text.JTextComponent

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.

c - the JTextComponent editor - `javax.swing.text.JTextComponent`
raw docstring

paintclj

(paint this g)

Renders the highlights.

g - the graphics context. - java.awt.Graphics

Renders the highlights.

g - the graphics context. - `java.awt.Graphics`
raw docstring

remove-all-highlightsclj

(remove-all-highlights this)

Removes all highlights this highlighter is responsible for.

Removes all highlights this highlighter is responsible for.
raw docstring

remove-highlightclj

(remove-highlight this tag)

Removes a highlight from the view.

tag - which highlight to remove - java.lang.Object

Removes a highlight from the view.

tag - which highlight to remove - `java.lang.Object`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close