public class FontStream extends Object
Constructor and Description |
---|
FontStream(org.apache.poi.ss.usermodel.Workbook workbook) |
FontStream(org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Font font) |
Modifier and Type | Method and Description |
---|---|
FontStream |
ansiCharset()
设置系统编码
|
FontStream |
black()
设置黑色
|
FontStream |
blue()
设置蓝色
|
FontStream |
bold()
设置加粗
|
FontStream |
bold(boolean set)
设置加粗
|
FontStream |
bottomOffset()
设置偏移到底部
|
FontStream |
charset(int charset)
设置编码
|
FontStream |
color(byte[] c)
设置颜色
|
FontStream |
color(int c)
设置颜色
|
FontStream |
color(short index,
byte[] c)
设置颜色
|
FontStream |
color(short index,
String c)
设置颜色
|
FontStream |
color(String c)
设置颜色
|
FontStream |
defaultCharset()
设置默认编码
|
FontStream |
deleteLine()
设置删除线
|
FontStream |
deleteLine(boolean set)
设置删除线
|
FontStream |
family(int i)
设置字体家族
|
static FontStream |
fontStream(org.apache.poi.ss.usermodel.Workbook workbook)
获取 FontStream
|
static FontStream |
fontStream(org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Font font)
获取 FontStream
|
int |
getCharset()
获取编码格式
|
short |
getColor()
获取颜色编码
|
int |
getFamily()
获取字体家族
|
org.apache.poi.ss.usermodel.Font |
getFont() |
String |
getFontName()
获取字体名称
|
int |
getFontSize()
获取字体大小
|
short |
getOffsetType()
获取偏移类型
|
int |
getScheme()
获取属性
|
int |
getThemeColor()
获取主题颜色
|
byte |
getUnderLineType()
获取下滑线类型
|
org.apache.poi.ss.usermodel.Workbook |
getWorkbook() |
FontStream |
indigo()
设置靛青色
|
boolean |
isBold()
是否为加粗字体
|
boolean |
isDelete()
是否为删除线
|
boolean |
isItalic()
是否为斜体
|
FontStream |
italic()
设置斜体
|
FontStream |
italic(boolean set)
设置斜体
|
FontStream |
name(String name)
设置字体名称
|
static org.apache.poi.ss.usermodel.Font |
parseFont(org.apache.poi.ss.usermodel.Workbook workbook,
FontOption option)
解析 font
|
FontStream |
pink()
设置粉色
|
FontStream |
red()
设置红色
|
FontStream |
scheme(int i)
设置属性
|
FontStream |
size(int size)
设置字体大小
|
FontStream |
symbolCharset()
设置符号编码
|
FontStream |
themesColor(int i)
设置主题颜色
|
FontStream |
themesTable(org.apache.poi.xssf.model.ThemesTable table)
设置主题表格
|
FontStream |
topOffset()
设置偏移到顶部
|
FontStream |
typeOffset(int offset)
设置偏移
|
FontStream |
underDoubleLine()
设置双下划线
|
FontStream |
underLine()
设置下滑线
|
FontStream |
underLine(int line)
设置下滑线
|
FontStream |
unsetBold()
不设置加粗
|
FontStream |
unsetDeleteLine()
不设置删除线
|
FontStream |
unsetFamily()
不设置字体家族
|
FontStream |
unsetItalic()
不设置斜体
|
FontStream |
unsetOffset()
不设置偏移
|
FontStream |
unsetScheme()
设置属性
|
FontStream |
unsetUnderLine()
不设置下滑线
|
public FontStream(org.apache.poi.ss.usermodel.Workbook workbook)
public FontStream(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Font font)
public static FontStream fontStream(org.apache.poi.ss.usermodel.Workbook workbook)
workbook
- Workbookpublic static FontStream fontStream(org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Font font)
workbook
- Workbookfont
- Fontpublic static org.apache.poi.ss.usermodel.Font parseFont(org.apache.poi.ss.usermodel.Workbook workbook, FontOption option)
workbook
- workbookoption
- optionpublic FontStream name(String name)
name
- 名称public FontStream size(int size)
size
- sizepublic FontStream deleteLine()
public FontStream unsetDeleteLine()
public FontStream deleteLine(boolean set)
set
- 是否设置public FontStream underLine()
public FontStream unsetUnderLine()
public FontStream underLine(int line)
line
- 下滑线类型public FontStream underDoubleLine()
public FontStream italic()
public FontStream unsetItalic()
public FontStream italic(boolean set)
set
- 是否设置public FontStream bold()
public FontStream unsetBold()
public FontStream bold(boolean set)
set
- 是否设置public FontStream typeOffset(int offset)
offset
- 0不偏移 1顶部偏移 2底部偏移public FontStream unsetOffset()
public FontStream topOffset()
public FontStream bottomOffset()
public FontStream charset(int charset)
charset
- 0系统 1默认 2符号public FontStream ansiCharset()
public FontStream defaultCharset()
public FontStream symbolCharset()
public FontStream color(int c)
public FontStream color(byte[] c)
c
- rgbpublic FontStream color(short index, byte[] c)
index
- 调色板颜色覆盖索引c
- rgbpublic FontStream color(String c)
c
- #public FontStream color(short index, String c)
index
- 调色板颜色覆盖索引c
- #public FontStream blue()
public FontStream black()
public FontStream red()
public FontStream pink()
public FontStream indigo()
public FontStream family(int i)
i
- NOT_APPLICABLE 0
ROMAN 1
SWISS 2
MODERN 3
SCRIPT 4
DECORATIVE 5public FontStream unsetFamily()
public FontStream scheme(int i)
i
- NONE 1
MAJOR 2
MINOR 3public FontStream unsetScheme()
public FontStream themesTable(org.apache.poi.xssf.model.ThemesTable table)
table
- tablepublic FontStream themesColor(int i)
i
- 颜色public org.apache.poi.ss.usermodel.Workbook getWorkbook()
public org.apache.poi.ss.usermodel.Font getFont()
public int getFontSize()
public String getFontName()
public boolean isBold()
public boolean isItalic()
public boolean isDelete()
public byte getUnderLineType()
public int getCharset()
public short getOffsetType()
public short getColor()
public int getFamily()
public int getScheme()
public int getThemeColor()
Copyright © 2024. All rights reserved.