Search in sources :

Example 1 with AreaFormatRecord

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;
}
Also used : AreaFormatRecord(org.apache.poi.hssf.record.chart.AreaFormatRecord)

Example 2 with AreaFormatRecord

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;
}
Also used : AreaFormatRecord(org.apache.poi.hssf.record.chart.AreaFormatRecord)

Aggregations

AreaFormatRecord (org.apache.poi.hssf.record.chart.AreaFormatRecord)2