use of org.apache.poi.hssf.record.chart.AreaFormatRecord in project poi by apache.
the class HSSFChart method createAreaFormatRecord2.
private AreaFormatRecord createAreaFormatRecord2() {
AreaFormatRecord r = new AreaFormatRecord();
r.setForegroundColor(0x00c0c0c0);
r.setBackgroundColor(0x00000000);
r.setPattern((short) 1);
r.setAutomatic(false);
r.setInvert(false);
r.setForecolorIndex((short) 22);
r.setBackcolorIndex((short) 79);
return r;
}
use of org.apache.poi.hssf.record.chart.AreaFormatRecord in project poi by apache.
the class HSSFChart method createAreaFormatRecord1.
private AreaFormatRecord createAreaFormatRecord1() {
AreaFormatRecord r = new AreaFormatRecord();
// RGB Color
r.setForegroundColor(16777215);
// RGB Color
r.setBackgroundColor(0);
// TODO: Add Pattern constants to record
r.setPattern((short) 1);
r.setAutomatic(true);
r.setInvert(false);
r.setForecolorIndex((short) 78);
r.setBackcolorIndex((short) 77);
return r;
}
Aggregations