com.raelity.jvi
Class Buffer.VisualBounds
java.lang.Object
com.raelity.jvi.Buffer.VisualBounds
- Enclosing class:
- Buffer
public class Buffer.VisualBounds
- extends Object
Calculate the 4 boundary points for a visual selection.
NOTE: in block mode, startOffset or endOffset may be off by one,
but they should not be used, left/right are correct.
NEEDSWORK: cache this by listening to all document/caret changes OR
if only called when update is needed, then no problem
NEEDSWORK: revisit to include TAB logic (screen.c:768 wish found sooner)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Buffer.VisualBounds
public Buffer.VisualBounds()
getVisMode
public char getVisMode()
getStartLine
public int getStartLine()
getEndLine
public int getEndLine()
getLeft
public int getLeft()
getRight
public int getRight()
clear
public void clear()
init
public void init(char visMode,
ViFPOS startPos,
ViFPOS cursorPos,
boolean wantMax)