JIDE 3.5.15

com.jidesoft.editor.margin
Class AbstractLineMarginPainter

java.lang.Object
  extended by com.jidesoft.margin.AbstractRowMarginPainter
      extended by com.jidesoft.editor.margin.AbstractLineMarginPainter
All Implemented Interfaces:
LineMarginPainter, RowMarginPainter

public abstract class AbstractLineMarginPainter
extends AbstractRowMarginPainter
implements LineMarginPainter

An abstract implementation of LineMarginPainter interface. It implements the AbstractRowMarginPainter.getLayer() method so that you can use AbstractRowMarginPainter.setLayer(int) to set the layer index. You still need to implement the other method paintLineMargin.


Field Summary
 
Fields inherited from interface com.jidesoft.margin.RowMarginPainter
LAYER_DEFAULT_INDEX
 
Constructor Summary
protected AbstractLineMarginPainter()
           
protected AbstractLineMarginPainter(int layer)
           
 
Method Summary
 void paintLineMargin(Graphics g, CodeEditor editor, Rectangle rect, int line)
          Paints the margin.
 
Methods inherited from class com.jidesoft.margin.AbstractRowMarginPainter
getLayer, setLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.margin.RowMarginPainter
getLayer, paintRowMargin
 

Constructor Detail

AbstractLineMarginPainter

protected AbstractLineMarginPainter()

AbstractLineMarginPainter

protected AbstractLineMarginPainter(int layer)
Method Detail

paintLineMargin

public void paintLineMargin(Graphics g,
                            CodeEditor editor,
                            Rectangle rect,
                            int line)
Description copied from interface: LineMarginPainter
Paints the margin.

Specified by:
paintLineMargin in interface LineMarginPainter
Parameters:
g - the graphics
editor - The Code Editor
rect - the rect
line - the line index.

JIDE 3.5.15