限定符和类型 | 类和说明 |
---|---|
class |
NameStyle
名字和样式的一个对应,用于从全局中找预定义的样式
|
限定符和类型 | 字段和说明 |
---|---|
static Style |
Style.BORDER_STYLE
Border Style
|
static Style |
Style.DEFAULT_STYLE
Default Style
|
static Style |
Style.NULL_STYLE |
限定符和类型 | 方法和说明 |
---|---|
Style |
Style.deriveBackground(Background background)
设置背景
|
Style |
NameStyle.deriveBackground(Background background)
更改预定义样式中的背景为指定的背景后返回该样式
|
Style |
Style.deriveBorder(int border_top,
java.awt.Color border_top_color,
int border_bottom,
java.awt.Color border_bottom_color,
int border_left,
java.awt.Color border_left_color,
int border_right,
java.awt.Color border_right_color)
设置边框
|
Style |
NameStyle.deriveBorder(int border_top,
java.awt.Color border_top_color,
int border_bottom,
java.awt.Color border_bottom_color,
int border_left,
java.awt.Color border_left_color,
int border_right,
java.awt.Color border_right_color)
更改预定义样式中的边框后返回该样式
|
Style |
Style.deriveBorderBackgroundNone()
去掉边框和单元格背景
|
Style |
NameStyle.deriveBorderBackgroundNone()
取消预定义样式中的背景并返回该样式
|
Style |
Style.deriveBorderBottom(int border_bottom,
java.awt.Color border_bottom_color)
设置下边框
|
Style |
NameStyle.deriveBorderBottom(int border_bottom,
java.awt.Color border_bottom_color)
更改预定义样式中的下边框后返回该样式
|
Style |
Style.deriveBorderLeft(int border_left,
java.awt.Color border_left_color)
设置左边框
|
Style |
NameStyle.deriveBorderLeft(int border_left,
java.awt.Color border_left_color)
更改预定义样式中的左边框后返回该样式
|
Style |
Style.deriveBorderRight(int border_right,
java.awt.Color border_right_color)
设置右边框
|
Style |
NameStyle.deriveBorderRight(int border_right,
java.awt.Color border_right_color)
更改预定义样式中的右边框后返回该样式
|
Style |
Style.deriveBorderTop(int border_top,
java.awt.Color border_top_color)
设置上边框
|
Style |
NameStyle.deriveBorderTop(int border_top,
java.awt.Color border_top_color)
更改预定义样式中的上边框后返回该样式
|
Style |
Style.deriveFormat(java.text.Format format)
设置样式
|
Style |
NameStyle.deriveFormat(java.text.Format format)
更改预定义样式中的格式后返回该样式
|
Style |
Style.deriveFRFont(FRFont frFont)
设置字体
|
Style |
NameStyle.deriveFRFont(FRFont frFont)
更改预定义样式中的字体后返回该样式
|
Style |
Style.deriveHorizontalAlignment(int horizontal_alignment)
设置水平方向
|
Style |
NameStyle.deriveHorizontalAlignment(int horizontal_alignment)
更改预定义样式中的水平对其方式后返回该样式
|
Style |
Style.deriveImageLayout(int imageLayout)
设置图片布局
|
Style |
NameStyle.deriveImageLayout(int imageLayout)
更改预定义样式中的格图片布局方式后返回该样式
|
Style |
Style.deriveLineSpacing(int lineSpacing)
设置行间距
|
Style |
NameStyle.deriveLineSpacing(int lineSpacing)
更改预定义样式中的文本控制方式后返回该样式
|
Style |
Style.derivePadding(int paddingLeft,
int paddingRight)
设置缩进
|
Style |
NameStyle.derivePadding(int paddingLeft,
int paddingRight)
更改预定义样式中的文本缩进后返回该样式
|
Style |
Style.derivePaddingLeft(int paddingLeft)
设置左缩进
|
Style |
NameStyle.derivePaddingLeft(int paddingLeft)
更改预定义样式中的左缩进格式后返回该样式
|
Style |
Style.derivePaddingRight(int paddingRight)
设置右缩进
|
Style |
NameStyle.derivePaddingRight(int paddingRight)
更改预定义样式中的右缩进格式后返回该样式
|
Style |
Style.deriveRotation(int rotation)
设置旋转方向
|
Style |
NameStyle.deriveRotation(int rotation)
更改预定义样式中的文本旋转角度后返回该样式
|
Style |
Style.deriveSpacingAfter(int spacingAfter)
设置段后间距
|
Style |
NameStyle.deriveSpacingAfter(int spacingAfter)
设置段后间距
|
Style |
Style.deriveSpacingBefore(int spacingBefore)
设置段前间距
|
Style |
NameStyle.deriveSpacingBefore(int spacingBefore)
设置段前间距
|
Style |
Style.deriveTextDirection(int textDirection)
设置单元格方向
|
Style |
NameStyle.deriveTextDirection(int textDirection)
更改预定义样式中的文本方向后返回该样式
|
Style |
Style.deriveTextStyle(int textStyle)
设置单元格展示样式(自动换行, 单行显示, 多行显示等)
|
Style |
NameStyle.deriveTextStyle(int textStyle)
设置单元格展示样式(自动换行, 单行显示, 多行显示等)
|
Style |
Style.deriveVerticalAlignment(int vertical_alignment)
设置垂直方向
|
Style |
NameStyle.deriveVerticalAlignment(int vertical_alignment)
设置垂直方向
|
Style |
Style.deriveVerticalText(int verticalText)
设置单元格垂直方向
|
Style |
NameStyle.deriveVerticalText(int verticalText)
设置单元格垂直方向
|
static Style |
Style.getInstance()
getInstance
|
static Style |
Style.getInstance(Background background)
getInstance
|
static Style |
Style.getInstance(java.text.Format format)
获取实例
|
static Style |
Style.getInstance(FRFont frFont)
getInstance
|
Style |
NameStyle.getRealStyle()
获取该预定义样式,这个方法会每次都从全局配置中读取最新的预定义样式
|
Style |
ConfigManager.getStyle(java.lang.String name)
已过时。
Gets the Style of the specified name.
|
static Style |
Style.modCellStyleString(int width,
int height,
java.lang.String text,
Style style,
int resolution)
修改格子样式
|
static Style |
BaseXMLUtils.readAuthorityStyle(XMLableReader reader) |
static Style |
BaseXMLUtils.readBorderStyle(XMLableReader reader,
Style baseStyle)
Read BorderStyle.
|
static Style |
BaseXMLUtils.readFullStyle(XMLableReader reader)
Read Full Style.
|
限定符和类型 | 方法和说明 |
---|---|
static int |
BaseUtils.calculateTextX(Style style,
java.awt.Font rfont,
java.lang.String paint_str,
int width,
int textWidth,
int horizontalAlignment) |
static int |
BaseUtils.calculateTextX(Style style,
java.awt.Font rfont,
java.lang.String paint_str,
int width,
int textWidth,
int horizontalAlignment,
int scale)
计算X宽度
|
static int |
BaseUtils.calculateTextY(Style style,
int height,
int textHeight,
int textAscent,
java.util.List lineTextList,
int resolution) |
static int |
BaseUtils.calculateTextY(Style style,
int height,
int textHeight,
int textAscent,
java.util.List lineTextList,
int resolution,
int scale)
计算Y的高度
|
static java.awt.image.BufferedImage |
GraphHelper.createBufferedImageFromImageWithLayout(java.awt.Image image,
int width,
int height,
Style style)
从图片中创建一张不带布局的图片
|
static void |
BaseUtils.drawStringStyleInRotation(java.awt.Graphics2D g2d,
int width,
int height,
java.lang.String text,
Style style,
int resolution)
基本的画文本的方法,只考虑样式中的字体和对齐方式
|
static int |
BaseUtils.getAlignment4Horizontal(Style style)
获取样式中关于水平方向上的对齐类型
|
static int |
BaseUtils.getAlignment4Horizontal(Style style,
java.lang.Object value)
获取水平方向上的对齐样式
|
static java.util.List |
BaseUtils.getLineTextList(java.lang.String text,
Style style,
java.awt.Font font,
double paintHeight,
double paintWidth) |
static java.util.List |
BaseUtils.getLineTextList(java.lang.String text,
Style style,
java.awt.Font font,
double paintHeight,
double paintWidth,
int resolution)
james daniel 放一起
同时含有height和width参数表示会根据style自动判断字体为竖排还是横排
TODO
|
static java.util.List |
BaseUtils.getLineTextList(java.lang.String text,
Style style,
java.awt.Font font,
double paintWidth,
int resolution)
daniel: 自动换行算法, 这个算法要求跟DHTML中Table的自动换行表现结果一样
所以统一72dpi进行处理
|
static java.awt.Font |
BaseUtils.getStyleFont(java.awt.Graphics2D g2d,
Style style,
int resolution)
获取样式中字体的类型
|
static boolean |
BaseUtils.isAutomaticLine(Style style,
int horizontalAlignment,
boolean textLonger) |
static boolean |
BaseUtils.isDistributeAlign(Style style,
int horizontalAlignment,
boolean textLonger) |
static Style |
Style.modCellStyleString(int width,
int height,
java.lang.String text,
Style style,
int resolution)
修改格子样式
|
void |
Painter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
根据指定的图形上下文、目标图形的宽度和高度、屏幕分辨率以及样式画出目标图形
|
static void |
Style.paintBackground(java.awt.Graphics2D g2d,
Style style,
double width,
double height)
画背景
通过width, height方式画
|
static void |
Style.paintBackground(java.awt.Graphics2D g2d,
Style style,
java.awt.Rectangle paintRectangle,
java.awt.Rectangle clipRectangle)
画单元格的背景
通过PaintRectangle + ClipRectangle画
|
static void |
Style.paintBorder(java.awt.Graphics2D g2d,
Style style,
double width,
double height)
画边框
通过width, height方式画
|
static void |
Style.paintBorder(java.awt.Graphics2D g2d,
Style style,
java.awt.Rectangle paintRectangle,
java.awt.Rectangle clipRectangle)
画单元格的边框
通过PaintRectangle + ClipRectangle画边框
|
static void |
Style.paintCellStyleString(java.awt.Graphics2D g2d,
int width,
int height,
java.lang.String text,
Style style,
int resolution)
Paint string according to Style.
|
static void |
Style.paintContent(java.awt.Graphics2D g2d,
java.lang.Object value,
int resolution,
Style style,
java.awt.Rectangle paintRectangle,
java.awt.Rectangle clipRectangle)
画单元格的Value
通过PaintRectangle + ClipRectangle画
|
static void |
Style.paintContent(java.awt.Graphics2D g2d,
java.lang.Object value,
Style style,
int width,
int height,
int resolution)
画单元格的Value
通过width, height方式画
|
static void |
Style.paintImageContent(java.awt.Graphics2D g2d,
java.awt.Image value,
Style style,
int width,
int height,
int resolution) |
void |
Painter.paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag)
画出图形,生成 img 标签,加入上层 tag
|
void |
AbstractPainter.paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag) |
void |
ConfigManager.putStyle(java.lang.String name,
Style style)
已过时。
Puts the Style with the specified name.
|
static Style |
BaseXMLUtils.readBorderStyle(XMLableReader reader,
Style baseStyle)
Read BorderStyle.
|
JSONObject |
Painter.toJSONObject(NodeVisitor visitor,
Repository repo,
int width,
int height,
Style style)
将Painter以JSON形式输出
|
JSONObject |
AbstractPainter.toJSONObject(NodeVisitor visitor,
Repository repo,
int width,
int height,
Style style) |
static void |
BaseXMLUtils.writeBorderStyle(XMLPrintWriter writer,
Style style)
Write Border
|
static void |
BaseXMLUtils.writeStyle(XMLPrintWriter writer,
Style style) |
static void |
BaseXMLUtils.writeStyle(XMLPrintWriter writer,
Style style,
boolean writeFullNameStyle)
Write Style
|
限定符和类型 | 方法和说明 |
---|---|
static Style |
StyleUtils.applyCellStyle(Style oldStyle,
Style newStyle,
Style changedStyle)
这个方法主要还是当弹出Dialog的时候,不要改变所有的CellStyle的风格.
|
static Style |
StyleUtils.boldReportFont(Style style)
Bold Text.
|
static Style |
StyleUtils.italicReportFont(Style style)
italic Text.
|
static Style |
StyleUtils.setReportFontForeground(Style style,
java.awt.Color foreground)
FRFont Foreground
|
static Style |
StyleUtils.setReportFontName(Style style,
java.lang.String name)
Font name.
|
static Style |
StyleUtils.setReportFontShadow(Style style,
boolean isShadow)
FRFont Shadow
|
static Style |
StyleUtils.setReportFontSize(Style style,
float size)
Font size.
|
static Style |
StyleUtils.setReportFontStrikethrough(Style style,
boolean isStrikethrough)
FRFont Strikethrough
|
static Style |
StyleUtils.setReportFontStyle(Style style,
int fontStyle)
Font fontStyle.
|
static Style |
StyleUtils.setReportFontUnderline(Style style,
boolean isMakeUnderline)
FRFont underline
|
static Style |
StyleUtils.setReportFontUnderline2(Style style,
int underline)
FRFont underline
|
static Style |
StyleUtils.setReportSubscript(Style style,
boolean isSubscript)
FRFont Subscript
|
static Style |
StyleUtils.setReportSuperscript(Style style,
boolean isSuperscript)
FRFont Superscript
|
static Style |
StyleUtils.unBoldReportFont(Style style)
UnBold Text.
|
static Style |
StyleUtils.unItalicReportFont(Style style)
unitalic Text.
|
限定符和类型 | 方法和说明 |
---|---|
static Style |
StyleUtils.applyCellStyle(Style oldStyle,
Style newStyle,
Style changedStyle)
这个方法主要还是当弹出Dialog的时候,不要改变所有的CellStyle的风格.
|
static Style |
StyleUtils.boldReportFont(Style style)
Bold Text.
|
static Style |
StyleUtils.italicReportFont(Style style)
italic Text.
|
static Style |
StyleUtils.setReportFontForeground(Style style,
java.awt.Color foreground)
FRFont Foreground
|
static Style |
StyleUtils.setReportFontName(Style style,
java.lang.String name)
Font name.
|
static Style |
StyleUtils.setReportFontShadow(Style style,
boolean isShadow)
FRFont Shadow
|
static Style |
StyleUtils.setReportFontSize(Style style,
float size)
Font size.
|
static Style |
StyleUtils.setReportFontStrikethrough(Style style,
boolean isStrikethrough)
FRFont Strikethrough
|
static Style |
StyleUtils.setReportFontStyle(Style style,
int fontStyle)
Font fontStyle.
|
static Style |
StyleUtils.setReportFontUnderline(Style style,
boolean isMakeUnderline)
FRFont underline
|
static Style |
StyleUtils.setReportFontUnderline2(Style style,
int underline)
FRFont underline
|
static Style |
StyleUtils.setReportSubscript(Style style,
boolean isSubscript)
FRFont Subscript
|
static Style |
StyleUtils.setReportSuperscript(Style style,
boolean isSuperscript)
FRFont Superscript
|
static Style |
StyleUtils.unBoldReportFont(Style style)
UnBold Text.
|
static Style |
StyleUtils.unItalicReportFont(Style style)
unitalic Text.
|
限定符和类型 | 方法和说明 |
---|---|
Style |
Present.modifyCellStyle(Style cellStyle,
java.lang.Object value)
处理形态中涉及到的style的改变,传入单元格
形态中处理格子的样式
|
Style |
AbstractPresent.modifyCellStyle(Style cellStyle,
java.lang.Object value)
处理形态中涉及到的style的改变,传入单元格
形态中处理格子的样式
|
限定符和类型 | 方法和说明 |
---|---|
Style |
Present.modifyCellStyle(Style cellStyle,
java.lang.Object value)
处理形态中涉及到的style的改变,传入单元格
形态中处理格子的样式
|
Style |
AbstractPresent.modifyCellStyle(Style cellStyle,
java.lang.Object value)
处理形态中涉及到的style的改变,传入单元格
形态中处理格子的样式
|
限定符和类型 | 方法和说明 |
---|---|
void |
ChartPainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
预览的时候paint(包括远程服务器和本地的时候). kunsnat;
远程登录的时候,NameObject中为Image对象
|
void |
ChartCollection.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
kunsnat: 图表的ModelChart Image
|
void |
ChartPainter.paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag) |
限定符和类型 | 方法和说明 |
---|---|
void |
TagPainter.paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag) |
限定符和类型 | 方法和说明 |
---|---|
void |
BarcodePainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
开始绘制条形码
|
static java.awt.Image |
BarCodeUtils.value2Image(java.lang.Object value,
int resolution,
Style style,
int width,
int height) |
static java.awt.Image |
BarCodeUtils.value2Image(java.lang.Object value,
int resolution,
Style style,
java.awt.Rectangle paint,
java.awt.Rectangle clip) |
static java.awt.Image |
BarCodeUtils.value2ImageWithBackground(java.lang.Object value,
int resolution,
Style style,
int width,
int height) |
限定符和类型 | 方法和说明 |
---|---|
Style |
ServerPreferenceConfig.getStyle(java.lang.String name)
Gets the Style of the specified name.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,Style> |
StyleMap.getAllStyles() |
限定符和类型 | 方法和说明 |
---|---|
void |
StyleMap.put(java.lang.String name,
Style style) |
void |
ServerPreferenceConfig.putStyle(java.lang.String name,
Style style)
Puts the Style with the specified name.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,Style> |
StyleMap.getAllStyles() |
限定符和类型 | 方法和说明 |
---|---|
void |
StyleMap.put(java.lang.String name,
Style style) |
限定符和类型 | 字段和说明 |
---|---|
protected Style |
ReportFontBoldAction.style |
限定符和类型 | 方法和说明 |
---|---|
Style |
StyleBackgroundAction.executeStyle(Style style,
Style defStyle) |
Style |
StyleActionInterface.executeStyle(Style style2Mod,
Style selectedStyle) |
Style |
ReportFontSizeAction.executeStyle(Style style,
Style defStyle)
应用选中的样式
|
Style |
ReportFontNameAction.executeStyle(Style style,
Style defStyle) |
Style |
ReportFontForegroundAction.executeStyle(Style style,
Style defStyle) |
Style |
ReportFontBoldAction.executeStyle(Style style,
Style defStyle)
根据按钮状态获取格式
|
Style |
AlignmentAction.executeStyle(Style style,
Style selectedStyle)
executeStyle
|
abstract Style |
AbstractStyleAction.executeStyle(Style style,
Style defStyle) |
限定符和类型 | 方法和说明 |
---|---|
Style |
StyleBackgroundAction.executeStyle(Style style,
Style defStyle) |
Style |
StyleActionInterface.executeStyle(Style style2Mod,
Style selectedStyle) |
Style |
ReportFontSizeAction.executeStyle(Style style,
Style defStyle)
应用选中的样式
|
Style |
ReportFontNameAction.executeStyle(Style style,
Style defStyle) |
Style |
ReportFontForegroundAction.executeStyle(Style style,
Style defStyle) |
Style |
ReportFontBoldAction.executeStyle(Style style,
Style defStyle)
根据按钮状态获取格式
|
Style |
AlignmentAction.executeStyle(Style style,
Style selectedStyle)
executeStyle
|
abstract Style |
AbstractStyleAction.executeStyle(Style style,
Style defStyle) |
protected void |
ReportFontUnderlineAction.setSelectedFont(Style style) |
protected void |
ReportFontItalicAction.setSelectedFont(Style style) |
protected void |
ReportFontBoldAction.setSelectedFont(Style style) |
protected void |
ReportFontUnderlineAction.setUnselectedFont(Style style) |
protected void |
ReportFontItalicAction.setUnselectedFont(Style style) |
protected void |
ReportFontBoldAction.setUnselectedFont(Style style) |
void |
StyleActionInterface.updateStyle(Style style)
Update Style.
|
void |
ReportFontSizeAction.updateStyle(Style style)
更新样式
|
void |
ReportFontNameAction.updateStyle(Style style)
Update Style.
|
void |
ReportFontBoldAction.updateStyle(Style style)
Update Style.
|
void |
AlignmentAction.updateStyle(Style style)
更新Style
|
void |
AbstractStyleAction.updateStyle(Style style)
Update Style.
|
限定符和类型 | 方法和说明 |
---|---|
static Style |
ReportActionUtils.getCurrentStyle(ElementCasePane reportPane)
peter:是只读的分析然后获得当前的Style.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
TextFloatEditor.ajustTextStyle(Grid grid,
Style style,
java.lang.Object value,
int resolution) |
protected void |
TextCellEditor.ajustTextStyle(Grid grid,
Style style,
java.lang.Object value,
int resolution) |
限定符和类型 | 方法和说明 |
---|---|
Style |
ImgChooseWrapper.getImageStyle() |
限定符和类型 | 方法和说明 |
---|---|
static ImgChooseWrapper |
ImgChooseWrapper.getInstance(ImagePreviewer previewPane,
ImageFileChooser imageFileChooser,
Style imageStyle) |
static ImgChooseWrapper |
ImgChooseWrapper.getInstance(ImagePreviewer previewPane,
ImageFileChooser imageFileChooser,
Style imageStyle,
javax.swing.event.ChangeListener changeListener) |
void |
ImgChooseWrapper.setImageStyle(Style imageStyle) |
限定符和类型 | 方法和说明 |
---|---|
Style |
FRFontPane.update(Style style) |
Style |
FormatPane.update(Style style) |
Style |
BorderPane.update(Style style) |
Style |
BackgroundPane.update(Style style) |
Style |
AlignmentPane.update(Style style)
Update cellstyle border
|
abstract Style |
AbstractBasicStylePane.update(Style style) |
Style |
AbstractBasicStylePane.updateBean() |
限定符和类型 | 方法和说明 |
---|---|
void |
FRFontPane.populateBean(Style style) |
void |
FormatPane.populateBean(Style style) |
void |
BorderPane.populateBean(Style style) |
void |
BackgroundPane.populateBean(Style style) |
void |
AlignmentPane.populateBean(Style style)
Populate cellstyle border.
|
void |
AbstractBasicStylePane.populateBean(Style ob) |
Style |
FRFontPane.update(Style style) |
Style |
FormatPane.update(Style style) |
Style |
BorderPane.update(Style style) |
Style |
BackgroundPane.update(Style style) |
Style |
AlignmentPane.update(Style style)
Update cellstyle border
|
abstract Style |
AbstractBasicStylePane.update(Style style) |
限定符和类型 | 方法和说明 |
---|---|
static Style[][] |
DesignerContext.getReferencedStyle() |
限定符和类型 | 方法和说明 |
---|---|
static void |
DesignerContext.setReferencedStyle(Style[][] styles) |
void |
FormatBrushAction.updateFormatBrush(Style[][] referencedStyle,
CellSelection cs,
ElementCasePane reportPane) |
限定符和类型 | 方法和说明 |
---|---|
Style |
ImagePreviewPane.getImageStyle() |
限定符和类型 | 方法和说明 |
---|---|
void |
ImagePreviewPane.setImageStyle(Style imageStyle) |
限定符和类型 | 方法和说明 |
---|---|
Style |
CustomStylePane.updateBean() |
Style |
StylePane.updateStyle(Style style) |
Style |
CustomStylePane.updateStyle(Style style) |
限定符和类型 | 方法和说明 |
---|---|
protected java.util.List<FurtherBasicBeanPane<? extends Style>> |
StylePane.initPaneList() |
限定符和类型 | 方法和说明 |
---|---|
void |
CustomStylePane.populateBean(Style ob) |
void |
CustomStylePane.updateBean(Style ob) |
Style |
StylePane.updateStyle(Style style) |
Style |
CustomStylePane.updateStyle(Style style) |
限定符和类型 | 字段和说明 |
---|---|
protected Style |
StylePane.editing |
限定符和类型 | 方法和说明 |
---|---|
Style |
BorderPane.update(Style style) |
Style |
AlignmentPane.update(Style style)
Update cellstyle border
|
Style |
StylePane.updateBean()
Update Style
|
限定符和类型 | 方法和说明 |
---|---|
void |
BorderPane.populate(Style style) |
void |
AlignmentPane.populate(Style style)
Populate cellstyle border.
|
void |
StylePane.populateBean(Style ob)
Populate Style
|
void |
StylePane.PreivewArea.setStyle(Style style) |
Style |
BorderPane.update(Style style) |
Style |
AlignmentPane.update(Style style)
Update cellstyle border
|
限定符和类型 | 方法和说明 |
---|---|
Style |
ImagePreviewPane.getImageStyle() |
限定符和类型 | 方法和说明 |
---|---|
void |
ImagePreviewPane.setImageStyle(Style imageStyle) |
void |
ImagePreviewer.setImageStyle(Style style)
设置图片样式(平铺,拉伸)
|
限定符和类型 | 方法和说明 |
---|---|
static void |
GUICoreUtils.adjustStyle(Style style,
EditTextField textField,
int resolution,
java.lang.Object value)
调整样式
|
限定符和类型 | 方法和说明 |
---|---|
void |
WebImagePainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style) |
限定符和类型 | 方法和说明 |
---|---|
Style |
CellWidget.getStyle() |
限定符和类型 | 方法和说明 |
---|---|
void |
CellWidget.setStyle(Style s) |
java.awt.image.BufferedImage |
Widget.toImage(java.lang.Object value,
int pxWidth,
int pxHeight,
Style style)
将当前单元格里的控件转化为图片, 主要用于打印复选框与复选框组
|
java.awt.image.BufferedImage |
CheckBoxGroup.toImage(java.lang.Object value,
int pxWidth,
int pxHeight,
Style style)
将当前单元格里的控件转化为图片, 主要用于打印复选框与复选框组
|
java.awt.image.BufferedImage |
CheckBox.toImage(java.lang.Object value,
int pxWidth,
int pxHeight,
Style style)
将当前单元格里的控件转化为图片, 主要用于打印复选框与复选框组
|
构造器和说明 |
---|
CellWidget(Widget w,
Style s,
java.awt.Rectangle rect,
java.lang.Object value) |
限定符和类型 | 方法和说明 |
---|---|
protected Style |
AbstractExcelExporter.adjustProperFontSize(Style style)
调整下当前格子导出的字体大小
|
限定符和类型 | 方法和说明 |
---|---|
protected Style |
AbstractExcelExporter.adjustProperFontSize(Style style)
调整下当前格子导出的字体大小
|
protected java.lang.Object |
AbstractExcelExporter.checkValueVertical(java.lang.Object value,
Style style,
int width,
int height) |
protected void |
AbstractExcelExporter.dealWithBufferImage(java.lang.Object value,
POIClientAnchorAction clientAnchor,
POIPatriarchAction patriarch,
Style style,
int width,
int height,
java.awt.image.BufferedImage buffImg,
POIWorkbookAction wb)
将BufferImage转化成excel中的悬浮元素
|
protected java.lang.Object |
AbstractExcelExporter.evalCellValue(CellElement cellElement,
boolean exHiddenRow,
boolean exHiddenColumn,
java.util.List hssfCellList,
POICellAction hssfCell,
Calculator cal,
Style style,
java.util.List hssfCellFormulaList,
CellGUIAttr cellGUIAttr,
DynamicUnitList rowHeightList,
DynamicUnitList columnWidthList,
int column,
int row,
int columnSpan,
int rowSpan,
POIWorkbookAction wb) |
protected java.lang.Object |
AbstractExcelExporter.evalHtmlContent(POIWorkbookAction wb,
java.lang.Object value,
Style style,
int width,
int height) |
protected void |
AbstractExcelExporter.executeCellStyle(POIWorkbookAction wb,
POICellStyleAction hssfCellStyle,
Style style)
将报表中的单元格样式设置到excel单元格中
|
protected short |
ExcelExporter.getRotation(Style style) |
protected abstract short |
AbstractExcelExporter.getRotation(Style style) |
protected POIRichStringAction |
AbstractExcelExporter.html2HSSFRichTextString(POIWorkbookAction wb,
java.lang.String html,
Style style) |
void |
HTMLPainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
绘制html方法
|
限定符和类型 | 方法和说明 |
---|---|
com.fr.third.v2.org.apache.poi.ss.usermodel.CellStyle |
StreamExcel2007Exporter.createXSSFCellStyle(com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
Style style)
Creates Style
|
java.lang.Object |
StreamExcel2007Exporter.evalCellValue(CellElement cellElement,
boolean exHiddenRow,
boolean exHiddenColumn,
java.util.List hssfCellList,
POICellAction hssfCell,
Calculator cal,
Style style,
java.util.List hssfCellFormulaList,
CellGUIAttr cellGUIAttr,
DynamicUnitList rowHeightList,
DynamicUnitList columnWidthList,
int column,
int row,
int columnSpan,
int rowSpan,
POIWorkbookAction wb) |
protected short |
StreamExcel2007Exporter.getRotation(Style style) |
protected void |
StreamExcelReportExporter.setPOICellStyle(com.fr.third.v2.org.apache.poi.ss.usermodel.Cell xssfCell,
Style style,
CellGUIAttr cellGUIAttr,
java.lang.Object value,
com.fr.third.v2.org.apache.poi.ss.usermodel.CellStyle cellStyle) |
限定符和类型 | 方法和说明 |
---|---|
static Style |
ExcelReportImporter.applyAlignStyle(short horizonAlign,
short verticalAlign,
Style style)
设置对齐样式
|
static Style |
ExcelReportImporter.format(java.lang.String formatString,
Style style)
格式转化
|
限定符和类型 | 方法和说明 |
---|---|
static Style |
ExcelReportImporter.applyAlignStyle(short horizonAlign,
short verticalAlign,
Style style)
设置对齐样式
|
static Style |
ExcelReportImporter.format(java.lang.String formatString,
Style style)
格式转化
|
限定符和类型 | 字段和说明 |
---|---|
protected Style |
AbstractCellElement.style |
限定符和类型 | 方法和说明 |
---|---|
Style |
StyleProvider.getStyle()
Gets style.
|
Style |
FloatElement.getStyle() |
Style |
AbstractCellElement.getStyle()
获取单元格样式
|
限定符和类型 | 方法和说明 |
---|---|
void |
StyleProvider.setStyle(Style style)
Sets style.
|
void |
FloatElement.setStyle(Style style)
Sets style.
|
void |
AbstractCellElement.setStyle(Style style)
设置单元格样式
|
限定符和类型 | 方法和说明 |
---|---|
Style |
PageExportCellElement.getStyle() |
Style |
CellImage.getStyle() |
限定符和类型 | 方法和说明 |
---|---|
void |
PageExportCellElement.setStyle(Style style) |
void |
CellImage.setStyle(Style style) |
限定符和类型 | 方法和说明 |
---|---|
Style |
RichChar.getStyle() |
限定符和类型 | 方法和说明 |
---|---|
static RichText |
RichTextConverter.converHtmlToRichText(boolean showAsHtml,
java.lang.String htmlContent,
Style style)
转化单元格中值为富文本
|
static com.fr.third.com.lowagie.text.Chunk[] |
RichTextConverter.html2ChunkArray(java.lang.String html,
Style style)
初始化段落列表
|
static com.fr.third.com.lowagie.text.Chunk[] |
RichTextConverter.html2ChunkArray(java.lang.String html,
Style style,
HtmlParseCheck htmlParseCheck)
初始化段落列表
|
static RichText |
RichTextConverter.html2RichText(java.lang.String html,
Style style)
将html内容转为富文本
|
static RichText |
RichTextConverter.html2RichText(java.lang.String html,
Style style,
HtmlParseCheck htmlParseCheck)
将html内容转为富文本
|
void |
ResultSubReport.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
绘制子报表
|
void |
RichChar.setStyle(Style style) |
boolean |
RichChar.styleEquals(Style style)
判断指定的样式与当前富文本是否相同
如果是公式, 直接返回false
|
static java.awt.Image |
CellUtils.value2Image(java.lang.Object value,
int resolution,
Style style,
int width,
int height) |
static java.awt.Image |
CellUtils.value2Image(java.lang.Object value,
int resolution,
Style style,
java.awt.Rectangle paint,
java.awt.Rectangle clip) |
static java.awt.Image |
CellUtils.value2ImageWithBackground(java.lang.Object value,
int resolution,
Style style,
int width,
int height) |
static java.lang.String |
RichTextConverter.wrapperSpan(java.lang.String html,
Style style) |
构造器和说明 |
---|
RichChar(java.lang.String text,
Style style) |
限定符和类型 | 方法和说明 |
---|---|
void |
DSColumn.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style) |
限定符和类型 | 方法和说明 |
---|---|
protected Style |
PaddingHighlightAction.modStyle(Style style) |
protected Style |
FRFontHighlightAction.modStyle(Style style) |
protected Style |
ForegroundHighlightAction.modStyle(Style style) |
protected Style |
BackgroundHighlightAction.modStyle(Style style) |
protected abstract Style |
AbstractStyleHighlightAction.modStyle(Style style) |
限定符和类型 | 方法和说明 |
---|---|
protected Style |
PaddingHighlightAction.modStyle(Style style) |
protected Style |
FRFontHighlightAction.modStyle(Style style) |
protected Style |
ForegroundHighlightAction.modStyle(Style style) |
protected Style |
BackgroundHighlightAction.modStyle(Style style) |
protected abstract Style |
AbstractStyleHighlightAction.modStyle(Style style) |
限定符和类型 | 方法和说明 |
---|---|
void |
CurrencyLinePainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
Paint.
|
void |
CellImagePainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
绘制其中的图片
|
void |
BiasTextPainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
Paint.
|
void |
TagPainter.paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag) |
void |
CurrencyLinePainter.paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag) |
限定符和类型 | 方法和说明 |
---|---|
void |
AbstractShapePainter.paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style) |
void |
AbstractShapePainter.paint(java.awt.Graphics g,
int width,
int height,
Style style)
Paint.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
PdfParagraph.add(com.fr.third.v2.lowagie.text.Element element,
Style style)
向container中添加PdfElement
|
static java.lang.String |
PaintUtils.clipBlockValue(java.lang.Object value,
Style style,
java.awt.Rectangle primitiveArea,
java.awt.Rectangle blockArea,
int resolution,
boolean isShowAsHTML)
截取文字,只考虑了垂直方向,水平方向没意义且难度大.
|
static java.lang.String |
Html2ImageUtils.clipHtmlContent(java.lang.Object value,
Style style,
java.awt.Rectangle primitiveArea,
int resolution,
int startY,
int endY)
切割pdfContainer,获取切割后的pdfLines并转换成原始html
|
static java.awt.image.BufferedImage |
PaintUtils.createHTMLContentBufferedImage(java.lang.String value,
java.awt.Rectangle paintRectangle,
int x,
int y,
Style style)
如果用户希望以HTML方式展示String,这个时候先value变成图片
|
static java.awt.image.BufferedImage |
Html2ImageUtils.createHTMLContentBufferedImage(java.lang.String value,
java.awt.Rectangle paintRectangle,
int x,
int y,
Style style)
如果用户希望以HTML方式展示String,导出word, web端展示时value转化图片,
打印的时候, 转为HTMLPainter, 避免绘制多次导致模糊
|
void |
PdfTable.draw(java.awt.Graphics2D g2d,
Style style) |
void |
PdfParagraph.draw(java.awt.Graphics2D g2d,
Style style)
进行绘制
|
void |
PdfBlock.draw(java.awt.Graphics2D g2d,
Style style)
绘制元素
|
static float |
Html2ImageUtils.getContainerWidth(int width,
Style style,
int resolution)
根据设置的样式获取container的宽度
|
static UNIT |
Html2ImageUtils.getHtmlHeight(java.lang.String content,
UNIT paintWidth,
Style style)
获取限定宽度下html内容的高度
|
static UNIT |
Html2ImageUtils.getHtmlWidth(java.lang.String content,
UNIT paintHeight,
Style style)
获取限定高度下html内容的宽度
|
static int |
PaintUtils.getLineTextCount(java.lang.String text,
Style style,
UNIT paintWidth)
see
BaseUtils.getLineTextList , 等于BaseUtils.getLineTextList().size()
Denny: 为了提高速度和性能,才单独拿出来的
TODO: 重构 |
static PdfContainer |
Html2ImageUtils.html2PdfContainer(java.lang.String content,
int width,
int height,
Style style,
int resolution)
将html转换成pdf对象,用于计算和绘制
|
static void |
PaintUtils.paintBarcode(java.awt.Graphics2D g2d,
int width,
int height,
java.lang.String text,
Style style,
BarcodeAttr barcodeAttr)
paintBarcode
|
static void |
PaintUtils.paintHTMLContent(java.awt.Graphics2D g2d,
java.lang.String value,
int resolution,
Style style,
java.awt.Rectangle paintRectangle,
java.awt.Rectangle clipRectangle) |
static void |
Html2ImageUtils.paintOnJEditorPane(java.lang.String htmlStr,
java.awt.Graphics2D g2d,
int width,
Style style)
将指定的html内容paint到JEditorPane中
|
static void |
PaintUtils.paintTag(Painter painter,
Repository repo,
int width,
int height,
Style style,
Tag tag) |
构造器和说明 |
---|
PdfContainer(float width,
float height,
Style style,
int resolution) |
PdfTable(float width,
Style style,
int resolution) |
限定符和类型 | 方法和说明 |
---|---|
static WriteBorder |
WriteBorder.create(Style style)
四个边框都使用自己的
|
static WriteBorder |
WriteBorder.create(Style style,
Style leftCEStyle,
Style topCEStyle)
创建单元格的边框属性
边框属性跟原来的方式不同,每个格子的边框需要跟周围四个空间上相邻的(非column,row而是像素位置)格子的相邻边框进行合并,
下面所描述的相邻都指的是空间上相邻,
合并按照以下规则进行:
1.
|
限定符和类型 | 方法和说明 |
---|---|
Style |
WriteCellElementInfo.getStyle()
获得单元格样式
|
限定符和类型 | 方法和说明 |
---|---|
void |
WriteCellElementInfo.setStyle(Style style)
设置单元格样式
|
限定符和类型 | 方法和说明 |
---|---|
Style |
WriteCEInfo.getStyle() |
限定符和类型 | 方法和说明 |
---|---|
void |
WriteCEInfo.setStyle(Style style) |
限定符和类型 | 方法和说明 |
---|---|
Tag |
ReportHeavyTDProcessor.createTDWrapper(Tag contentTag,
Style style,
CellElement ce,
int valueWrapperHeight,
int cellWidth,
Repository repo,
CellHtmlWriter cellHtmlWriter) |
java.lang.String[] |
VerticalTextProcessor.process(java.lang.String text,
Style style,
java.awt.Font font,
double paintHeight,
double paintWidth,
int resolution)
将传入的文本变为竖排, 并根据宽高返回行列结果
|
java.lang.Object |
CellValueProvider.processBeforeToTag(java.lang.Object oriValue,
CellGUIAttr guiAttr,
Style style,
int width,
int height)
转换为html之前的处理单元格值接口
例如: 单元格输出到web端不想用默认的显示方式, 想将其转为图片, 转为富文本等等.
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
SymbolConverter.convertVerticalSymbol(Style style,
java.lang.String verticalText)
转换排版符号
|
Tag |
AbstractReportHeavyTDProcessor.createTDWrapper(Tag contentTag,
Style style,
CellElement ce,
int valueWrapperHeight,
int cellWidth,
Repository repo,
CellHtmlWriter cellHtmlWriter) |
protected static boolean |
SymbolConverter.invalidStyle(java.lang.String verticalText,
Style style) |
java.lang.String[] |
DefaultVerticalTextProcessor.process(java.lang.String text,
Style style,
java.awt.Font font,
double paintHeight,
double paintWidth,
int resolution)
将传入的文本变为竖排, 并根据宽高返回行列结果
|
限定符和类型 | 方法和说明 |
---|---|
void |
Actor.present(CellElement ce,
Present present,
Style presentStyle)
设置当前预览方式下格子形态后的样式
|
限定符和类型 | 方法和说明 |
---|---|
void |
AbstractActor.present(CellElement ce,
Present present,
Style presentStyle)
设置当前预览方式下格子形态后的样式
|
限定符和类型 | 方法和说明 |
---|---|
Style |
StyleWithSize.getStyle() |
限定符和类型 | 方法和说明 |
---|---|
static void |
ReportHTMLWriterUtils.contentStyle2CssExceptBorderAndBackground(Style style,
Tag tag)
将样式除去边框和背景然后生成html标签并添加到指定的父标签上
|
void |
StyleWithSize.setStyle(Style style) |
static void |
ReportHTMLWriterUtils.style2CssOnlyWithBorder(Style style,
Tag tag)
将样式中的边框生成html标签并添加到指定的父标签上
|
构造器和说明 |
---|
StyleWithSize(Style style,
java.awt.Dimension dimension) |
StyleWithSize(Style style,
int width,
int height) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
CellHtmlWriter.displayVerticalText(Style style,
java.lang.Object displayValue,
Tag valueWrapper,
int valueWrapperHeight) |
protected boolean |
CellHtmlWriter.shouldBeDisplayAsVerticalText(CellElement ce,
Style style,
java.lang.Object displayValue) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
WriteCellWriter.shouldBeDisplayAsVerticalText(CellElement ce,
Style style,
java.lang.Object displayValue)
当设置为直接显示控件且单元格存在可见控件时无需以图片形式展示单元格值
|
限定符和类型 | 方法和说明 |
---|---|
int |
SynchronizedStyleList.indexOfStyle(Style style)
获取指定样式的序列
|
static void |
ReportXMLUtils.writeIndexStyle(XMLPrintWriter writer,
Style style)
输出样式
|