Uses of Class
org.gjt.sp.jedit.buffer.JEditBuffer
Package
Description
-
Uses of JEditBuffer in de.grogra.ext.jedit
Modifier and TypeMethodDescriptionint
StringFoldHandler.getFoldLevel
(JEditBuffer buffer, int lineIndex, Segment seg) -
Uses of JEditBuffer in org.gjt.sp.jedit
Modifier and TypeClassDescriptionclass
ABuffer
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).Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionvoid
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.int
DummyFoldHandler.getFoldLevel
(JEditBuffer buffer, int lineIndex, Segment seg) Returns the fold level of the specified line.int
ExplicitFoldHandler.getFoldLevel
(JEditBuffer buffer, int lineIndex, Segment seg) Returns the fold level of the specified line.abstract int
FoldHandler.getFoldLevel
(JEditBuffer buffer, int lineIndex, Segment seg) Returns the fold level of the specified line.int
IndentFoldHandler.getFoldLevel
(JEditBuffer buffer, int lineIndex, Segment seg) Returns the fold level of the specified line.FoldHandler.getPrecedingFoldLevels
(JEditBuffer buffer, int lineIndex, Segment seg, int lineFoldLevel) Returns the fold levels of the lines preceding the specified line, which depend on the specified line.IndentFoldHandler.getPrecedingFoldLevels
(JEditBuffer buffer, int lineIndex, 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. -
Uses of JEditBuffer in org.gjt.sp.jedit.indent
Modifier and TypeMethodDescriptionvoid
CloseBracketIndentRule.apply
(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) void
DeepIndentRule.apply
(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) void
IndentRule.apply
(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) Apply the indent rule to this line, and return an indent action.void
OpenBracketIndentRule.apply
(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) void
RegexpIndentRule.apply
(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) void
WhitespaceRule.apply
(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) 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.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 theOpenBracketIndentRule
.int
IndentAction.Decrease.calculateIndent
(JEditBuffer buffer, int line, int oldIndent, int newIndent) int
IndentAction.Increase.calculateIndent
(JEditBuffer buffer, int line, int oldIndent, int newIndent) int
IndentAction.NoIncrease.calculateIndent
(JEditBuffer buffer, int line, int oldIndent, int newIndent) int
IndentAction.Reset.calculateIndent
(JEditBuffer buffer, int line, int oldIndent, int newIndent) BracketIndentRule.getBrackets
(JEditBuffer buffer, int lineIndex) BracketIndentRule.getBrackets
(JEditBuffer buffer, int lineIndex, int begin, int end) -
Uses of JEditBuffer in org.gjt.sp.jedit.textarea
Modifier and TypeMethodDescriptionDisplayManager.getBuffer()
final JEditBuffer
TextArea.getBuffer()
Returns the buffer this text area is editing.Modifier and TypeMethodDescriptionstatic 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
FoldPainter.paintFoldEnd
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer) Paints the end of a fold in the gutter.void
ShapedFoldPainter.paintFoldEnd
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer) void
TriangleFoldPainter.paintFoldEnd
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer) void
FoldPainter.paintFoldMiddle
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer) Paints the middle of a fold (single line) in the gutter.void
ShapedFoldPainter.paintFoldMiddle
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer) void
TriangleFoldPainter.paintFoldMiddle
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, int y, int lineHeight, JEditBuffer buffer) void
FoldPainter.paintFoldStart
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, boolean nextLineVisible, int y, int lineHeight, JEditBuffer buffer) Paints the beginning of a fold in the gutter.void
ShapedFoldPainter.paintFoldStart
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, boolean nextLineVisible, int y, int lineHeight, JEditBuffer buffer) void
TriangleFoldPainter.paintFoldStart
(Gutter gutter, Graphics2D gfx, int screenLine, int physicalLine, boolean nextLineVisible, int y, int lineHeight, JEditBuffer buffer) 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) ModifierConstructorDescriptionColumnBlock
(JEditBuffer buffer, int startLine, int endLine) ColumnBlock
(JEditBuffer buffer, int startLine, int startColumn, int endLine, int endColumn) Rect
(JEditBuffer buffer, int startLine, int startColumn, int endLine, int endColumn)