Method Summary |
|
void | check() Check whether the marks offsets and lines are sorted correctly. |
synchronized void | dispose(Mark mark) |
int | findIndex(Mark mark) Find the index of the given mark.
Parameters: mark - for which the index is being searched. |
int | findInsertIndex(int offset, boolean backwardBias) Find the index at which it's valid to perform an insert of the new mark.
Parameters: offset - offset of the mark Parameters: backwardBias - whether the mark has backward or forward bias. |
synchronized Mark | getLeftMark(int offset, Class markClass) Get the mark with offset lower than the parameter.
Parameters: offset - requested offset Parameters: markClass - class of the mark to be found. |
synchronized int | getLine(Mark mark) |
synchronized Mark | getMarkFromLine(int line) Gets the nearest lower position for specified line. |
synchronized int | getMarksCount() |
synchronized int | getOffset(Mark mark) |
synchronized Mark | getOffsetMark(int offset, Class markClass) Get mark that is right at given offset or null.
Parameters: offset - offset where the mark should be found. Parameters: markClass - class of the mark to be found. |
synchronized void | insert(Mark mark) Insert mark.
Parameters: mark - mark to insert. |
synchronized void | remove(Mark mark) |
public synchronized void | render(Renderer r) Render marks by some Renderer . |
public String | toString() Get info about DocMarks . |
public String | toStringDetail() List all the marks into string. |
String | toStringDetail(Map testMarksMap) |
synchronized void | update(int offset, int line, int length, int lineCount) Document was modified. |