Modifier and Type | Class and Description |
---|---|
static class |
HSSFChart.HSSFChartType |
class |
HSSFChart.HSSFSeries
A series in a chart
|
Constructor and Description |
---|
HSSFChart(HSSFSheet sheet,
ChartRecord chart,
LegendRecord legend,
ChartTitleFormatRecord chartTitleFormat,
SeriesTextRecord chartTitleText,
java.util.List<java.lang.Object[]> seriesList,
java.util.List<ValueRangeRecord> valueRanges,
Record chartType,
Chart3DRecord chart3d,
TextRecord titleTextRecord) |
Modifier and Type | Method and Description |
---|---|
void |
createBarChart(HSSFWorkbook workbook,
HSSFSheet sheet)
Creates a bar chart.
|
HSSFChart.HSSFSeries |
createSeries() |
Chart3DRecord |
getChart3D() |
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
|
int |
getLegendPos() |
HSSFChart.HSSFSeries[] |
getSeries()
Returns the series of the chart
|
Record |
getShapeRecord() |
static HSSFChart[] |
getSheetCharts(HSSFSheet sheet)
Returns all the charts for the given sheet.
|
HSSFChart.HSSFChartType |
getType() |
boolean |
hasLegend() |
boolean |
isAutoTitleDeleted() |
boolean |
removeSeries(HSSFChart.HSSFSeries series) |
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
|
void |
setValueRange(int axisIndex,
java.lang.Double minimum,
java.lang.Double maximum,
java.lang.Double majorUnit,
java.lang.Double minorUnit)
Set value range (basic Axis Options)
|
public HSSFChart(HSSFSheet sheet, ChartRecord chart, LegendRecord legend, ChartTitleFormatRecord chartTitleFormat, SeriesTextRecord chartTitleText, java.util.List<java.lang.Object[]> seriesList, java.util.List<ValueRangeRecord> valueRanges, Record chartType, Chart3DRecord chart3d, TextRecord titleTextRecord)
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)
public void setValueRange(int axisIndex, java.lang.Double minimum, java.lang.Double maximum, java.lang.Double majorUnit, java.lang.Double minorUnit)
axisIndex
- 0 - primary axis, 1 - secondary axisminimum
- minimum value; Double.NaN - automatic; null - no changemaximum
- maximum value; Double.NaN - automatic; null - no changemajorUnit
- major unit value; Double.NaN - automatic; null - no changeminorUnit
- minor unit value; Double.NaN - automatic; null - no changepublic HSSFChart.HSSFSeries createSeries() throws java.lang.Exception
java.lang.Exception
public boolean removeSeries(HSSFChart.HSSFSeries series)
public HSSFChart.HSSFChartType getType()
public Chart3DRecord getChart3D()
public Record getShapeRecord()
public boolean hasLegend()
public int getLegendPos()
public boolean isAutoTitleDeleted()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.