Class ChartBody
java.lang.Object
com.independentsoft.office.odf.charts.ChartBody
- All Implemented Interfaces:
IContentElement
Represents chart content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Returns all content elements.Gets the height of the entire chart.Gets the legend for a chart.Returns the parent content element.Gets the coordinate system in which data is plotted including defined axes.getStyle()Gets the names that reference style mechanisms.Gets the subtitle for a chart.getTable()Gets the root element for a table.getTitle()Gets the title in a chart document.getType()Gets the chart type.getWidth()Gets the width of the entire chart.voidSets the height of the entire chart.voidSets the legend for a chart.voidsetParent(IContentElement parent)Sets the parent content element.voidsetPlotArea(PlotArea plotArea)Sets the coordinate system in which data is plotted including defined axes.voidSets the names that reference style mechanisms.voidsetSubtitle(Subtitle subtitle)Sets the subtitle for a chart.voidSets the root element for a table.voidSets the title in a chart document.voidSets the chart type.voidSets the width of the entire chart.toString()Converts the value of the current ChartBody object to its equivalent string representation.
-
Constructor Details
-
ChartBody
public ChartBody()Instantiates a new chart body.
-
-
Method Details
-
getContentElements
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current ChartBody object to its equivalent string representation. -
getWidth
Gets the width of the entire chart. If it is omitted, the size of the chart is determined by the size of the window in which the chart is displayed.- Returns:
- the width
-
setWidth
Sets the width of the entire chart. If it is omitted, the size of the chart is determined by the size of the window in which the chart is displayed.- Parameters:
width- the new width
-
getHeight
Gets the height of the entire chart. If it is omitted, the size of the chart is determined by the size of the window in which the chart is displayed.- Returns:
- the height
-
setHeight
Sets the height of the entire chart. If it is omitted, the size of the chart is determined by the size of the window in which the chart is displayed.- Parameters:
height- the new height
-
getType
Gets the chart type. The value is a namespaced token.- Returns:
- the type
-
setType
Sets the chart type. The value is a namespaced token.- Parameters:
type- the new type
-
getStyle
Gets the names that reference style mechanisms.- Returns:
- the style
-
setStyle
Sets the names that reference style mechanisms.- Parameters:
style- the new style
-
getLegend
Gets the legend for a chart.- Returns:
- the legend
-
setLegend
Sets the legend for a chart.- Parameters:
legend- the new legend
-
getPlotArea
Gets the coordinate system in which data is plotted including defined axes.- Returns:
- the plot area
-
setPlotArea
Sets the coordinate system in which data is plotted including defined axes.- Parameters:
plotArea- the new plot area
-
getTitle
Gets the title in a chart document.- Returns:
- the title
-
setTitle
Sets the title in a chart document.- Parameters:
title- the new title
-
getSubtitle
Gets the subtitle for a chart.- Returns:
- the subtitle
-
setSubtitle
Sets the subtitle for a chart.- Parameters:
subtitle- the new subtitle
-
getTable
Gets the root element for a table.- Returns:
- the table
-
setTable
Sets the root element for a table.- Parameters:
table- the new table
-