com.jidesoft.margin
Class AbstractMarginPainter
java.lang.Object
com.jidesoft.margin.AbstractMarginPainter
- All Implemented Interfaces:
- MarginPainter
- Direct Known Subclasses:
- AbstractMarginPainter, BraceMatchingMarginPainter
public abstract class AbstractMarginPainter
- extends Object
- implements MarginPainter
An abstract implementation of MarginPainter
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
paintMargin
.
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 |
AbstractMarginPainter
protected AbstractMarginPainter()
- Creates an AbstractMarginPainter. It has a layer index of 0 by default.
AbstractMarginPainter
protected AbstractMarginPainter(int layer)
- Create an AbstractMarginPainter.
- Parameters:
layer
-
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 MarginPainter
- Returns:
- the layer index.
setLayer
public void setLayer(int layer)
- Sets the layer index.
- Parameters:
layer
-