Back to index

wims  3.65+svn20090927
TextPosition.java
Go to the documentation of this file.
00001 package rene.viewer;
00002 
00003 import rene.util.list.ListElement;
00004 
00005 class TextPosition
00006 {      ListElement L;
00007        int LCount;
00008        int LPos;
00009        public TextPosition (ListElement l, int lcount, int lpos)
00010        {      L=l; LCount=lcount; LPos=lpos;
00011        }
00012        boolean equal (TextPosition p)
00013        {      return p.LCount==LCount && p.LPos==LPos;
00014        }
00015        boolean before (TextPosition p)
00016        {      return p.LCount>LCount ||
00017                      (p.LCount==LCount && p.LPos>LPos);
00018        }
00019        void oneleft ()
00020        {      if (LPos>0) LPos--;
00021        }
00022 }
00023