use of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder in project poi by apache.
the class XWPFTable method getInsideVBorderColor.
public String getInsideVBorderColor() {
String color = null;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideV()) {
CTBorder border = ctb.getInsideV();
color = border.xgetColor().getStringValue();
}
}
return color;
}
use of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder in project poi by apache.
the class XWPFTable method getInsideHBorderSize.
public int getInsideHBorderSize() {
int size = -1;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideH()) {
CTBorder border = ctb.getInsideH();
size = border.getSz().intValue();
}
}
return size;
}
use of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder in project poi by apache.
the class XWPFTable method getInsideHBorderSpace.
public int getInsideHBorderSpace() {
int space = -1;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideH()) {
CTBorder border = ctb.getInsideH();
space = border.getSpace().intValue();
}
}
return space;
}
use of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder in project poi by apache.
the class XWPFTable method getInsideHBorderColor.
public String getInsideHBorderColor() {
String color = null;
CTTblPr tblPr = getTrPr();
if (tblPr.isSetTblBorders()) {
CTTblBorders ctb = tblPr.getTblBorders();
if (ctb.isSetInsideH()) {
CTBorder border = ctb.getInsideH();
color = border.xgetColor().getStringValue();
}
}
return color;
}
use of org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder in project poi by apache.
the class XSSFCellBorder method getBorderStyle.
/**
* Get the type of border to use for the selected border
*
* @param side - - where to apply the color definition
* @return borderstyle - the type of border to use. default value is NONE if border style is not set.
* @see BorderStyle
*/
public BorderStyle getBorderStyle(BorderSide side) {
CTBorderPr ctBorder = getBorder(side);
STBorderStyle.Enum border = ctBorder == null ? STBorderStyle.NONE : ctBorder.getStyle();
return BorderStyle.values()[border.intValue() - 1];
}
Aggregations