JIDE 2.9.5

com.jidesoft.editor.margin
Class AbstractLineMarginPainter

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

public abstract class AbstractLineMarginPainter
extends Object
implements LineMarginPainter

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


Field Summary
 
Fields inherited from interface com.jidesoft.editor.margin.LineMarginPainter
LAYER_DEFAULT_INDEX
 
Constructor Summary
protected AbstractLineMarginPainter()
           
protected AbstractLineMarginPainter(int layer)
           
 
Method Summary
 int getLayer()
          Gets the layer index.
 void setLayer(int layer)
          Sets the layer index.
 
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.margin.LineMarginPainter
paintLineMargin
 

Constructor Detail

AbstractLineMarginPainter

protected AbstractLineMarginPainter()

AbstractLineMarginPainter

protected AbstractLineMarginPainter(int layer)
Method Detail

getLayer

public int getLayer()
Gets the layer index. The painter has a higher index will overwrite those that have lower index.

Specified by:
getLayer in interface LineMarginPainter
Returns:
the layer index.

setLayer

public void setLayer(int layer)
Sets the layer index.

Parameters:
layer -

JIDE 2.9.5