|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.editor.highlight.LayeredHighlighter.LayerPainter com.jidesoft.editor.highlight.DefaultHighlighter.DefaultHighlightPainter
public static class DefaultHighlighter.DefaultHighlightPainter
Simple highlight painter that fills a highlighted area with a solid color.
Constructor Summary | |
---|---|
DefaultHighlighter.DefaultHighlightPainter(Color c)
Constructs a new highlight painter. |
Method Summary | |
---|---|
Color |
getColor()
Returns the color of the highlight. |
boolean |
isOccupyNextLine()
Check if the painter will occupy next line. |
void |
paint(Graphics g,
int offs0,
int offs1,
Shape bounds,
CodeEditor c)
Paints a highlight. |
Shape |
paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
CodeEditor c)
Paints a portion of a highlight. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHighlighter.DefaultHighlightPainter(Color c)
c
is null, the CodeEditor will be queried for its
selection color.
c
- the color for the highlightMethod Detail |
---|
public Color getColor()
public boolean isOccupyNextLine()
LayeredHighlighter.LayerPainter
isOccupyNextLine
in class LayeredHighlighter.LayerPainter
public void paint(Graphics g, int offs0, int offs1, Shape bounds, CodeEditor c)
g
- the graphics contextoffs0
- the starting model offset >= 0offs1
- the ending model offset >= offs1bounds
- the bounding box for the highlightc
- the editorpublic Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, CodeEditor c)
paintLayer
in class LayeredHighlighter.LayerPainter
g
- the graphics contextoffs0
- the starting model offset >= 0offs1
- the ending model offset >= offs1bounds
- the bounding box of the view, which is not necessarily the region to paint.c
- the editor
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |