public interface DocumentWindow extends Document
EMPTY_ARRAY, PROP_WRITABLE
Modifier and Type | Method and Description |
---|---|
boolean |
areRangesEqual(DocumentWindow documentWindow) |
boolean |
containsRange(int hostStart,
int hostEnd) |
Document |
getDelegate() |
TextRange |
getHostRange(int hostOffset) |
Segment [] |
getHostRanges() |
int |
hostToInjected(int hostOffset) |
default int |
hostToInjectedUnescaped(int hostOffset)
Deprecated.
use
injectedToHost(int) instead |
int |
injectedToHost(int injectedOffset) |
int |
injectedToHost(int injectedOffset,
boolean minHostOffset) |
TextRange |
injectedToHost(TextRange injectedOffset) |
int |
injectedToHostLine(int line) |
boolean |
isOneLine() |
boolean |
isValid() |
addDocumentListener, addDocumentListener, addPropertyChangeListener, createGuardedBlock, createRangeMarker, createRangeMarker, createRangeMarker, deleteString, fireReadOnlyModificationAttempt, getChars, getCharsSequence, getImmutableCharSequence, getLineCount, getLineEndOffset, getLineNumber, getLineSeparatorLength, getLineStartOffset, getModificationStamp, getOffsetGuard, getRangeGuard, getText, getText, getTextLength, insertString, isInBulkUpdate, isLineModified, isWritable, removeDocumentListener, removeGuardedBlock, removePropertyChangeListener, replaceString, setCyclicBufferSize, setInBulkUpdate, setReadOnly, setText, startGuardedBlockChecking, stopGuardedBlockChecking
getUserData, putUserData
Document getDelegate()
@Deprecated default int hostToInjectedUnescaped(int hostOffset)
injectedToHost(int)
insteadint injectedToHost(int injectedOffset)
int injectedToHost(int injectedOffset, boolean minHostOffset)
minHostOffset
- if true
minimum host offset corresponding to given injected offset is returned, otherwise maximum related
host offset is returnedint hostToInjected(int hostOffset)
TextRange getHostRange(int hostOffset)
int injectedToHostLine(int line)
Segment [] getHostRanges()
boolean areRangesEqual(DocumentWindow documentWindow)
boolean isValid()
boolean containsRange(int hostStart, int hostEnd)
boolean isOneLine()