TxtLine.java :  » UnTagged » coolreader » cn » itcreator » android » reader » domain » Android Open Source

Android Open Source » UnTagged » coolreader 
coolreader » cn » itcreator » android » reader » domain » TxtLine.java
/**
 * <Txt line for content in text view.>
 *  Copyright (C) <2009>  <Wang XinFeng,ACC http://androidos.cc/dev>
 *
 *   This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
package cn.itcreator.android.reader.domain;

/**
 * Txt line for content in text view
 * @author Wang XinFeng
 * @version 1.0
 *
 */
public class TxtLine {
  
  /***/
    public int offset = 0;
    
    /***/
    public int lineLength = 0;
    
    /**the data length before this line and contain current line*/
    public int beforeLineLength=0;
    public TxtLine() {
        this(0, 0,0);
    }

    public TxtLine(int offset, int lenght,int beforeLineLength) {
        this.offset = offset;
        this.lineLength = lenght;
        this.beforeLineLength=beforeLineLength;
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.