org.apache.poi.hssf.usermodel
public final class HSSFChart extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
HSSFChart.HSSFSeries
A series in a chart
|
Modifier and Type | Method and Description |
---|---|
void |
createBarChart(HSSFWorkbook workbook,
HSSFSheet sheet)
Creates a bar chart.
|
int |
getChartHeight()
Get the height of the chart.
|
java.lang.String |
getChartTitle()
Returns the chart's title, if there is one,
or null if not
|
int |
getChartWidth()
Get the width of the chart.
|
int |
getChartX()
Get the X offset of the chart
|
int |
getChartY()
Get the Y offset of the chart
|
HSSFChart.HSSFSeries[] |
getSeries()
Returns the series of the chart
|
static HSSFChart[] |
getSheetCharts(HSSFSheet sheet)
Returns all the charts for the given sheet.
|
void |
setChartHeight(int height)
Sets the height of the chart.
|
void |
setChartTitle(java.lang.String title)
Changes the chart's title, but only if there
was one already.
|
void |
setChartWidth(int width)
Sets the width of the chart.
|
void |
setChartX(int x)
Sets the X offset of the chart
|
void |
setChartY(int y)
Sets the Y offset of the chart
|
public void createBarChart(HSSFWorkbook workbook, HSSFSheet sheet)
NOTE: Does not yet work... checking it in just so others can take a look.
public static HSSFChart[] getSheetCharts(HSSFSheet sheet)
public int getChartX()
public int getChartY()
public int getChartWidth()
ChartRecord
public int getChartHeight()
ChartRecord
public void setChartX(int x)
public void setChartY(int y)
public void setChartWidth(int width)
ChartRecord
public void setChartHeight(int height)
ChartRecord
public HSSFChart.HSSFSeries[] getSeries()
public java.lang.String getChartTitle()
public void setChartTitle(java.lang.String title)
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.