com.raelity.jvi
Class Buffer.VisualBounds

java.lang.Object
  extended by 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)


Constructor Summary
Buffer.VisualBounds()
           
 
Method Summary
 void clear()
           
 int getEndLine()
           
 int getLeft()
           
 int getRight()
           
 int getStartLine()
           
 char getVisMode()
           
 void init(char visMode, ViFPOS startPos, ViFPOS cursorPos, boolean wantMax)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Buffer.VisualBounds

public Buffer.VisualBounds()
Method Detail

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)