ChartTitle

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IChartTitle, com.aspose.slides.IDOMObject

public class ChartTitle implements IChartTitle, IDOMObject

Represents chart title properties.

Methods

MethodDescription
getX()Returns or sets the x coordinate of a title as a fraction of the width of the chart.
setX(float value)Returns or sets the x coordinate of a title as a fraction of the width of the chart.
getY()Returns or sets the y coordinate of a title as a fraction of the height of the chart.
setY(float value)Returns or sets the y coordinate of a title as a fraction of the height of the chart.
getWidth()Returns or sets the width of a title as a fraction of the width of the chart.
setWidth(float value)Returns or sets the width of a title as a fraction of the width of the chart.
getHeight()Returns or sets the height of a title as a fraction of the height of the chart.
setHeight(float value)Returns or sets the height of a title as a fraction of the height of the chart.
getRight()Right.
getBottom()Bottom.
getOverlay()Determines whether other chart elements shall be allowed to overlap title.
setOverlay(boolean value)Determines whether other chart elements shall be allowed to overlap title.
getFormat()Returns the fill, line, effect styles of a title.
addTextFrameForOverriding(String text)Initialize TextFrameForOverriding with the text in paramener “text”.
getTextFrameForOverriding()Can contain a rich formatted text.
getTextFormat()Returns text format.
getParent_Immediate()
getChart()Returns the parent chart.
getSlide()Returns the parent slide of a FillFormat.
getPresentation()Returns the parent presentation of a FillFormat.

getX()

public final float getX()

Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float.

Returns: float

setX(float value)

public final void setX(float value)

Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getY()

public final float getY()

Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float.

Returns: float

setY(float value)

public final void setY(float value)

Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getWidth()

public final float getWidth()

Returns or sets the width of a title as a fraction of the width of the chart. Read/write float.

Returns: float

setWidth(float value)

public final void setWidth(float value)

Returns or sets the width of a title as a fraction of the width of the chart. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getHeight()

public final float getHeight()

Returns or sets the height of a title as a fraction of the height of the chart. Read/write float.

Returns: float

setHeight(float value)

public final void setHeight(float value)

Returns or sets the height of a title as a fraction of the height of the chart. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getRight()

public final float getRight()

Right. Read-only float.

Returns: float

getBottom()

public final float getBottom()

Bottom. Read-only float.

Returns: float

getOverlay()

public final boolean getOverlay()

Determines whether other chart elements shall be allowed to overlap title. Read/write boolean.

Returns: boolean

setOverlay(boolean value)

public final void setOverlay(boolean value)

Determines whether other chart elements shall be allowed to overlap title. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getFormat()

public final IFormat getFormat()

Returns the fill, line, effect styles of a title. Read-only IFormat.

Returns: IFormat

addTextFrameForOverriding(String text)

public final ITextFrame addTextFrameForOverriding(String text)

Initialize TextFrameForOverriding with the text in paramener “text”. If TextFrameForOverriding is already initialized then simply changes its text.

Parameters:

ParameterTypeDescription
textjava.lang.StringText for a new TextFrameForOverriding.

Returns: ITextFrame

getTextFrameForOverriding()

public final ITextFrame getTextFrameForOverriding()

Can contain a rich formatted text. If this property is not null then this formatted text value overrides auto-generated text. Auto-generated text is an implicit property of the data label, the display unit label of the value axis, the axis title, the chart title, the label of the trendline. Auto-generated text is formatted with the IFormattedTextContainer.TextFormat property. Read-only ITextFrame.

Returns: ITextFrame

getTextFormat()

public final IChartTextFormat getTextFormat()

Returns text format. Read-only IChartTextFormat.

Returns: IChartTextFormat

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject

getChart()

public final IChart getChart()

Returns the parent chart. Read-only IChart.

Returns: IChart

getSlide()

public final IBaseSlide getSlide()

Returns the parent slide of a FillFormat. Read-only BaseSlide.

Returns: IBaseSlide

getPresentation()

public final IPresentation getPresentation()

Returns the parent presentation of a FillFormat. Read-only IPresentation.

Returns: IPresentation