com.raelity.jvi
Interface ViFPOS

All Superinterfaces:
Comparable<ViFPOS>
All Known Subinterfaces:
ViMark
All Known Implementing Classes:
FPOS, ViFPOS.abstractFPOS

public interface ViFPOS
extends Comparable<ViFPOS>

A position in a file/document.


Nested Class Summary
static class ViFPOS.abstractFPOS
           
 
Method Summary
 ViFPOS copy()
          Make a copy
 int getColumn()
           
 int getLine()
           
 int getOffset()
           
 void set(int line, int column)
          Set the position.
 void set(ViFPOS fpos)
          This is a convenience for set(fpos.getLine(), fpos.getColumn());
 void setColumn(int col)
          Set the column, leave the line unchanged.
 void setLine(int line)
          Set the line, leave the column unchanged.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLine

int getLine()

getColumn

int getColumn()

getOffset

int getOffset()

set

void set(int line,
         int column)
Set the position. This will set the postition on the new line. If the column is less than zero, or past the new line, then it will be restricted. This is optional, may throw an UnsupportedOperationException


set

void set(ViFPOS fpos)
This is a convenience for set(fpos.getLine(), fpos.getColumn());


setColumn

void setColumn(int col)
Set the column, leave the line unchanged.
This is optional, may throw an UnsupportedOperationException


setLine

void setLine(int line)
Set the line, leave the column unchanged.
This is optional, may throw an UnsupportedOperationException


copy

ViFPOS copy()
Make a copy