public final class BorderFormatting extends java.lang.Object implements Duplicatable, GenericRecord
Modifier and Type | Field and Description |
---|---|
static short |
BORDER_DASH_DOT
dash-dot border
(点划线边框)
|
static short |
BORDER_DASH_DOT_DOT
dash-dot-dot border
(点划线边框)
|
static short |
BORDER_DASHED
dash border
(虚线边框)
|
static short |
BORDER_DOTTED
hair-line border
(发际线边框)
|
static short |
BORDER_DOUBLE
double-line border
(双线边框)
|
static short |
BORDER_HAIR
dot border
(点边框)
|
static short |
BORDER_MEDIUM
Medium border
(中等边框)
|
static short |
BORDER_MEDIUM_DASH_DOT
medium dash-dot border
(中点划线边框)
|
static short |
BORDER_MEDIUM_DASH_DOT_DOT
medium dash-dot-dot border
(中等点划线边框)
|
static short |
BORDER_MEDIUM_DASHED
Medium dashed border
(中等虚线边框)
|
static short |
BORDER_NONE
No border
(无边界)
|
static short |
BORDER_SLANTED_DASH_DOT
slanted dash-dot border
(倾斜的点划线边框)
|
static short |
BORDER_THICK
Thick border
(粗边框)
|
static short |
BORDER_THIN
Thin border
(细边框)
|
Constructor and Description |
---|
BorderFormatting() |
BorderFormatting(BorderFormatting other) |
BorderFormatting(LittleEndianInput in)
Creates new FontFormatting
|
Modifier and Type | Method and Description |
---|---|
BorderFormatting |
copy() |
int |
getBorderBottom()
get the type of border to use for the bottom border of the cell
(获取用于单元格底部边框的边框类型)
|
int |
getBorderDiagonal()
get the type of border to use for the diagonal border of the cell
(获取用于单元格对角线边框的边框类型)
|
int |
getBorderLeft()
get the type of border to use for the left border of the cell
(获取用于单元格左边框的边框类型)
|
int |
getBorderRight()
get the type of border to use for the right border of the cell
(获取用于单元格右边框的边框类型)
|
int |
getBorderTop()
get the type of border to use for the top border of the cell
(获取用于单元格顶部边框的边框类型)
|
int |
getBottomBorderColor()
get the color to use for the bottom border
(获取用于底部边框的颜色)
|
int |
getDataLength() |
int |
getDiagonalBorderColor()
get the color to use for the diagonal border
(获取用于对角线边框的颜色)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getLeftBorderColor()
get the color to use for the left border
(获取用于左边框的颜色)
|
int |
getRightBorderColor()
get the color to use for the right border
(获取用于右边框的颜色)
|
int |
getTopBorderColor()
get the color to use for the top border
(获取用于上边框的颜色)
|
boolean |
isBackwardDiagonalOn() |
boolean |
isForwardDiagonalOn() |
int |
serialize(int offset, byte[] data) |
void |
serialize(LittleEndianOutput out) |
void |
setBackwardDiagonalOn(boolean on)
Of/off top left to bottom right line
(离开/离开左上角到右下角线)
|
void |
setBorderBottom(int border)
set the type of border to use for the bottom border of the cell
(设置用于单元格底部边框的边框类型)
|
void |
setBorderDiagonal(int border)
set the type of border to use for the diagonal border of the cell
(设置用于单元格对角线边框的边框类型)
|
void |
setBorderLeft(int border)
set the type of border to use for the left border of the cell
(设置用于单元格左边框的边框类型)
|
void |
setBorderRight(int border)
set the type of border to use for the right border of the cell
(设置用于单元格右边框的边框类型)
|
void |
setBorderTop(int border)
set the type of border to use for the top border of the cell
(设置用于单元格顶部边框的边框类型)
|
void |
setBottomBorderColor(int color)
set the color to use for the bottom border
(设置用于底部边框的颜色)
|
void |
setDiagonalBorderColor(int color)
set the color to use for the diagonal borders
(设置用于对角线边框的颜色)
|
void |
setForwardDiagonalOn(boolean on)
Of/off bottom left to top right line
(从/关闭左下角到右上角线)
|
void |
setLeftBorderColor(int color)
set the color to use for the left border
(设置用于左边框的颜色)
|
void |
setRightBorderColor(int color)
set the color to use for the right border
(设置用于右边框的颜色)
|
void |
setTopBorderColor(int color)
set the color to use for the top border
(设置用于上边框的颜色)
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public static final short BORDER_NONE
public static final short BORDER_THIN
public static final short BORDER_MEDIUM
public static final short BORDER_DASHED
public static final short BORDER_HAIR
public static final short BORDER_THICK
public static final short BORDER_DOUBLE
public static final short BORDER_DOTTED
public static final short BORDER_MEDIUM_DASHED
public static final short BORDER_DASH_DOT
public static final short BORDER_MEDIUM_DASH_DOT
public static final short BORDER_DASH_DOT_DOT
public static final short BORDER_MEDIUM_DASH_DOT_DOT
public static final short BORDER_SLANTED_DASH_DOT
public BorderFormatting()
public BorderFormatting(BorderFormatting other)
public BorderFormatting(LittleEndianInput in)
public int getDataLength()
public void setBorderLeft(int border)
border
- type
(边框类型)
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public int getBorderLeft()
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public void setBorderRight(int border)
border
- type
(边框类型)
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public int getBorderRight()
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public void setBorderTop(int border)
border
- type
(边框类型)
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public int getBorderTop()
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public void setBorderBottom(int border)
border
- type
(边框类型)
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public int getBorderBottom()
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public void setBorderDiagonal(int border)
border
- type
(边框类型)
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public int getBorderDiagonal()
BORDER_NONE
,
BORDER_THIN
,
BORDER_MEDIUM
,
BORDER_DASHED
,
BORDER_DOTTED
,
BORDER_THICK
,
BORDER_DOUBLE
,
BORDER_HAIR
,
BORDER_MEDIUM_DASHED
,
BORDER_DASH_DOT
,
BORDER_MEDIUM_DASH_DOT
,
BORDER_DASH_DOT_DOT
,
BORDER_MEDIUM_DASH_DOT_DOT
,
BORDER_SLANTED_DASH_DOT
public void setLeftBorderColor(int color)
color
- The index of the color definition
(color - 颜色定义的索引)
public int getLeftBorderColor()
HSSFPalette.getColor(short)
public void setRightBorderColor(int color)
color
- The index of the color definition
(color - 颜色定义的索引)
public int getRightBorderColor()
HSSFPalette.getColor(short)
public void setTopBorderColor(int color)
color
- The index of the color definition
(color - 颜色定义的索引)
public int getTopBorderColor()
HSSFPalette.getColor(short)
public void setBottomBorderColor(int color)
color
- The index of the color definition
(color - 颜色定义的索引)
public int getBottomBorderColor()
HSSFPalette.getColor(short)
public void setDiagonalBorderColor(int color)
color
- The index of the color definition
(color - 颜色定义的索引)
public int getDiagonalBorderColor()
HSSFPalette.getColor(short)
public void setForwardDiagonalOn(boolean on)
on
- - if
true
- on, otherwise off
(on - - 如果为真 - 打开,否则关闭)
public void setBackwardDiagonalOn(boolean on)
on
- - if
true
- on, otherwise off
(on - - 如果为真 - 打开,否则关闭)
public boolean isForwardDiagonalOn()
true
if forward diagonal is on
(如果前对角线打开,则为真)
public boolean isBackwardDiagonalOn()
true
if backward diagonal is on
(如果向后对角线打开,则为真)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
public java.lang.String toString()
toString
in class
java.lang.Object
public BorderFormatting copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public int serialize(int offset, byte[] data)
public void serialize(LittleEndianOutput out)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.