JIDE 3.5.15

com.jidesoft.editor.margin
Class BraceMatchingMarginPainter

java.lang.Object
  extended by com.jidesoft.margin.AbstractMarginPainter
      extended by com.jidesoft.editor.margin.BraceMatchingMarginPainter
All Implemented Interfaces:
MarginPainter

public class BraceMatchingMarginPainter
extends AbstractMarginPainter

BraceMatchingMarginPainter is a margin painter that can paint the brace matching information on any margin. Brace matching is a line on the margin that draw from the start position of a brace to the matching end brace. It will be drawn only if the caret is placed on the begin brace or the end brace.


Field Summary
 
Fields inherited from interface com.jidesoft.margin.MarginPainter
LAYER_DEFAULT_INDEX
 
Constructor Summary
BraceMatchingMarginPainter()
           
 
Method Summary
 int getLayer()
          Gets the layer index.
 void paintMargin(Graphics g, MarginSupport marginSupport)
          Paints the margin.
 
Methods inherited from class com.jidesoft.margin.AbstractMarginPainter
setLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BraceMatchingMarginPainter

public BraceMatchingMarginPainter()
Method Detail

getLayer

public int getLayer()
Description copied from class: AbstractMarginPainter
Gets the layer index. The painter has a higher index will overwrite those that have lower index.

Specified by:
getLayer in interface MarginPainter
Overrides:
getLayer in class AbstractMarginPainter
Returns:
the layer index.

paintMargin

public void paintMargin(Graphics g,
                        MarginSupport marginSupport)
Description copied from interface: MarginPainter
Paints the margin.

marginSupport - The Code Editor

JIDE 3.5.15