public class ChartPlotArea extends DomObject<Chart> implements IChartPlotArea
Represents rectangle where chart should be plotted.
| Modifier and Type | Method and Description |
|---|---|
float |
getActualHeight()
Specifies actual height of the chart element.
|
float |
getActualWidth()
Specifies actual width of the chart element.
|
float |
getActualX()
Specifies actual x location (left) of the chart element relative to the left top corner of the chart.
|
float |
getActualY()
Specifies actual top of the chart element relative to the left top corner of the chart.
|
float |
getBottom()
Bottom.
|
IChart |
getChart()
Chart.
|
IFormat |
getFormat()
Returns the format of a plot area.
|
float |
getHeight()
Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1).
|
int |
getLayoutTargetType()
If layout of the plot area defined manually this property specifies whether
to layout the plot area by its inside (not including axis and axis labels) or outside
(including axis and axis labels).
|
IPresentation |
getPresentation()
Returns the parent presentation of a FillFormat.
|
float |
getRight()
Right.
|
IBaseSlide |
getSlide()
Returns the parent slide of a FillFormat.
|
float |
getWidth()
Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1).
|
float |
getX()
Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1).
|
float |
getY()
Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1).
|
boolean |
isLocationAutocalculated()
Defines how location should be calculated: true – calculated automatically; defined by the X, Y, Width, Height properties.
|
void |
setHeight(float value)
Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1).
|
void |
setLayoutTargetType(int value)
If layout of the plot area defined manually this property specifies whether
to layout the plot area by its inside (not including axis and axis labels) or outside
(including axis and axis labels).
|
void |
setWidth(float value)
Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1).
|
void |
setX(float value)
Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1).
|
void |
setY(float value)
Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1).
|
getParent_Immediatepublic final IFormat getFormat()
Returns the format of a plot area.
Read-only IFormat.
getFormat in interface IChartPlotAreapublic final float getX()
Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1).
Read/write float.
getX in interface ILayoutablepublic final void setX(float value)
Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1).
Read/write float.
setX in interface ILayoutablepublic final float getY()
Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1).
Read/write float.
getY in interface ILayoutablepublic final void setY(float value)
Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1).
Read/write float.
setY in interface ILayoutablepublic final float getWidth()
Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1).
Read/write float.
getWidth in interface ILayoutablepublic final void setWidth(float value)
Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1).
Read/write float.
setWidth in interface ILayoutablepublic final float getHeight()
Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1).
Read/write float.
getHeight in interface ILayoutablepublic final void setHeight(float value)
Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1).
Read/write float.
setHeight in interface ILayoutablepublic final float getRight()
Right.
Read-only float.
getRight in interface ILayoutablepublic final float getBottom()
Bottom.
Read-only float.
getBottom in interface ILayoutablepublic final IChart getChart()
Chart.
Read-only IChart.
getChart in interface IChartComponentpublic final boolean isLocationAutocalculated()
Defines how location should be calculated: true – calculated automatically; defined by the X, Y, Width, Height properties.
Read-only boolean.
public final int getLayoutTargetType()
If layout of the plot area defined manually this property specifies whether
to layout the plot area by its inside (not including axis and axis labels) or outside
(including axis and axis labels).
Read/write LayoutTargetType(getLayoutTargetType()/setLayoutTargetType(int)).
Presentation presentation = new Presentation();
try
{
ISlide slide = presentation.getSlides().get_Item(0);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 100, 600, 400);
chart.getPlotArea().setX(0.2f);
chart.getPlotArea().setY(0.2f);
chart.getPlotArea().setWidth(0.7f);
chart.getPlotArea().setHeight(0.7f);
chart.getPlotArea().setLayoutTargetType(LayoutTargetType.Inner);
...
} finally {
if (presentation != null) presentation.dispose();
}
getLayoutTargetType in interface IChartPlotAreapublic final void setLayoutTargetType(int value)
If layout of the plot area defined manually this property specifies whether
to layout the plot area by its inside (not including axis and axis labels) or outside
(including axis and axis labels).
Read/write LayoutTargetType(getLayoutTargetType()/setLayoutTargetType(int)).
Presentation presentation = new Presentation();
try
{
ISlide slide = presentation.getSlides().get_Item(0);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 100, 600, 400);
chart.getPlotArea().setX(0.2f);
chart.getPlotArea().setY(0.2f);
chart.getPlotArea().setWidth(0.7f);
chart.getPlotArea().setHeight(0.7f);
chart.getPlotArea().setLayoutTargetType(LayoutTargetType.Inner);
...
} finally {
if (presentation != null) presentation.dispose();
}
setLayoutTargetType in interface IChartPlotAreapublic final float getActualX()
Specifies actual x location (left) of the chart element relative to the left top corner of the chart.
Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
getActualX in interface IActualLayoutpublic final float getActualY()
Specifies actual top of the chart element relative to the left top corner of the chart.
Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
getActualY in interface IActualLayoutpublic final float getActualWidth()
Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
getActualWidth in interface IActualLayoutpublic final float getActualHeight()
Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
getActualHeight in interface IActualLayoutpublic final IBaseSlide getSlide()
Returns the parent slide of a FillFormat.
Read-only BaseSlide.
getSlide in interface ISlideComponentpublic final IPresentation getPresentation()
Returns the parent presentation of a FillFormat.
Read-only IPresentation.
getPresentation in interface IPresentationComponentCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.