|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.raelity.jvi.ViFPOS.abstractFPOS
com.raelity.jvi.FPOS
public class FPOS
File position, accessable as line number, 1 based, and column, 0 based.
Any changes or additions here must be considered for WCursor.
NOTE: Methods should not reference offset,lnum,col directly. Must use the accessor to insure that the data is valid.
NOTE: line and column here do not change as the document changes. See Mark for that type of behavior.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.raelity.jvi.ViFPOS |
---|
ViFPOS.abstractFPOS |
Constructor Summary | |
---|---|
FPOS()
|
|
FPOS(int offset,
int line,
int column)
the values are slammed, no validity checking. |
Method Summary | |
---|---|
ViFPOS |
copy()
Make a copy |
int |
getColumn()
|
int |
getLine()
|
int |
getOffset()
|
protected void |
initFPOS(int o,
int l,
int c)
Used to make a copy. |
void |
set(int line,
int column)
Set the position. |
protected void |
setCursor(ViTextView tv)
use the current caret location to set the offset,line,col |
Methods inherited from class com.raelity.jvi.ViFPOS.abstractFPOS |
---|
compareTo, equals, set, setColumn, setLine, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FPOS()
public FPOS(int offset, int line, int column)
Method Detail |
---|
protected void initFPOS(int o, int l, int c)
protected void setCursor(ViTextView tv)
public int getLine()
public int getColumn()
public int getOffset()
public void set(int line, int column)
ViFPOS
public final ViFPOS copy()
ViFPOS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |