public class ChartPlotArea extends java.lang.Object 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).
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
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).
|
public final IFormat getFormat()
Returns the format of a plot area.
Read-only IFormat
.
getFormat
in interface IChartPlotArea
public 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 ILayoutable
public 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 ILayoutable
public 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 ILayoutable
public 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 ILayoutable
public 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 ILayoutable
public 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 ILayoutable
public 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 ILayoutable
public 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 ILayoutable
public final float getRight()
Right.
Read-only float
.
getRight
in interface ILayoutable
public final float getBottom()
Bottom.
Read-only float
.
getBottom
in interface ILayoutable
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
public final IChart getChart()
Chart.
Read-only IChart
.
getChart
in interface IChartComponent
public 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 IChartPlotArea
public 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 IChartPlotArea
public 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 IActualLayout
public 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 IActualLayout
public final float getActualWidth()
Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
Read float
.
getActualWidth
in interface IActualLayout
public final float getActualHeight()
Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
Read float
.
getActualHeight
in interface IActualLayout
public final IBaseSlide getSlide()
Returns the parent slide of a FillFormat.
Read-only BaseSlide
.
getSlide
in interface ISlideComponent
public final IPresentation getPresentation()
Returns the parent presentation of a FillFormat.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent