|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.textarea.DisplayManager
public class DisplayManager
Manages low-level text display tasks, such as folding.
| Method Summary | |
|---|---|
static void |
bufferClosed(JEditBuffer buffer)
|
void |
collapseFold(int line)
Collapses the fold at the specified physical line index. |
void |
expandAllFolds()
Expands all folds. |
int |
expandFold(int line,
boolean fully)
Expands the fold at the specified physical line index. |
void |
expandFolds(char digit)
This method should only be called from actions.xml. |
void |
expandFolds(int foldLevel)
Expands all folds with the specified fold level. |
JEditBuffer |
getBuffer()
|
int |
getFirstVisibleLine()
Returns the physical line number of the first visible line. |
int |
getLastVisibleLine()
Returns the physical line number of the last visible line. |
int |
getNextVisibleLine(int line)
Returns the next visible line after the specified line index. |
int |
getPrevVisibleLine(int line)
Returns the previous visible line before the specified line index. |
int |
getScreenLineCount(int line)
|
int |
getScrollLineCount()
|
boolean |
isLineVisible(int line)
Returns if the specified line is visible. |
void |
narrow(int start,
int end)
Narrows the visible portion of the buffer to the specified line range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void bufferClosed(JEditBuffer buffer)
public JEditBuffer getBuffer()
public final boolean isLineVisible(int line)
line - A physical line indexpublic int getFirstVisibleLine()
public int getLastVisibleLine()
public int getNextVisibleLine(int line)
line - A physical line indexpublic int getPrevVisibleLine(int line)
line - A physical line indexpublic final int getScreenLineCount(int line)
public final int getScrollLineCount()
public void collapseFold(int line)
line - A physical line index
public int expandFold(int line,
boolean fully)
line - A physical line indexfully - If true, all subfolds will also be expandedpublic void expandAllFolds()
public void expandFolds(char digit)
actions.xml.
public void expandFolds(int foldLevel)
foldLevel - The fold level
public void narrow(int start,
int end)
start - The first lineend - The last line
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||