com.jidesoft.editor.margin
Class BraceMatchingMarginPainter
java.lang.Object
com.jidesoft.margin.AbstractMarginPainter
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BraceMatchingMarginPainter
public BraceMatchingMarginPainter()
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