public final class WorksheetMeasurer
extends java.lang.Object
| Constructor and Description |
|---|
WorksheetMeasurer(Worksheet worksheet,
com.mindfusion.spreadsheet.IResolution resolution,
java.lang.Double zoomFactor)
Initializes a new instance of the
WorksheetMeasurer class. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
java.awt.Rectangle |
getCellRect(Cell cell)
Gets the bounding rectangle, in pixels, of the specified cell.
|
java.awt.Rectangle |
getCellRect(int column,
int row)
Gets the bounding rectangle, in pixels, of the specified cell.
|
java.awt.geom.Rectangle2D |
getCellRectF(Cell cell)
Gets the bounding rectangle, in pixels, of the specified cell.
|
java.awt.geom.Rectangle2D |
getCellRectF(int column,
int row)
Gets the bounding rectangle, in pixels, of the specified cell.
|
java.awt.Rectangle |
getCellRectRelativeTo(Cell cell,
int relativeColumn,
int relativeRow)
Gets the bounding rectangle, in pixels, of the specified cell, relative
to another specified cell.
|
java.awt.Rectangle |
getCellRectRelativeTo(int column,
int row,
int relativeColumn,
int relativeRow)
Gets the bounding rectangle, in pixels, of the specified cell, relative
to another specified cell.
|
java.awt.geom.Rectangle2D |
getCellRectRelativeToF(Cell cell,
int relativeColumn,
int relativeRow)
Gets the bounding rectangle, in pixels, of the specified cell, relative to another specified cell.
|
java.awt.geom.Rectangle2D |
getCellRectRelativeToF(int column,
int row,
int relativeColumn,
int relativeRow)
Gets the bounding rectangle, in pixels, of the specified cell, relative to another specified cell.
|
int |
getColumnWidth(int column)
Gets the width, in pixels, of the specified column.
|
float |
getColumnWidthF(int column)
Gets the width, in pixels, of the specified column.
|
MeasureUnit |
getColumnWidthUnit(int column)
Gets the width unit of the specified column.
|
int |
getMergedColumnWidth(int start,
int end)
gets the width, in pixels, of the merged columns.
|
int |
getPixels(Measure measure)
Converts the specified measure to pixels, rounded to the nearest integer.
|
float |
getPixelsF(Measure measure)
Converts the specified measure in pixels.
|
java.awt.Rectangle |
getRangeRect(int left,
int top,
int right,
int bottom)
Gets the bounding rectangle, in pixels, of the specified cell range.
|
java.awt.Rectangle |
getRangeRectRelativeTo(CellRange range,
int relativeColumn,
int relativeRow)
Gets the bounding rectangle, in pixels, of the specified range, relative
to the specified cell.
|
java.awt.Rectangle |
getRangeRectRelativeTo(int left,
int top,
int right,
int bottom,
int relativeColumn,
int relativeRow)
Gets the bounding rectangle, in pixels, of the specified cell, relative
to another specified cell.
|
int |
getRowHeight(int row)
Gets the height, in pixels, of the specified row.
|
float |
getRowHeightF(int row)
Gets the height, in pixels, of the specified row.
|
MeasureUnit |
getRowHeightUnit(int row)
Gets the height unit of the specified row.
|
float |
scale(float value) |
int |
scale(int value) |
float |
unscale(float value) |
int |
unscale(int value) |
public WorksheetMeasurer(Worksheet worksheet, com.mindfusion.spreadsheet.IResolution resolution, java.lang.Double zoomFactor)
WorksheetMeasurer class.public void dispose()
public int getColumnWidth(int column)
public int getMergedColumnWidth(int start,
int end)
public float getColumnWidthF(int column)
public int getRowHeight(int row)
public float getRowHeightF(int row)
public MeasureUnit getColumnWidthUnit(int column)
public MeasureUnit getRowHeightUnit(int row)
public java.awt.Rectangle getCellRect(Cell cell)
public java.awt.Rectangle getCellRect(int column,
int row)
public java.awt.Rectangle getCellRectRelativeTo(Cell cell, int relativeColumn, int relativeRow)
public java.awt.Rectangle getCellRectRelativeTo(int column,
int row,
int relativeColumn,
int relativeRow)
public java.awt.geom.Rectangle2D getCellRectF(Cell cell)
public java.awt.geom.Rectangle2D getCellRectF(int column,
int row)
public java.awt.geom.Rectangle2D getCellRectRelativeToF(Cell cell, int relativeColumn, int relativeRow)
public java.awt.geom.Rectangle2D getCellRectRelativeToF(int column,
int row,
int relativeColumn,
int relativeRow)
public java.awt.Rectangle getRangeRect(int left,
int top,
int right,
int bottom)
public java.awt.Rectangle getRangeRectRelativeTo(CellRange range, int relativeColumn, int relativeRow)
public java.awt.Rectangle getRangeRectRelativeTo(int left,
int top,
int right,
int bottom,
int relativeColumn,
int relativeRow)
public int getPixels(Measure measure)
public float getPixelsF(Measure measure)
public float scale(float value)
public float unscale(float value)
public int scale(int value)
public int unscale(int value)