本文整理了Java中org.apache.poi.xssf.usermodel.XSSFColor.isAuto()
方法的一些代码示例,展示了XSSFColor.isAuto()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFColor.isAuto()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFColor
类名称:XSSFColor
方法名:isAuto
[英]A boolean value indicating the ctColor is automatic and system ctColor dependent.
[中]一个布尔值,指示ctColor是自动的,并且依赖于系统ctColor。
代码示例来源:origin: org.apache.poi/poi-ooxml
private boolean sameAuto(XSSFColor other) {
return isAuto() == other.isAuto();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
private boolean sameAuto(XSSFColor other) {
return isAuto() == other.isAuto();
}
代码示例来源:origin: zhangdaiscott/jeasypoi
public void styleColor(Formatter out, String attr, Color color) {
XSSFColor xSSFColor = (XSSFColor) color;
if (color == null || xSSFColor.isAuto())
return;
byte[] rgb = xSSFColor.getRgb();
if (rgb == null) {
return;
}
out.format(" %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
}
}
代码示例来源:origin: cn.afterturn/easypoi-base
@Override
public void styleColor(Formatter out, String attr, Color color) {
XSSFColor xSSFColor = (XSSFColor) color;
if (color == null || xSSFColor.isAuto()) {
return;
}
byte[] rgb = xSSFColor.getRGB();
if (rgb == null) {
return;
}
out.format(" %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
}
}
代码示例来源:origin: org.jeecg/easypoi-base
public void styleColor(Formatter out, String attr, Color color) {
XSSFColor xSSFColor = (XSSFColor) color;
if (color == null || xSSFColor.isAuto())
return;
byte[] rgb = xSSFColor.getRGB();
if (rgb == null) {
return;
}
out.format(" %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
}
}
代码示例来源:origin: xiaolanglang/easypoi
public void styleColor(Formatter out, String attr, Color color) {
XSSFColor xSSFColor = (XSSFColor) color;
if (color == null || xSSFColor.isAuto())
return;
byte[] rgb = xSSFColor.getRgb();
if (rgb == null) {
return;
}
out.format(" %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
}
}
代码示例来源:origin: org.apache.poi/poi-examples
private void styleColor(Formatter out, String attr, XSSFColor color) {
if (color == null || color.isAuto()) {
return;
}
byte[] rgb = color.getRGB();
if (rgb == null) {
return;
}
// This is done twice -- rgba is new with CSS 3, and browser that don't
// support it will ignore the rgba specification and stick with the
// solid color, which is declared first
out.format(" %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
byte[] argb = color.getARGB();
if (argb == null) {
return;
}
out.format(" %s: rgba(0x%02x, 0x%02x, 0x%02x, 0x%02x);%n", attr,
argb[3], argb[0], argb[1], argb[2]);
}
}
代码示例来源:origin: jbaliuka/x4j-analytic
protected Border createBorder(Rectangle fillArea, XSSFCellBorder.BorderSide borderSide, XSSFCellStyle cellStyle) {
DashPattern pattern = getBorderPattern(cellStyle, borderSide);
float width = getBorderWidth(getBorderStyle(cellStyle, borderSide));
Line line = getBorderLine(fillArea, borderSide);
ColorHelper helper = node.getColorHelper();
XSSFColor borderColor = cellStyle.getBorderColor(borderSide);
Color color = helper == null || borderColor.isAuto() ? Color.BLACK : helper.getAwtColor(borderColor);
return new Border(color, line, pattern, width);
}
内容来源于网络,如有侵权,请联系作者删除!