Search in sources :

Example 1 with TextRecord

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

the class HSSFChart method createUnknownTextRecord.

private TextRecord createUnknownTextRecord() {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
    r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
    r.setDisplayMode(TextRecord.DISPLAY_MODE_TRANSPARENT);
    r.setRgbColor(0);
    r.setX(-37);
    r.setY(-60);
    r.setWidth(0);
    r.setHeight(0);
    r.setAutoColor(true);
    r.setShowKey(false);
    r.setShowValue(false);
    r.setVertical(false);
    r.setAutoGeneratedText(true);
    r.setGenerated(true);
    r.setAutoLabelDeleted(false);
    r.setAutoBackground(true);
    r.setRotation((short) 0);
    r.setShowCategoryLabelAsPercentage(false);
    r.setShowValueAsPercentage(false);
    r.setShowBubbleSizes(false);
    r.setShowLabel(false);
    r.setIndexOfColorValue((short) 77);
    r.setDataLabelPlacement((short) 11088);
    r.setTextRotation((short) 0);
    return r;
}
Also used : SeriesTextRecord(org.apache.poi.hssf.record.chart.SeriesTextRecord) TextRecord(org.apache.poi.hssf.record.chart.TextRecord)

Example 2 with TextRecord

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

the class HSSFChart method createAllTextRecord.

private TextRecord createAllTextRecord() {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
    r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
    r.setDisplayMode(TextRecord.DISPLAY_MODE_TRANSPARENT);
    r.setRgbColor(0);
    r.setX(-37);
    r.setY(-60);
    r.setWidth(0);
    r.setHeight(0);
    r.setAutoColor(true);
    r.setShowKey(false);
    r.setShowValue(true);
    r.setVertical(false);
    r.setAutoGeneratedText(true);
    r.setGenerated(true);
    r.setAutoLabelDeleted(false);
    r.setAutoBackground(true);
    r.setRotation((short) 0);
    r.setShowCategoryLabelAsPercentage(false);
    r.setShowValueAsPercentage(false);
    r.setShowBubbleSizes(false);
    r.setShowLabel(false);
    r.setIndexOfColorValue((short) 77);
    r.setDataLabelPlacement((short) 0);
    r.setTextRotation((short) 0);
    return r;
}
Also used : SeriesTextRecord(org.apache.poi.hssf.record.chart.SeriesTextRecord) TextRecord(org.apache.poi.hssf.record.chart.TextRecord)

Example 3 with TextRecord

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

the class HSSFChart method createTextRecord.

private TextRecord createTextRecord() {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
    r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
    r.setDisplayMode((short) 1);
    r.setRgbColor(0x00000000);
    r.setX(-37);
    r.setY(-60);
    r.setWidth(0);
    r.setHeight(0);
    r.setAutoColor(true);
    r.setShowKey(false);
    r.setShowValue(false);
    r.setVertical(false);
    r.setAutoGeneratedText(true);
    r.setGenerated(true);
    r.setAutoLabelDeleted(false);
    r.setAutoBackground(true);
    r.setRotation((short) 0);
    r.setShowCategoryLabelAsPercentage(false);
    r.setShowValueAsPercentage(false);
    r.setShowBubbleSizes(false);
    r.setShowLabel(false);
    r.setIndexOfColorValue((short) 77);
    r.setDataLabelPlacement((short) 0);
    r.setTextRotation((short) 0);
    return r;
}
Also used : SeriesTextRecord(org.apache.poi.hssf.record.chart.SeriesTextRecord) TextRecord(org.apache.poi.hssf.record.chart.TextRecord)

Aggregations

SeriesTextRecord (org.apache.poi.hssf.record.chart.SeriesTextRecord)3 TextRecord (org.apache.poi.hssf.record.chart.TextRecord)3