Simple highlight painter that fills a highlighted area with a solid color.
Simple highlight painter that fills a highlighted area with a solid color.
(->default-highlight-painter c)
Constructor.
Constructs a new highlight painter. If c is null, the JTextComponent will be queried for its selection color.
c - the color for the highlight - java.awt.Color
Constructor. Constructs a new highlight painter. If c is null, the JTextComponent will be queried for its selection color. c - the color for the highlight - `java.awt.Color`
(get-color this)
Returns the color of the highlight.
returns: the color - java.awt.Color
Returns the color of the highlight. returns: the color - `java.awt.Color`
(paint this g offs-0 offs-1 bounds c)
Paints a highlight.
g - the graphics context - java.awt.Graphics
offs-0 - the starting model offset >= 0 - int
offs-1 - the ending model offset >= offs1 - int
bounds - the bounding box for the highlight - java.awt.Shape
c - the editor - javax.swing.text.JTextComponent
Paints a highlight. g - the graphics context - `java.awt.Graphics` offs-0 - the starting model offset >= 0 - `int` offs-1 - the ending model offset >= offs1 - `int` bounds - the bounding box for the highlight - `java.awt.Shape` c - the editor - `javax.swing.text.JTextComponent`
(paint-layer this g offs-0 offs-1 bounds c view)
Paints a portion of a highlight.
g - the graphics context - java.awt.Graphics
offs-0 - the starting model offset >= 0 - int
offs-1 - the ending model offset >= offs1 - int
bounds - the bounding box of the view, which is not necessarily the region to paint. - java.awt.Shape
c - the editor - javax.swing.text.JTextComponent
view - View painting for - javax.swing.text.View
returns: region drawing occurred in - java.awt.Shape
Paints a portion of a highlight. g - the graphics context - `java.awt.Graphics` offs-0 - the starting model offset >= 0 - `int` offs-1 - the ending model offset >= offs1 - `int` bounds - the bounding box of the view, which is not necessarily the region to paint. - `java.awt.Shape` c - the editor - `javax.swing.text.JTextComponent` view - View painting for - `javax.swing.text.View` returns: region drawing occurred in - `java.awt.Shape`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close