com.jidesoft.editor.highlight
Class LayeredHighlighter.LayerPainter
java.lang.Object
com.jidesoft.editor.highlight.LayeredHighlighter.LayerPainter
- All Implemented Interfaces:
- Highlighter.HighlightPainter
- Direct Known Subclasses:
- DefaultHighlighter.DefaultHighlightPainter
- Enclosing class:
- LayeredHighlighter
public abstract static class LayeredHighlighter.LayerPainter
- extends Object
- implements Highlighter.HighlightPainter
Layered highlight renderer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayeredHighlighter.LayerPainter
public LayeredHighlighter.LayerPainter()
isOccupyNextLine
public abstract boolean isOccupyNextLine()
- Check if the painter will occupy next line. Returns true means that painting next line should paint this
highlight to avoid this highlight being covered by next line painting.
- Returns:
- true if the painter will paint the pixels in next line. Otherwise false.
- Since:
- 3.3.1
paintLayer
public abstract Shape paintLayer(Graphics g,
int p0,
int p1,
Shape bounds,
CodeEditor editor)
- Renders the highlight.
- Parameters:
g
- the graphics contextp0
- the starting offset in the model >= 0p1
- the ending offset in the model >= p0bounds
- the bounding box for the highlighteditor
- the editor
- Returns:
- the painted shape.