public final class BorderCode extends java.lang.Object implements Duplicatable
Modifier and Type | Field and Description |
---|---|
static int |
SIZE |
Constructor and Description |
---|
BorderCode() |
BorderCode(BorderCode other) |
BorderCode(byte[] buf, int offset) |
Modifier and Type | Method and Description |
---|---|
BorderCode |
copy() |
boolean |
equals(java.lang.Object o) |
int |
getBorderType()
Border type code: 0 none 1 single 2 thick 3 double 5 hairline 6 dot 7 dash large gap 8 dot dash 9 dot dot dash 10 triple 11 thin-thick small gap 12 thick-thin small gap 13 thin-thick-thin small gap 14 thin-thick medium gap 15 thick-thin medium gap 16 thin-thick-thin medium gap 17 thin-thick large gap 18 thick-thin large gap 19 thin-thick-thin large gap 20 wave 21 double wave 22 dash small gap 23 dash dot stroked 24 emboss 3D 25 engrave 3D codes 64 - 230 represent border art types and are used only for page borders
(边框类型代码:0无1单2粗3双5发纹6点7划大间隙8点划9点点划10三重11细-粗小间隙12粗-细小间隙13细-粗-细小间隙14薄厚中间隔15厚薄中间隔16薄厚中间隔17薄厚大间隔18厚薄大间隔19薄厚薄大间隔20波浪21双波浪22划线小缺口23划线点描边 24 浮雕 3D 25 雕刻 3D 代码 64 - 230 代表边框艺术类型,仅用于页面边框)
|
short |
getColor()
Color: 0 Auto 1 Black 2 Blue 3 Cyan 4 Green 5 Magenta 6 Red 7 Yellow 8 White 9 DkBlue 10 DkCyan 11 DkGreen 12 DkMagenta 13 DkRed 14 DkYellow 15 DkGray 16 LtGray
(颜色:0 自动 1 黑色 2 蓝色 3 青色 4 绿色 5 品红色 6 红色 7 黄色 8 白色 9 DkBlue 10 DkCyan 11 DkGreen 12 DkMagenta 13 DkRed 14 DkYellow 15 DkGray 16 LtGray)
|
int |
getLineWidth()
Width of a single line in 1/8 pt, max of 32 pt.
(单行宽度为 1/8 pt,最大为 32 pt。)
|
int |
getSpace()
Width of space to maintain between border and text within border.
(在边框和边框内的文本之间保持的空间宽度。)
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isFrame()
Don't reverse the border.
(不要颠倒边界。)
|
boolean |
isShadow()
When true, border is drawn with shadow Must be false when BRC is a substructure of the TC.
(当为 true 时,用阴影绘制边框 当 BRC 是 TC 的子结构时,必须为 false。)
|
void |
serialize(byte[] buf, int offset) |
void |
setBorderType(int borderType) |
void |
setColor(short color) |
void |
setFrame(boolean frame) |
void |
setLineWidth(int lineWidth) |
void |
setShadow(boolean shadow) |
void |
setSpace(int space) |
int |
toInt() |
java.lang.String |
toString() |
public static final int SIZE
public BorderCode()
public BorderCode(BorderCode other)
public BorderCode(byte[] buf, int offset)
public void serialize(byte[] buf, int offset)
public int toInt()
public boolean isEmpty()
public boolean equals(java.lang.Object o)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object
public BorderCode copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth
- the width of the line to set
(lineWidth - 要设置的线的宽度)
public int getBorderType()
public void setBorderType(int borderType)
public short getColor()
public void setColor(short color)
public int getSpace()
Must be 0 when BRC is a substructure of TC.
Stored in points.
(在边框和边框内的文本之间保持的空间宽度。当 BRC 是 TC 的子结构时必须为 0。存储在点中。)public void setSpace(int space)
public boolean isShadow()
public void setShadow(boolean shadow)
public boolean isFrame()
public void setFrame(boolean frame)
public java.lang.String toString()
toString
in class
java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.