Logo Search packages:      
Sourcecode: wims version File versions  Download package

TextPosition.java

package rene.viewer;

import rene.util.list.ListElement;

class TextPosition
{     ListElement L;
      int LCount;
      int LPos;
      public TextPosition (ListElement l, int lcount, int lpos)
      {     L=l; LCount=lcount; LPos=lpos;
      }
      boolean equal (TextPosition p)
      {     return p.LCount==LCount && p.LPos==LPos;
      }
      boolean before (TextPosition p)
      {     return p.LCount>LCount ||
                  (p.LCount==LCount && p.LPos>LPos);
      }
      void oneleft ()
      {     if (LPos>0) LPos--;
      }
}


Generated by  Doxygen 1.6.0   Back to index