public class DocumentOfPagesModel
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
absoluteSymbolPositionToOffset(com.intellij.largeFilesEditor.editor.AbsoluteSymbolPosition absolutePosition) |
void |
addDocumentListener(DocumentListener listener) |
void |
addPageIntoEnd(Page page,
Project project) |
Document |
getDocument() |
Page |
getFirstPage() |
int |
getIndexOfPageByPageNumber(long pageNumber) |
Page |
getLastPage() |
Page |
getPageByIndex(int index) |
int |
getPagesAmount() |
java.util.ArrayList<Page> |
getPagesList() |
int |
getSymbolOffsetToStartOfPage(int indexOfPage) |
com.intellij.largeFilesEditor.editor.AbsoluteSymbolPosition |
offsetToAbsoluteSymbolPosition(int offset) |
void |
removeAllPages(Project project) |
void |
removeDocumentListener(DocumentListener listener) |
void |
removeLastPage(Project project) |
int |
tryGetIndexOfNeededPageInList(long needPageNumber) |
public Document getDocument()
public int getPagesAmount()
public java.util.ArrayList<Page> getPagesList()
public int getIndexOfPageByPageNumber(long pageNumber)
public Page getPageByIndex(int index)
public Page getFirstPage()
public Page getLastPage()
public void addDocumentListener(DocumentListener listener)
public void removeDocumentListener(DocumentListener listener)
public void removeLastPage(Project project)
public void removeAllPages(Project project)
public com.intellij.largeFilesEditor.editor.AbsoluteSymbolPosition offsetToAbsoluteSymbolPosition(int offset)
public int absoluteSymbolPositionToOffset(com.intellij.largeFilesEditor.editor.AbsoluteSymbolPosition absolutePosition)
public int getSymbolOffsetToStartOfPage(int indexOfPage)
public int tryGetIndexOfNeededPageInList(long needPageNumber)