// 报表设计模式 export enum ReportDesignMode { Normal = 0, /** * // 中文表格模式,也就是在 Detail Band 区只允许存在一个 TableItem 对象, 并且只有一个 Detail 区域 * @type {number} */ ChineseTable = 1 } export enum LineStyleEnum{ /** * 实线 */ Solid, /** * 点线 */ Dotted, /** * 虚线 */ Dashed, /** * 双实线 */ Double } export enum LineDirection { /** * 垂直 */ NS, /** * 水平 */ EW, /** * 左上到右下 */ NWSE, /** * 右上到左下 */ NESW } /** * 文本水平对齐方式 * */ export enum HorizontalTextAlignEnum { Left = 0, Center, Right, Justified //两端对齐 } /** * 文本垂直对齐方式 */ export enum VerticalTextAlignEnum { Top = 0, Middle, Bottom, Justified } /** * 旋转 */ export enum RotationEnum { None = 0, //不旋转 Left, //向左90度 Right, //向右90度 UpsideDown //180度旋转 } /** * */ export enum SplitTypeEnum { /** * The band is allowed to split, but never within its declared height. * This means the band splits only when its content stretches. */ Stretch = 1, /** * Prevents the band from splitting on first break attempt. * On subsequent pages/columns, the band is allowed to split, to avoid infinite loops. */ Prevent, /** * The band is allowed to split anywhere, as early as needed, * but not before at least one element being printed on the current page/column. */ Immediate } export enum PositionTypeEnum { /** * The element will float in its parent section if it is pushed downwards by other elements fount above it. * It will try to conserve the distance between it and the neighboring elements placed immediately above. */ Float = 1, /** * The element will simply ignore what happens to the other section elements and tries to * conserve the y offset measured from the top of its parent report section. */ FixRelativeToTop = 2, /** * If the height of the parent report section is affected by elements that stretch, the current element will try to * conserve the original distance between its bottom margin and the bottom of the band. */ FixRelativeToBottom = 3, } export enum StretchTypeEnum { /** * A constant indicating that the element preserves its original specified height. */ NoStretch = 0, /** * Constant used for specifying that the element will adapt its height to match the changing * height of the overall element group it is part of, but without taking into account the fact that the Y position of the * element within the group has probably changed due to floating and/or * collapsing white space above it. This position change is not compensated for, which might result in the element distance * to the group's initial bottom edge increasing or diminishing. *
* Like all element group based types of stretch, the amount of stretch forced onto the element comes only from the natural * stretch of the sibling elements in the same group. */ ElementGroupHeight = 3, /** * Constant used for specifying that the element will adapt its height to match the changing * height of the overall element group it is part of, but also taking into account the fact that the Y position of the * element within the group has probably changed due to floating and/or * collapsing white space above it and should be compensated for, resulting in the element's distance to the group's initial * bottom edge being preserved. *
* Like all element group based types of stretch, the amount of stretch forced onto the element comes only from the natural * stretch of the sibling elements in the same group. */ ElementGroupBottom = 3, /** * Constant used for specifying that the element will adapt its height to match the new * height of the container it is placed on, which has been affected by stretch, but without taking * into account the fact that the Y position of the element within the container has probably changed due to floating and/or * collapsing white space above it. This position change is not compensated for, which might result in the element distance * to the container's bottom edge increasing or diminishing. It could even happen that the element bottom edge goes beyond * container bottom edge and thus the element will no longer render at all. *
* Like all container based types of stretch, the amount of stretch forced onto the element can come from both the natural * stretch of the sibling elements in the same container, or from the container's own forced stretch imposed onto it by its own parent container. */ ContainerHeight = 3, /** * Constant used for specifying that the element will adapt its height to match the new * height of the container it is placed on, which has been affected by stretch, but also taking * into account the fact that the Y position of the element has probably changed and should be compensated for, * resulting in the element's distance to container bottom being preserved. *
* Like all container based types of stretch, the amount of stretch forced onto the element can come from both the natural * stretch of the sibling elements in the same container, or from the container's own forced stretch imposed onto it by its own parent container. */ ContainerBottom = 4 } export enum ModeEnum { /** * Specifies that the element is opaque. */ Opaque = 1, /** * Specifies that the element is transparent. */ Transparent = 2 } export enum FooterPositionEnum { /** * The group footer section is rendered at normal position, just right after the last detail * or right after the nested group footer section. */ Normal = 1, /** * The group footer section is rendered at bottom of the current page, provided that an inner group * having this value would force outer group footers to stack at the bottom of the current page, * regardless of the outer group footer setting. */ StackAtBottom = 2, /** * The group footer section is rendered at bottom of the current page, provided that an inner group * having this value would render its footer right at the bottom of the page, forcing the outer group * footers to render on the next page. */ ForceAtBottom = 3, /** * The group footer section is rendered at bottom of the current page, provided that the outer footers * have a similar footer display option to render at the page bottom as well, because otherwise, they cannot * be forced to change their behavior in any way. */ CollateAtBottom = 4 } export enum WhenResourceMissingTypeEnum { /** * Return NULL when a resource is missing. */ Null = 1, /** * Return empty string when a resource is missing. */ Empty = 2, /** * Return the key when a resource is missing. */ Key = 3, /** * Throw an exception when a resource is missing. */ Error = 4 } /** * 图片水平对齐 */ export enum HorizontalImageAlignEnum { Left = 0, Center, Right } /** * 图片垂直对齐 */ export enum VerticalImageAlignEnum { Top = 0, Middle, Bottom } /** * 图片缩放、剪裁 */ export enum ScaleImageEnum { /** * A constant value specifying that if the actual image is larger than the image element size, it will be cut off so * that it keeps its original resolution, and only the region that fits the specified size will be displayed. */ Clip = 1, /** * A constant value specifying that if the dimensions of the actual image do not fit those specified for the * image element that displays it, the image can be forced to obey them and stretch itself so that it fits * in the designated output area. */ FillFrame = 2, /** * A constant value specifying that if the actual image does not fit into the image element, it can be adapted * to those dimensions without needing to change its original proportions. */ RetainShape = 3, /** * A scale image type that instructs the engine to stretch the image height * to fit the actual height of the image. * *

* Several restrictions apply to the image stretching mechanism: *

*

* * @see #REAL_SIZE */ RealHeight = 4, /** * A scale image type that stretches the images height in the same way as * {@link #REAL_HEIGHT}, and in addition it changes the image * width to the actual with of the image. * * This can be useful when, for instance, a border has to be drawn around * the image, respecting its actual size. */ RealSize = 5 } export enum OnErrorTypeEnum { /** * A constant used for specifying that the engine should raise an exception if the image is not found. */ Error = 1, /** * A constant used for specifying that the engine should display blank space if the image is not found. */ Blank = 2, /** * A constant used for specifying that the engine should display a replacement icon if the image is not found. */ Icon = 3 } /** * 边框位置 */ export enum BorderEnum { Top = 0, //上边框 Right, Bottom, Left }