⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rowrecord.java

📁 一个非常有用的操作MCRSOFT EXCEL文件的工具。可以用JAVA方便的新建
💻 JAVA
字号:
/***********************************************************************      Copyright (C) 2001 Andrew Khan** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or (at your option) any later version.** This library 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* Lesser General Public License for more details.** You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA***************************************************************************/package jxl.read.biff;import common.Logger;import jxl.biff.IntegerHelper;import jxl.biff.RecordData;/** * A row  record */public class RowRecord extends RecordData{  /**   * The logger   */  public static Logger logger = Logger.getLogger(RowRecord.class);  /**   * The number of this row   */  private int rowNumber;  /**   * The height of this row   */  private int rowHeight;  /**   * Flag to indicate whether this row is collapsed or not   */  private boolean collapsed;  /**   * Indicates whether this row has zero height (ie. whether it is hidden)   */  private boolean zeroHeight;  /**   * Indicates whether this row has an explicit default format   */  private boolean defaultFormat;  /**   * Indicates whether the row record height matches the default font height   */  private boolean matchesDefFontHeight;  /**   * The (default) xf index for cells on this row   */  private int xfIndex;  /**   * Indicates that the row is default height   */  private static final int defaultHeightIndicator = 0xff;  /**   * Constructs this object from the raw data   *   * @param t the raw data   */  RowRecord(Record t)  {    super(t);    byte[] data = getRecord().getData();    rowNumber = IntegerHelper.getInt(data[0], data[1]);    rowHeight = IntegerHelper.getInt(data[6], data[7]);    int options = IntegerHelper.getInt(data[12], data[13],                                        data[14], data[15]);    collapsed = (options & 0x20) != 0;    matchesDefFontHeight = (options & 0x40) == 0;    defaultFormat = (options & 0x80) != 0;    xfIndex = (options & 0x0fff0000) >> 16;  }  /**   * Interrogates whether this row is of default height   *   * @return TRUE if this is set to the default height, FALSE otherwise   */  boolean isDefaultHeight()  {    return rowHeight == defaultHeightIndicator;  }  /**   * Interrogates this row to see whether it matches the default font height   *   * @return TRUE if this matches the default font height, FALSE otherwise   */  public boolean matchesDefaultFontHeight()  {    return matchesDefFontHeight;  }  /**   * Gets the row number   *   * @return the number of this row   */  public int getRowNumber()  {    return rowNumber;  }  /**   * Gets the height of the row   *   * @return the row height   */  public int getRowHeight()  {    return rowHeight;  }  /**   * Queries whether the row is collapsed   *   * @return the collapsed indicator   */  public boolean isCollapsed()  {    return collapsed;  }  /**   * Queries whether the row has been set to zero height   *   * @return the zero height indicator   */  public boolean isZeroHeight()  {    return zeroHeight;  }  /**   * Gets the default xf index for this row   *   * @return the xf index   */  public int getXFIndex()  {    return xfIndex;  }  /**   * Queries whether the row has a specific default cell format applied   *   * @return the default cell format   */  public boolean hasDefaultFormat()  {    return defaultFormat;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -