public class DataLabel extends java.lang.Object implements IDataLabel
Represents a series labels.
| Constructor and Description |
|---|
DataLabel(IChartDataPoint parentImmediate)
Creates a new instance of DataLabel class.
|
| Modifier and Type | Method and Description |
|---|---|
ITextFrame |
addTextFrameForOverriding(java.lang.String text)
Initialize TextFrameForOverriding with the text in paramener "text".
|
float |
getActualHeight()
Specifies actual height of the chart element.
|
java.lang.String |
getActualLabelText()
Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.
|
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()
Returns the parent chart.
|
IDataLabelFormat |
getDataLabelFormat()
Returns data label format.
|
float |
getHeight()
Returns or sets the height of a title as a fraction of the height of the chart.
|
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.
|
IChartTextFormat |
getTextFormat()
Returns text format.
|
ITextFrame |
getTextFrameForOverriding()
Can contain a rich formatted text.
|
IChartDataCell |
getValueFromCell()
Gets or sets workbook data cell.
|
float |
getWidth()
Returns or sets the width of a title as a fraction of the width of the chart.
|
float |
getX()
Returns or sets the x coordinate of a title as a fraction of the width of the chart.
|
float |
getY()
Returns or sets the y coordinate of a title as a fraction of the height of the chart.
|
void |
hide()
Make data label hidden by setting all Show*-flags (ShowValue, ...) to false state.
|
boolean |
isVisible()
False means that data label is not visible (and so all Show*-flags (ShowValue, ...) are false).
|
void |
setHeight(float value)
Returns or sets the height of a title as a fraction of the height of the chart.
|
void |
setValueFromCell(IChartDataCell value)
Gets or sets workbook data cell.
|
void |
setWidth(float value)
Returns or sets the width of a title as a fraction of the width of the chart.
|
void |
setX(float value)
Returns or sets the x coordinate of a title as a fraction of the width of the chart.
|
void |
setY(float value)
Returns or sets the y coordinate of a title as a fraction of the height of the chart.
|
public DataLabel(IChartDataPoint parentImmediate)
Creates a new instance of DataLabel class.
parentImmediate - Parent ChartDataPoint.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
public final IChart getChart()
Returns the parent chart.
Read-only IChart.
getChart in interface IChartComponentpublic final boolean isVisible()
False means that data label is not visible (and so all Show*-flags (ShowValue, ...) are false).
Read-only boolean.
isVisible in interface IDataLabelpublic final void hide()
Make data label hidden by setting all Show*-flags (ShowValue, ...) to false state. IsVisible will be false after this.
hide in interface IDataLabelpublic final java.lang.String getActualLabelText()
Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.
getActualLabelText in interface IDataLabelString object.public final ITextFrame addTextFrameForOverriding(java.lang.String text)
Initialize TextFrameForOverriding with the text in paramener "text". If TextFrameForOverriding is already initialized then simply changes its text.
addTextFrameForOverriding in interface IOverridableTexttext - Text for a new TextFrameForOverriding.ITextFramepublic final ITextFrame getTextFrameForOverriding()
Can contain a rich formatted text. If this property is not null then this
formatted text value overrides auto-generated text of data label.
Auto-generated text of data label means text that is managed by ShowSeriesName,
ShowValue, ... properties and is formatted with the TextFormatManager.TextFormat property.
Read-only ITextFrame.
getTextFrameForOverriding in interface IOverridableTextpublic final IChartTextFormat getTextFormat()
Returns text format.
Read-only IChartTextFormat.
getTextFormat in interface IFormattedTextContainerpublic final float getX()
Returns or sets the x coordinate of a title as a fraction of the width of the chart.
Read/write float.
getX in interface ILayoutablepublic 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.
setX in interface ILayoutablepublic final float getY()
Returns or sets the y coordinate of a title as a fraction of the height of the chart.
Read/write float.
getY in interface ILayoutablepublic 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.
setY in interface ILayoutablepublic final float getWidth()
Returns or sets the width of a title as a fraction of the width of the chart.
Read/write float.
getWidth in interface ILayoutablepublic 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.
setWidth in interface ILayoutablepublic final float getHeight()
Returns or sets the height of a title as a fraction of the height of the chart.
Read/write float.
getHeight in interface ILayoutablepublic 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.
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 IDataLabelFormat getDataLabelFormat()
Returns data label format.
Read-only IDataLabelFormat.
getDataLabelFormat in interface IDataLabelpublic final IChartDataCell getValueFromCell()
Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.
getValueFromCell in interface IDataLabelpublic final void setValueFromCell(IChartDataCell value)
Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.
setValueFromCell in interface IDataLabelpublic 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.