Search in sources :

Example 1 with LineFormatRecord

use of org.apache.poi.hssf.record.chart.LineFormatRecord in project poi by apache.

the class HSSFChart method createLineFormatRecord.

private LineFormatRecord createLineFormatRecord(boolean drawTicks) {
    LineFormatRecord r = new LineFormatRecord();
    r.setLineColor(0);
    r.setLinePattern(LineFormatRecord.LINE_PATTERN_SOLID);
    r.setWeight((short) -1);
    r.setAuto(true);
    r.setDrawTicks(drawTicks);
    // what colour is this?
    r.setColourPaletteIndex((short) 77);
    return r;
}
Also used : AxisLineFormatRecord(org.apache.poi.hssf.record.chart.AxisLineFormatRecord) LineFormatRecord(org.apache.poi.hssf.record.chart.LineFormatRecord)

Example 2 with LineFormatRecord

use of org.apache.poi.hssf.record.chart.LineFormatRecord in project poi by apache.

the class HSSFChart method createLineFormatRecord2.

private LineFormatRecord createLineFormatRecord2() {
    LineFormatRecord r = new LineFormatRecord();
    r.setLineColor(0x00808080);
    r.setLinePattern((short) 0);
    r.setWeight((short) 0);
    r.setAuto(false);
    r.setDrawTicks(false);
    r.setUnknown(false);
    r.setColourPaletteIndex((short) 23);
    return r;
}
Also used : AxisLineFormatRecord(org.apache.poi.hssf.record.chart.AxisLineFormatRecord) LineFormatRecord(org.apache.poi.hssf.record.chart.LineFormatRecord)

Aggregations

AxisLineFormatRecord (org.apache.poi.hssf.record.chart.AxisLineFormatRecord)2 LineFormatRecord (org.apache.poi.hssf.record.chart.LineFormatRecord)2