public class ReportUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static javax.swing.Icon |
createWidgetIcon(java.lang.Class widgetClass)
移位。。
|
static Background |
getBrowserBackgroundFromWorkBook(FineBook book)
取这个WorkBook对应的Background
|
static JSONArray |
getFlexgridPreviewErrorTitle()
出错页面
|
static UNIT |
getPaperHeight(PaperSettingProvider paperSetting)
页面(也就是整张纸)高度
|
static java.util.List<PaperSettingProvider> |
getPaperSettingListFromWorkBook(FineBook book) |
static java.util.List<PaperSettingProvider> |
getPaperSettingListFromWorkBook(FineBook book,
Margin offsetMargin)
get paper setting
|
static UNIT |
getPaperWidth(PaperSettingProvider paperSetting)
页面(也就是整张纸)宽度
|
static Printer |
getPrinterFromWorkBook(FineBook book)
取这个WorkBook对应的Printer
|
static PrintSettingsAttrMark |
getPrintSettingsFromServerConfig()
从 ConfigManager 中加载 PrintSettingsAttrMark 属性,如果为空,给一个有效的默认值,并加入 ConfigManager 中。
|
static PrintSettingsAttrMark |
getPrintSettingsFromWorkbook(FineBook fineBook)
从 WorkBook 中加载 PrintSettingsAttrMark 属性对象,如果为空,给一个无效的默认值。
|
static PrintSettingsAttrMark |
getPrintSettingsFromWorkbookAndGlobal(FineBook fineBook)
从 WorkBook 中加载 PrintSettingsAttrMark 属性对象,如果为空,就从服务器配置中加载。
|
static ReportSettingsProvider |
getReportSettings(Report report) |
static ToolBarManager[] |
getToolBarFromWorkBook(FineBook book,
int policy)
取这个WorkBook对应的ToolBar
|
static WatermarkAttr |
getWatermarkAttrFromServerConfig()
从服务器配置中加载 WatermarkData,封装并返回 WatermarkAttr。
|
static WatermarkAttr |
getWatermarkAttrFromTemplate(AttrMark template)
从 WorkBook 中加载 WatermarkAttr 属性对象(返回副本),如果为空,给一个无效的默认值。
|
static WatermarkAttr |
getWatermarkAttrFromTemplateAndGlobal(AttrMark template)
从 WorkBook 中加载 WatermarkAttr 属性对象,如果为空,就从服务器配置中加载。
|
static boolean |
hasLayerReport4Template(FineBook book)
是否有分层报表
|
static void |
initIconMap()
初始化图标
|
static java.awt.Rectangle |
intersection(int tx1,
int tx2,
int ty1,
int ty2,
int rx1,
int rx2,
int ry1,
int ry2)
交叉重合部分
|
static boolean |
isLayerReportUsable(WorkSheet srcReport)
判断是否可以用LayerReport这个内核
|
static boolean |
isWebPagePaintModel(ReportWebAttr reportWebAttr)
获取报表是否以图片的方式显示
|
static boolean |
isWebPageTDHeavy(ReportWebAttr reportWebAttr)
返回报表格子是否以重方式输出
|
static boolean |
isWebPageViewAtCenter(ReportWebAttr reportWebAttr)
是否居中显示
|
static java.util.List |
recalculate(Report report,
Calculator calculator,
java.util.Map parameterMap,
java.util.Iterator ceIt)
重计算
|
static java.util.List |
recalculate(Report report,
Calculator calculator,
java.util.Map parameterMap,
java.util.Iterator ceIt,
boolean reCalResultFormula)
重计算
|
static JSONObject |
tableDataToFlexgridObject4WebPreview(TableData tabledata,
int previewRows)
呃。。
|
public static void initIconMap()
public static javax.swing.Icon createWidgetIcon(java.lang.Class widgetClass)
widgetClass
- 控件类public static java.awt.Rectangle intersection(int tx1, int tx2, int ty1, int ty2, int rx1, int rx2, int ry1, int ry2)
tx1
- 位置tx2
- 位置ty1
- 位置ty2
- 位置rx1
- 位置rx2
- 位置ry1
- 位置ry2
- 位置public static ToolBarManager[] getToolBarFromWorkBook(FineBook book, int policy)
policy
- 预览方式book
- 当前的bookpublic static java.util.List<PaperSettingProvider> getPaperSettingListFromWorkBook(FineBook book, Margin offsetMargin)
book
- offsetMargin
- 偏移边距public static java.util.List<PaperSettingProvider> getPaperSettingListFromWorkBook(FineBook book)
book
- public static PrintSettingsAttrMark getPrintSettingsFromWorkbook(FineBook fineBook)
fineBook
- FineBook 对象public static PrintSettingsAttrMark getPrintSettingsFromWorkbookAndGlobal(FineBook fineBook)
fineBook
- FineBook 对象public static PrintSettingsAttrMark getPrintSettingsFromServerConfig()
public static WatermarkAttr getWatermarkAttrFromTemplate(AttrMark template)
template
- AttrMark 对象,包括 WorkBook 和 Formpublic static WatermarkAttr getWatermarkAttrFromTemplateAndGlobal(AttrMark template)
template
- AttrMark 对象,包括 WorkBook 和 Formpublic static WatermarkAttr getWatermarkAttrFromServerConfig()
public static Background getBrowserBackgroundFromWorkBook(FineBook book)
public static Printer getPrinterFromWorkBook(FineBook book)
public static ReportSettingsProvider getReportSettings(Report report)
public static boolean hasLayerReport4Template(FineBook book)
book
- 模板public static boolean isLayerReportUsable(WorkSheet srcReport)
srcReport
- 原始报表public static boolean isWebPageViewAtCenter(ReportWebAttr reportWebAttr)
reportWebAttr
- 报表web属性public static boolean isWebPagePaintModel(ReportWebAttr reportWebAttr)
reportWebAttr
- 报表web属性public static boolean isWebPageTDHeavy(ReportWebAttr reportWebAttr)
reportWebAttr
- 报表web属性public static UNIT getPaperWidth(PaperSettingProvider paperSetting)
paperSetting
- 页面设置public static UNIT getPaperHeight(PaperSettingProvider paperSetting)
paperSetting
- 页面设置public static JSONObject tableDataToFlexgridObject4WebPreview(TableData tabledata, int previewRows) throws java.lang.Exception
tabledata
- 数据集previewRows
- 预览行数java.lang.Exception
public static JSONArray getFlexgridPreviewErrorTitle() throws JSONException
JSONException
public static java.util.List recalculate(Report report, Calculator calculator, java.util.Map parameterMap, java.util.Iterator ceIt)
report
- 报表calculator
- 算子parameterMap
- 参数ceIt
- 格子迭代器public static java.util.List recalculate(Report report, Calculator calculator, java.util.Map parameterMap, java.util.Iterator ceIt, boolean reCalResultFormula)
report
- 报表calculator
- 算子parameterMap
- 参数ceIt
- 格子迭代器reCalResultFormula
- 是否清空结果公式