Interface IChartArea
public interface IChartArea
Represents the chart area of a chart. The chart area on a 2-D chart contains the axes, the chart title, the axis titles, and the legend. The chart area on a 3-D chart contains the chart title and the legend; it doesn’t include the plot area (the area within the chart area where the data is plotted). For information about the area where data is plotted and formatted, see the
IPlotArea object.
IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
IChartArea chartArea = chart.getChartArea();
chartArea.setRoundedCorners(true);
boolean roundedCorners = chartArea.getRoundedCorners();
Method Summary
All Methods Instance Methods Abstract Methods
Returns the
IFontFormat object that represents the font of the specified object.
Returns the parent object for the specified object.
boolean
Gets whether the embedded chart has rounded corners.
void
Sets whether the embedded chart has rounded corners.
Method Details
getParent
Returns the parent object for the specified object.
IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
IChartArea chartArea = chart.getChartArea();
IChart parentChart = chartArea.getParent();
Returns:
The parent object for the specified object.
getFont
Returns the
IFontFormat object that represents the font of the specified object.
IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
IChartArea chartArea = chart.getChartArea();
chartArea.getFont().setBold(true);
boolean bold = chartArea.getFont().getBold();
Returns:
The object that represents the font of the specified object.
getRoundedCorners
boolean getRoundedCorners ()
Gets whether the embedded chart has rounded corners.
IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
IChartArea chartArea = chart.getChartArea();
chartArea.setRoundedCorners(true);
boolean roundedCorners = chartArea.getRoundedCorners();
Returns:
true if the embedded chart has rounded corners; otherwise, false.
setRoundedCorners
void setRoundedCorners (boolean value)
Sets whether the embedded chart has rounded corners.
IChart chart = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200).getChart();
IChartArea chartArea = chart.getChartArea();
chartArea.setRoundedCorners(true);
boolean roundedCorners = chartArea.getRoundedCorners();
Parameters:
value - Whether the embedded chart has rounded corners.