## Uses of Class
org.gjt.sp.jedit.buffer.JEditBuffer

- Packages that use JEditBuffer
  Package | Description
  --- | ---
  org.gjt.sp.jedit | This package contains jEdit's core classes.
  org.gjt.sp.jedit.buffer | Buffer event listeners, and classes used to implement jEdit's document model.
  org.gjt.sp.jedit.indent | Indentation rules and actions.
  org.gjt.sp.jedit.textarea | Classes related to jEdit's TextArea.

- - ### Uses of JEditBuffer in org.gjt.sp.jedit

    Subclasses of JEditBuffer in org.gjt.sp.jedit
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Buffer` A `Buffer` represents the contents of an open text file as it is maintained in the computer's memory (as opposed to how it may be stored on a disk).

    Methods in org.gjt.sp.jedit with parameters of type JEditBuffer
    Modifier and Type | Method and Description
    --- | ---
    `static int` | TextUtilities.`findMatchingBracket(JEditBuffer buffer, int line, int offset)` Returns the offset of the bracket matching the one at the specified offset of the buffer, or -1 if the bracket is unmatched (or if the character is not a bracket).

  - ### Uses of JEditBuffer in org.gjt.sp.jedit.buffer

    Methods in org.gjt.sp.jedit.buffer with parameters of type JEditBuffer
    Modifier and Type | Method and Description
    --- | ---
    `void` | BufferUndoListener.`beginRedo(JEditBuffer buffer)` Called when a redo on the buffer begins.
    `void` | BufferUndoListener.`beginUndo(JEditBuffer buffer)` Called when an undo operation on the buffer begins.
    `void` | BufferAdapter.`bufferLoaded(JEditBuffer buffer)` Called to notify the text area that the buffer has been reloaded.
    `void` | BufferListener.`bufferLoaded(JEditBuffer buffer)` Called to notify the text area that the buffer has been reloaded.
    `void` | BufferAdapter.`contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is inserted into the buffer.
    `void` | BufferListener.`contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is inserted into the buffer.
    `void` | BufferAdapter.`contentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is removed from the buffer.
    `void` | BufferListener.`contentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is removed from the buffer.
    `void` | BufferUndoListener.`endRedo(JEditBuffer buffer)` Called when a redo on the buffer ends.
    `void` | BufferUndoListener.`endUndo(JEditBuffer buffer)` Called when an undo operation on the buffer ends.
    `void` | BufferAdapter.`foldHandlerChanged(JEditBuffer buffer)` Called to notify the text area that folds need to be collapsed if the "collapseFolds" property is set.
    `void` | BufferListener.`foldHandlerChanged(JEditBuffer buffer)` Called to notify the text area that folds need to be collapsed if the "collapseFolds" property is set.
    `void` | BufferAdapter.`foldLevelChanged(JEditBuffer buffer, int start, int end)` Called when line fold levels change.
    `void` | BufferListener.`foldLevelChanged(JEditBuffer buffer, int startLine, int endLine)` Called when line fold levels change.
    `abstract int` | FoldHandler.`getFoldLevel(JEditBuffer buffer, int lineIndex, javax.swing.text.Segment seg)` Returns the fold level of the specified line.
    `int` | DummyFoldHandler.`getFoldLevel(JEditBuffer buffer, int lineIndex, javax.swing.text.Segment seg)` Returns the fold level of the specified line.
    `int` | ExplicitFoldHandler.`getFoldLevel(JEditBuffer buffer, int lineIndex, javax.swing.text.Segment seg)` Returns the fold level of the specified line.
    `int` | IndentFoldHandler.`getFoldLevel(JEditBuffer buffer, int lineIndex, javax.swing.text.Segment seg)` Returns the fold level of the specified line.
    `java.util.List<java.lang.Integer>` | FoldHandler.`getPrecedingFoldLevels(JEditBuffer buffer, int lineIndex, javax.swing.text.Segment seg, int lineFoldLevel)` Returns the fold levels of the lines preceding the specified line, which depend on the specified line.
    `java.util.List<java.lang.Integer>` | IndentFoldHandler.`getPrecedingFoldLevels(JEditBuffer buffer, int lineIndex, javax.swing.text.Segment seg, int lineFoldLevel)` Returns the fold levels of the lines preceding the specified line, which depend on the specified line.
    `void` | BufferAdapter.`preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is about to be inserted in the buffer.
    `void` | BufferListener.`preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is about to be inserted in the buffer.
    `void` | BufferAdapter.`preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is about to be removed from the buffer, but is still present.
    `void` | BufferListener.`preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is about to be removed from the buffer, but is still present.
    `void` | BufferAdapter.`transactionComplete(JEditBuffer buffer)` Called after an undo or compound edit has finished.
    `void` | BufferListener.`transactionComplete(JEditBuffer buffer)` Called after an undo or compound edit has finished.

    Constructors in org.gjt.sp.jedit.buffer with parameters of type JEditBuffer
    Constructor and Description
    `UndoManager(JEditBuffer buffer)`

  - ### Uses of JEditBuffer in org.gjt.sp.jedit.indent

    Methods in org.gjt.sp.jedit.indent with parameters of type JEditBuffer
    Modifier and Type | Method and Description
    --- | ---
    `void` | IndentRule.`apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)` Apply the indent rule to this line, and return an indent action.
    `void` | WhitespaceRule.`apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)`
    `void` | OpenBracketIndentRule.`apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)`
    `void` | DeepIndentRule.`apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)`
    `void` | RegexpIndentRule.`apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)`
    `void` | CloseBracketIndentRule.`apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)`
    `int` | IndentAction.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `int` | IndentAction.Collapse.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)` This does nothing; it is merely a sentinel for the `OpenBracketIndentRule`.
    `int` | IndentAction.Reset.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `int` | IndentAction.Increase.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `int` | IndentAction.Decrease.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `int` | IndentAction.AlignOffset.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `int` | IndentAction.AlignParameter.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `int` | IndentAction.NoIncrease.`calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)`
    `BracketIndentRule.Brackets` | BracketIndentRule.`getBrackets(JEditBuffer buffer, int lineIndex)`
    `BracketIndentRule.Brackets` | BracketIndentRule.`getBrackets(JEditBuffer buffer, int lineIndex, int begin, int end)`

  - ### Uses of JEditBuffer in org.gjt.sp.jedit.textarea

    Fields in org.gjt.sp.jedit.textarea declared as JEditBuffer
    Modifier and Type | Field and Description
    --- | ---
    `protected JEditBuffer` | TextArea.`buffer`

    Methods in org.gjt.sp.jedit.textarea that return JEditBuffer
    Modifier and Type | Method and Description
    --- | ---
    `JEditBuffer` | TextArea.`getBuffer()` Returns the buffer this text area is editing.
    `JEditBuffer` | DisplayManager.`getBuffer()`

    Methods in org.gjt.sp.jedit.textarea with parameters of type JEditBuffer
    Modifier and Type | Method and Description
    --- | ---
    `static void` | DisplayManager.`bufferClosed(JEditBuffer buffer)`
    `void` | ElasticTabStopBufferListener.`contentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)`
    `void` | ElasticTabStopBufferListener.`contentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)` Called when text is removed from the buffer.
    `abstract int` | Selection.`getEnd(JEditBuffer buffer, int line)` Returns the end of the portion of the selection falling on the specified line.
    `int` | Selection.Range.`getEnd(JEditBuffer buffer, int line)`
    `int` | Selection.Rect.`getEnd(JEditBuffer buffer, int line)`
    `int` | Selection.Rect.`getEndColumn(JEditBuffer buffer)`
    `abstract int` | Selection.`getStart(JEditBuffer buffer, int line)` Returns the beginning of the portion of the selection falling on the specified line.
    `int` | Selection.Range.`getStart(JEditBuffer buffer, int line)`
    `int` | Selection.Rect.`getStart(JEditBuffer buffer, int line)`
    `int` | Selection.Rect.`getStartColumn(JEditBuffer buffer)`
    `void` | TriangleFoldPainter.`paintFoldEnd(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer)`
    `void` | ShapedFoldPainter.`paintFoldEnd(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer)`
    `void` | FoldPainter.`paintFoldEnd(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer)` Paints the end of a fold in the gutter.
    `void` | TriangleFoldPainter.`paintFoldMiddle(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer)`
    `void` | ShapedFoldPainter.`paintFoldMiddle(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer)`
    `void` | FoldPainter.`paintFoldMiddle(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer)` Paints the middle of a fold (single line) in the gutter.
    `void` | TriangleFoldPainter.`paintFoldStart(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, boolean nextLineVisible, int y, int lineHeight, JEditBuffer buffer)`
    `void` | ShapedFoldPainter.`paintFoldStart(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, boolean nextLineVisible, int y, int lineHeight, JEditBuffer buffer)`
    `void` | FoldPainter.`paintFoldStart(Gutter gutter, java.awt.Graphics2D gfx, int screenLine, int physicalLine, boolean nextLineVisible, int y, int lineHeight, JEditBuffer buffer)` Paints the beginning of a fold in the gutter.
    `void` | ElasticTabStopBufferListener.`preContentInserted(JEditBuffer buffer, int startLine, int offset, int numLines, int length)`
    `void` | ElasticTabStopBufferListener.`preContentRemoved(JEditBuffer buffer, int startLine, int offset, int numLines, int length)`
    `void` | TextArea.`setBuffer(JEditBuffer buffer)` Sets the buffer this text area is editing.
    `void` | ElasticTabStopBufferListener.`transactionComplete(JEditBuffer buffer)`

    Constructors in org.gjt.sp.jedit.textarea with parameters of type JEditBuffer
    Constructor and Description
    `ColumnBlock(JEditBuffer buffer, int startLine, int endLine)`
    `ColumnBlock(JEditBuffer buffer, int startLine, int startColumn, int endLine, int endColumn)`
    `Selection.Rect(JEditBuffer buffer, int startLine, int startColumn, int endLine, int endColumn)`