public class StyleUtils
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static Style |
applyCellStyle(Style oldStyle,
Style newStyle,
Style changedStyle)
这个方法主要还是当弹出Dialog的时候,不要改变所有的CellStyle的风格.
|
static Style |
boldReportFont(Style style)
Bold Text.
|
static java.lang.String |
formatToPattern(java.text.Format format)
由于Format接口里面没有toPattern()这个方法,没有办法,只有判断所有的Format来获得toPattern,来获得当前的字符串.
|
static java.lang.String |
frFontToString(FRFont frFont)
peter:view of Font.
|
static Style |
italicReportFont(Style style)
italic Text.
|
static Style |
setReportFontForeground(Style style,
java.awt.Color foreground)
FRFont Foreground
|
static Style |
setReportFontName(Style style,
java.lang.String name)
Font name.
|
static Style |
setReportFontShadow(Style style,
boolean isShadow)
FRFont Shadow
|
static Style |
setReportFontSize(Style style,
float size)
Font size.
|
static Style |
setReportFontStrikethrough(Style style,
boolean isStrikethrough)
FRFont Strikethrough
|
static Style |
setReportFontStyle(Style style,
int fontStyle)
Font fontStyle.
|
static Style |
setReportFontUnderline(Style style,
boolean isMakeUnderline)
FRFont underline
|
static Style |
setReportFontUnderline2(Style style,
int underline)
FRFont underline
|
static Style |
setReportSubscript(Style style,
boolean isSubscript)
FRFont Subscript
|
static Style |
setReportSuperscript(Style style,
boolean isSuperscript)
FRFont Superscript
|
static Style |
unBoldReportFont(Style style)
UnBold Text.
|
static Style |
unItalicReportFont(Style style)
unitalic Text.
|
public static Style applyCellStyle(Style oldStyle, Style newStyle, Style changedStyle)
public static Style setReportFontName(Style style, java.lang.String name)
public static Style setReportFontStyle(Style style, int fontStyle)
public static Style setReportFontStrikethrough(Style style, boolean isStrikethrough)
public static Style setReportFontShadow(Style style, boolean isShadow)
public static Style setReportSuperscript(Style style, boolean isSuperscript)
public static Style setReportSubscript(Style style, boolean isSubscript)
public static Style setReportFontUnderline(Style style, boolean isMakeUnderline)
public static Style setReportFontUnderline2(Style style, int underline)
public static Style setReportFontForeground(Style style, java.awt.Color foreground)
public static java.lang.String formatToPattern(java.text.Format format)
public static java.lang.String frFontToString(FRFont frFont)