public class ReportHelper
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static java.lang.Object[] |
calculateLastColumnAndRowOfFloatElement(ElementCase report,
FloatElement floatElement)
返回这个floatElement的右下角点的所在单元格的位置ColumnRow与到这个单元格左上角点的LeftDistance和TopDistance
|
static UNITDimension |
calculateOccupiedArea(AbstractPolyReport report)
计算出整个Report所占的矩形区域
|
static java.awt.Point |
calculateStartColumnAndRowOfFloatElement(DynamicUnitList columnWidthList,
DynamicUnitList rowHeightList,
FloatElement floatElement)
返回悬浮元素起始坐标
|
static java.awt.Point |
calculateStartColumnAndRowOfFloatElement(ElementCase report,
FloatElement floatElement)
返回这个floatElement的左上角点的所在单元格的位置ColumnRow
|
static void |
clearFormulaResult(ElementCase rpt)
清空Report中的公式结果
|
static void |
clearFormulaResult(FineBook book)
清空FineBook中的公式结果
|
static java.lang.Object |
convertGeneralStringAccordingToExcel(java.lang.Object newValue)
alex:TODO 个人认为这里最好要加一个Format参数,至少当文本型的时候123也应该是String
本来还想根据format看写进来的字符串是什么再做不一样的处理,不过看Excel也就简单地对(123.00)做简单处理,那就算了
将字符按照Excel的转换规则,来转换.
|
static DynamicUnitList |
createColumnWidthList(CellElementCaseGetter reportCase)
读取DynamicValueList.宽度
|
static DynamicUnitList |
createRowHeightList(CellElementCaseGetter reportCase)
DynamicValueList.高度
|
static Reportlet |
generateReportlet(java.lang.String reportletPath)
产生报表
|
static java.awt.Dimension |
getCellElmentsSize(ReportPageProvider reportPage,
int resolution)
计算所要画的格子的总高度与宽度
|
static DynamicUnitList |
getColumnWidthList(ElementCase elementCase)
利用反射机制,来读取DynamicValueList.宽度
|
static double |
getFitPaperScaleFactor(ReportPageProvider reportPage)
计算适应页面大小时,需要的缩放比例
|
static java.awt.geom.Rectangle2D |
getPaintArea(ReportPageProvider reportPage,
int resolution)
计算页面可绘制区域
|
static UNIT[] |
getPaperPaintWidthAndHeight(PaperSettingProvider paperSetting,
ReportSettingsProvider reportSettings) |
static UNIT[] |
getReportPageContentSize(ReportPageProvider reportPage)
计算所要画的格子的高度与宽度
|
static DynamicUnitList |
getRowHeightList(ElementCase elementCase)
DynamicValueList.高度
|
static UNIT |
getTotalColumnWidth(ElementCase ec)
report的总宽度
|
static UNIT |
getTotalRowHeight(ElementCase ec)
report的总高度
|
public static UNITDimension calculateOccupiedArea(AbstractPolyReport report)
report
- 报表public static UNIT[] getReportPageContentSize(ReportPageProvider reportPage)
reportPage
- public static java.awt.geom.Rectangle2D getPaintArea(ReportPageProvider reportPage, int resolution)
reportPage
- resolution
- public static double getFitPaperScaleFactor(ReportPageProvider reportPage)
public static java.awt.Dimension getCellElmentsSize(ReportPageProvider reportPage, int resolution)
public static java.lang.Object[] calculateLastColumnAndRowOfFloatElement(ElementCase report, FloatElement floatElement)
report
- 当前报表floatElement
- 所选择的悬浮元素public static java.awt.Point calculateStartColumnAndRowOfFloatElement(ElementCase report, FloatElement floatElement)
report
- 当前报表floatElement
- 所选择的悬浮元素public static java.awt.Point calculateStartColumnAndRowOfFloatElement(DynamicUnitList columnWidthList, DynamicUnitList rowHeightList, FloatElement floatElement)
columnWidthList
- 列宽rowHeightList
- 航高floatElement
- 悬浮元素public static UNIT getTotalColumnWidth(ElementCase ec)
ec
- 报表元素public static UNIT getTotalRowHeight(ElementCase ec)
ec
- 报表元素public static DynamicUnitList getRowHeightList(ElementCase elementCase)
elementCase
- 报表元素public static DynamicUnitList createRowHeightList(CellElementCaseGetter reportCase)
reportCase
- 报表元素public static DynamicUnitList getColumnWidthList(ElementCase elementCase)
elementCase
- 元素public static DynamicUnitList createColumnWidthList(CellElementCaseGetter reportCase)
reportCase
- 元素public static void clearFormulaResult(FineBook book)
book
- 报表public static void clearFormulaResult(ElementCase rpt)
rpt
- 报表public static java.lang.Object convertGeneralStringAccordingToExcel(java.lang.Object newValue)
newValue
- 新值public static UNIT[] getPaperPaintWidthAndHeight(PaperSettingProvider paperSetting, ReportSettingsProvider reportSettings)
public static Reportlet generateReportlet(java.lang.String reportletPath)
reportletPath
- 报表路径