public class OChartDoc extends OPropObj
| Modifier and Type | Class and Description |
|---|---|
class |
OChartDoc.Axis
A chart axis.
|
static class |
OChartDoc.AxisId
Enumeration of chart axes.
|
static class |
OChartDoc.AxisScalingType
Enumeration of chart scaling.
|
static class |
OChartDoc.AxisType
Enumeration of chart axis types.
|
class |
OChartDoc.Background
A chart background.
|
static class |
OChartDoc.BasicType
Enumeration of basic chart types (not all types).
|
static class |
OChartDoc.DataPointSymbol
Enumeration of data point symbols.
|
class |
OChartDoc.DataSeries
A chart data series.
|
static class |
OChartDoc.LabelsLocation
Enumeration of chart label locations.
|
class |
OChartDoc.Legend
A chart legend.
|
static class |
OChartDoc.Shape3D
Enumeration of 3-dimension shapes.
|
class |
OChartDoc.Title
A chart title.
|
class |
OChartDoc.Wall
A chart wall.
|
| Constructor and Description |
|---|
OChartDoc(OChartDoc.BasicType type,
OCalcDoc.Sheet chartSheet,
OCalcDoc.Sheet dataSheet,
OCalcDoc.Sheet.CellRange[] dataRanges,
ODrawArea drawArea,
OChartDoc.LabelsLocation labels,
java.lang.String name)
Constructs a basic type of chart.
|
OChartDoc(java.lang.String type,
OCalcDoc.Sheet chartSheet,
OCalcDoc.Sheet dataSheet,
OCalcDoc.Sheet.CellRange[] dataRanges,
ODrawArea drawArea,
OChartDoc.LabelsLocation labels,
java.lang.String name)
Constructs any type of chart.
|
| Modifier and Type | Method and Description |
|---|---|
OChartDoc.DataSeries[] |
allDataSeries()
Returns all data series for the chart.
|
java.lang.String[] |
availTypes()
Returns the names of all available chart types.
|
OChartDoc.Axis |
axis(OChartDoc.AxisId type)
Returns an axis of the chart.
|
OChartDoc.Background |
background()
Returns the chart's background.
|
OChartDoc.Legend |
legend()
Returns the chart's legend.
|
java.lang.String |
name()
Returns the chart's name.
|
void |
setDataRanges(OCalcDoc.Sheet.CellRange[] ranges)
Sets the data cell ranges for the chart.
|
void |
setType(OChartDoc.BasicType type)
Sets the chart type to a basic type.
|
void |
setType(java.lang.String type)
Sets the chart type to any available type.
|
void |
showYErrorBars(java.lang.String dataSeries,
OCalcDoc.Sheet dataSheet,
OCalcDoc.Sheet.CellRange errDataRange,
OUtil.LineProps props)
Shows error bars on a scatter chart.
|
OChartDoc.Title |
title()
Returns the chart's title.
|
java.lang.String |
type()
Returns the chart's type (one of the names returned by availTypes()).
|
OChartDoc.Wall |
wall()
Returns the chart's wall.
|
com.sun.star.chart2.XChartDocument |
xGetXDoc()
Gets the XChartDocument object.
|
logProps, xGetPropSetpublic OChartDoc(OChartDoc.BasicType type, OCalcDoc.Sheet chartSheet, OCalcDoc.Sheet dataSheet, OCalcDoc.Sheet.CellRange[] dataRanges, ODrawArea drawArea, OChartDoc.LabelsLocation labels, java.lang.String name) throws com.sun.star.uno.Exception
type - the basic typechartSheet - the sheet that contains the chartdataSheet - the sheet that contains the data for the chart (may be the chartSheet)dataRanges - the cell ranges of the datadrawArea - the area in which to display the chartlabels - the location of the chart labelsname - the chart namecom.sun.star.uno.Exceptionpublic OChartDoc(java.lang.String type,
OCalcDoc.Sheet chartSheet,
OCalcDoc.Sheet dataSheet,
OCalcDoc.Sheet.CellRange[] dataRanges,
ODrawArea drawArea,
OChartDoc.LabelsLocation labels,
java.lang.String name)
throws com.sun.star.uno.Exception
type - the typechartSheet - the sheet that contains the chartdataSheet - the sheet that contains the data for the chart (may be the chartSheet)dataRanges - the cell ranges of the datadrawArea - the area in which to display the chartlabels - the location of the chart labelsname - the chart namecom.sun.star.uno.Exceptionpublic java.lang.String type()
public java.lang.String name()
public OChartDoc.Title title() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic OChartDoc.Legend legend() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic OChartDoc.Background background() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic OChartDoc.Wall wall() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic OChartDoc.Axis axis(OChartDoc.AxisId type) throws com.sun.star.uno.Exception
type - the axis typecom.sun.star.uno.Exceptionpublic OChartDoc.DataSeries[] allDataSeries() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic java.lang.String[] availTypes()
throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic void setType(OChartDoc.BasicType type) throws com.sun.star.uno.Exception
type - the basic typecom.sun.star.uno.Exceptionpublic void setType(java.lang.String type)
throws com.sun.star.uno.Exception
type - the basic typecom.sun.star.uno.Exceptionpublic void setDataRanges(OCalcDoc.Sheet.CellRange[] ranges) throws com.sun.star.uno.Exception
ranges - the data cell rangescom.sun.star.uno.Exceptionpublic void showYErrorBars(java.lang.String dataSeries,
OCalcDoc.Sheet dataSheet,
OCalcDoc.Sheet.CellRange errDataRange,
OUtil.LineProps props)
throws com.sun.star.uno.Exception
dataSeries - the name of the Y axis data seriesdataSheet - the sheet that contains the data for the charterrDataRange - the cell range that contains the errors, which must be one-sided not two-sidedprops - the line properties for the error bars. If null, default properties are used.com.sun.star.uno.Exceptionpublic com.sun.star.chart2.XChartDocument xGetXDoc()