|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.pivot.util.poi.StyleFactory
public class StyleFactory
Nested Class Summary | |
---|---|
static class |
StyleFactory.FontProperty
|
Field Summary | |
---|---|
static short |
DEFAULT_BOLD_WEIGHT
|
static short |
DEFAULT_COLOR
|
static short |
DEFAULT_FONT_HEIGHT_IN_POINTS
|
static java.lang.String |
DEFAULT_FONT_NAME
|
static boolean |
DEFAULT_ITALIC
|
static boolean |
DEFAULT_STRIKEOUT
|
static short |
DEFAULT_TYPE_OFFSET
|
static byte |
DEFAULT_UNDERLINE
|
Constructor Summary | |
---|---|
StyleFactory(org.zkoss.poi.ss.usermodel.Workbook book)
|
Method Summary | |
---|---|
org.zkoss.poi.ss.usermodel.CellStyle |
cloneCellStyle(org.zkoss.poi.ss.usermodel.CellStyle source)
Create a new Cell style, and clones from source CellStyle |
org.zkoss.poi.ss.usermodel.CellStyle |
createCellStyle()
Create a new Cell style |
org.zkoss.poi.ss.usermodel.CellStyle |
createCellStyle(java.lang.String dateFormat)
Create a new Cell style with data format. |
short |
createDataFormat(java.lang.String format)
Creates a new DataFormat instance |
org.zkoss.poi.ss.usermodel.Font |
createFont()
Create a new Font. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFont(java.util.Map<StyleFactory.FontProperty,java.lang.Object> properties)
Finds a font that matches the one with the supplied attributes. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFont(short boldWeight,
short color,
short fontHeightInPoints,
java.lang.String name,
boolean italic,
boolean strikeout,
short typeOffset,
byte underline)
Finds a font that matches the one with the supplied attributes. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithBoldWeight(short fontBoldWeight)
Find font with bold attribute, if font not found, create a new Font with bold attribute |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithColor(short fontColor)
Find font with color attribute, if not found, create a new Font with color attribute. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithHeight(short fontHeightInPoints)
Find font with height attribute (in points), if not found, create a new Font with height attribute. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithItalic(boolean italic)
Find font with italic attribute, if not found, create a new Font with italic attribute. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithName(java.lang.String fontName)
Find font with font name, if not found, create a new Font with font name. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithStrikeout(boolean Strikeout)
Find font with strikeout attribute, if not found, create a new Font with strikeout attribute. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithTypeOffset(short typeOffset)
Find font with TypeOffset attribute, if not found, create a new Font with TypeOffset attribute. |
org.zkoss.poi.ss.usermodel.Font |
getOrCreateFontWithUnderline(byte underline)
Find font with underline attribute, if not found, create a new Font with underline attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short DEFAULT_BOLD_WEIGHT
public static final short DEFAULT_COLOR
public static final short DEFAULT_FONT_HEIGHT_IN_POINTS
public static final java.lang.String DEFAULT_FONT_NAME
public static final boolean DEFAULT_ITALIC
public static final boolean DEFAULT_STRIKEOUT
public static final short DEFAULT_TYPE_OFFSET
public static final byte DEFAULT_UNDERLINE
Constructor Detail |
---|
public StyleFactory(org.zkoss.poi.ss.usermodel.Workbook book)
Method Detail |
---|
public org.zkoss.poi.ss.usermodel.CellStyle createCellStyle()
public org.zkoss.poi.ss.usermodel.CellStyle cloneCellStyle(org.zkoss.poi.ss.usermodel.CellStyle source)
public org.zkoss.poi.ss.usermodel.CellStyle createCellStyle(java.lang.String dateFormat)
dateFormat
- public short createDataFormat(java.lang.String format)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFont(java.util.Map<StyleFactory.FontProperty,java.lang.Object> properties)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithBoldWeight(short fontBoldWeight)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithColor(short fontColor)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithHeight(short fontHeightInPoints)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithName(java.lang.String fontName)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithItalic(boolean italic)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithStrikeout(boolean Strikeout)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithTypeOffset(short typeOffset)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFontWithUnderline(byte underline)
public org.zkoss.poi.ss.usermodel.Font getOrCreateFont(short boldWeight, short color, short fontHeightInPoints, java.lang.String name, boolean italic, boolean strikeout, short typeOffset, byte underline)
public org.zkoss.poi.ss.usermodel.Font createFont()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |