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 IChartComponent
public 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 IDataLabel
public 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 IDataLabel
public final java.lang.String getActualLabelText()
Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.
getActualLabelText
in interface IDataLabel
String
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 IOverridableText
text
- Text for a new TextFrameForOverriding.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 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 IOverridableText
public final IChartTextFormat getTextFormat()
Returns text format.
Read-only IChartTextFormat
.
getTextFormat
in interface IFormattedTextContainer
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
.
getX
in interface ILayoutable
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
.
setX
in interface ILayoutable
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
.
getY
in interface ILayoutable
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
.
setY
in interface ILayoutable
public 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 ILayoutable
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
.
setWidth
in interface ILayoutable
public 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 ILayoutable
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
.
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 IDataLabelFormat getDataLabelFormat()
Returns data label format.
Read-only IDataLabelFormat
.
getDataLabelFormat
in interface IDataLabel
public final IChartDataCell getValueFromCell()
Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.
getValueFromCell
in interface IDataLabel
public final void setValueFromCell(IChartDataCell value)
Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.
setValueFromCell
in interface IDataLabel
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