JIDE 3.5.15

com.jidesoft.editor.highlight
Class LayeredHighlighter.LayerPainter

java.lang.Object
  extended by 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.


Constructor Summary
LayeredHighlighter.LayerPainter()
           
 
Method Summary
abstract  boolean isOccupyNextLine()
          Check if the painter will occupy next line.
abstract  Shape paintLayer(Graphics g, int p0, int p1, Shape bounds, CodeEditor editor)
          Renders the highlight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.editor.highlight.Highlighter.HighlightPainter
paint
 

Constructor Detail

LayeredHighlighter.LayerPainter

public LayeredHighlighter.LayerPainter()
Method Detail

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 context
p0 - the starting offset in the model >= 0
p1 - the ending offset in the model >= p0
bounds - the bounding box for the highlight
editor - the editor
Returns:
the painted shape.

JIDE 3.5.15