## Uses of Class
org.gjt.sp.jedit.textarea.Selection

Packages that use Selection
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.search | Search and replace classes.
org.gjt.sp.jedit.textarea | Classes related to jEdit's TextArea.

### Uses of Selection in org.gjt.sp.jedit

Methods in org.gjt.sp.jedit that return Selection
Modifier and Type | Method and Description
--- | ---
`Selection[]` | BufferHistory.Entry.`getSelection()`

Methods in org.gjt.sp.jedit with parameters of type Selection
Modifier and Type | Method and Description
--- | ---
`static void` | BufferHistory.`setEntry(java.lang.String path, int caret, Selection[] selection, java.lang.String encoding, java.lang.String mode)`

### Uses of Selection in org.gjt.sp.jedit.buffer

Methods in org.gjt.sp.jedit.buffer that return Selection
Modifier and Type | Method and Description
--- | ---
`Selection[]` | UndoManager.`redo()`
`Selection[]` | UndoManager.`undo()`

### Uses of Selection in org.gjt.sp.jedit.search

Methods in org.gjt.sp.jedit.search that return Selection
Modifier and Type | Method and Description
--- | ---
`Selection[]` | HyperSearchResult.`getSelection()` Returns an array of selection objects pointing to the occurrences of the search term on the current line.

### Uses of Selection in org.gjt.sp.jedit.textarea

Subclasses of Selection in org.gjt.sp.jedit.textarea
Modifier and Type | Class and Description
--- | ---
`class` | `ColumnBlock`
`static class` | `Selection.Range` An ordinary range selection.
`static class` | `Selection.Rect` A rectangular selection.

Methods in org.gjt.sp.jedit.textarea that return Selection
Modifier and Type | Method and Description
--- | ---
`Selection[]` | TextArea.`getSelection()` Returns the current selection.
`Selection` | TextArea.`getSelection(int index)` Returns the selection with the specified index.
`Selection` | TextArea.`getSelectionAtOffset(int offset)` Returns the selection containing the specific offset, or `null` if there is no selection at that offset.
`Selection` | TextArea.`selectToMatchingBracket(int position, boolean quickCopy)` Selects from the bracket at the specified position to the corresponding bracket.

Methods in org.gjt.sp.jedit.textarea that return types with arguments of type Selection
Modifier and Type | Method and Description
--- | ---
`java.util.Iterator<Selection>` | TextArea.`getSelectionIterator()` Returns the current selection.

Methods in org.gjt.sp.jedit.textarea with parameters of type Selection
Modifier and Type | Method and Description
--- | ---
`void` | TextArea.`addToSelection(Selection selection)` Adds to the selection.
`void` | TextArea.`addToSelection(Selection[] selection)` Adds to the selection.
`java.lang.String` | TextArea.`getSelectedText(Selection s)` Returns the text in the specified selection.
`boolean` | Selection.`overlaps(Selection s)` Returns if this selection and the specified selection overlap.
`void` | TextArea.`removeFromSelection(Selection sel)` Deactivates the specified selection.
`void` | TextArea.`setSelectedText(Selection s, java.lang.String selectedText)` Replaces the selection with the specified text.
`void` | TextArea.`setSelection(Selection selection)` Sets the selection.
`void` | TextArea.`setSelection(Selection[] selection)` Sets the selection.

Constructors in org.gjt.sp.jedit.textarea with parameters of type Selection
Constructor and Description
`Selection.Range(Selection sel)`
`Selection.Rect(Selection sel)`
`Selection(Selection sel)`