public class Border extends Object
BorderStyle.
The default border color is #333333 in EECBorderStyle| 构造器和说明 |
|---|
Border() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static Border |
parse(String text)
The setting order is top -> right -> bottom -> left, the
attribute order is style-name + color, if the orientation setting
is not complete, the unset orientation has no border.
|
Border |
setBorder(BorderStyle style)
Setting top-right-bottom-left line style
|
Border |
setBorder(BorderStyle style,
Color color)
Setting top-right-bottom-left line style
|
Border |
setBorderBottom(BorderStyle style)
Bottom line style
|
Border |
setBorderBottom(BorderStyle style,
Color color)
Bottom line style
|
Border |
setBorderLeft(BorderStyle style)
Left line style
|
Border |
setBorderLeft(BorderStyle style,
Color color)
Left line style
|
Border |
setBorderRight(BorderStyle style)
Right line style
|
Border |
setBorderRight(BorderStyle style,
Color color)
Right line style
|
Border |
setBorderTop(BorderStyle style)
Top line style
|
Border |
setBorderTop(BorderStyle style,
Color color)
Top line style
|
Border |
setDiagonal(BorderStyle style)
Setting top-left to bottom-right and bottom-left to top-right line style [X]
|
Border |
setDiagonal(BorderStyle style,
Color color)
Setting top-left to bottom-right and bottom-left to top-right line style [X]
|
Border |
setDiagonalDown(BorderStyle style)
Top-left to bottom-right line style [\]
|
Border |
setDiagonalDown(BorderStyle style,
Color color)
Top-left to bottom-right line style [\]
|
Border |
setDiagonalUp(BorderStyle style)
Bottom-left to top-right line style [/]
|
Border |
setDiagonalUp(BorderStyle style,
Color color)
Bottom-left to top-right line style [/]
|
org.dom4j.Element |
toDom4j(org.dom4j.Element root) |
protected void |
writeProperties(org.dom4j.Element element,
org.ttzero.excel.entity.style.Border.SubBorder subBorder) |
public Border setBorderTop(BorderStyle style)
style - the BorderStyleBorderpublic Border setBorderRight(BorderStyle style)
style - the BorderStyleBorderpublic Border setBorderBottom(BorderStyle style)
style - the BorderStyleBorderpublic Border setBorderLeft(BorderStyle style)
style - the BorderStyleBorderpublic Border setDiagonalDown(BorderStyle style)
style - the BorderStyleBorderpublic Border setDiagonalUp(BorderStyle style)
style - the BorderStyleBorderpublic Border setBorder(BorderStyle style)
style - the BorderStyleBorderpublic Border setDiagonal(BorderStyle style)
style - the BorderStyleBorderpublic Border setBorderTop(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setBorderRight(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setBorderBottom(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setBorderLeft(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setDiagonalDown(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setDiagonalUp(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setDiagonal(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic Border setBorder(BorderStyle style, Color color)
style - the BorderStylecolor - the border ColorBorderpublic static Border parse(String text)
eq:
thin red
thin red thin dashed dashed
medium black thick #cccccc double black hair green
none none thin thin
text - the border valueBorderpublic org.dom4j.Element toDom4j(org.dom4j.Element root)
protected void writeProperties(org.dom4j.Element element,
org.ttzero.excel.entity.style.Border.SubBorder subBorder)
Copyright © 2022. All rights reserved.