org.apache.poi.ss.util
Class SheetUtil

java.lang.Object
  extended by org.apache.poi.ss.util.SheetUtil

public class SheetUtil
extends java.lang.Object

Helper methods for when working with Usermodel sheets

Author:
Yegor Kozlov

Constructor Summary
SheetUtil()
           
 
Method Summary
static boolean containsCell(CellRangeAddress cr, int rowIx, int colIx)
           
static double getColumnWidth(Sheet sheet, int column, boolean useMergedCells)
          Compute width of a column and return the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SheetUtil

public SheetUtil()
Method Detail

getColumnWidth

public static double getColumnWidth(Sheet sheet,
                                    int column,
                                    boolean useMergedCells)
Compute width of a column and return the result

Parameters:
sheet - the sheet to calculate
column - 0-based index of the column
useMergedCells - whether to use merged cells
Returns:
the width in pixels

containsCell

public static boolean containsCell(CellRangeAddress cr,
                                   int rowIx,
                                   int colIx)


Copyright 2011 The Apache Software Foundation or its licensors, as applicable.