com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class DataLabel

  • java.lang.Object
    • com.aspose.slides.DataLabel
    • Constructor Summary

      Constructors 
      Constructor and Description
      DataLabel(IChartDataPoint parentImmediate)
      Creates a new instance of DataLabel class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataLabel

        public DataLabel(IChartDataPoint parentImmediate)

        Creates a new instance of DataLabel class.

        Parameters:
        parentImmediate - Parent ChartDataPoint.
    • Method Detail

      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.

      • isVisible

        public final boolean isVisible()

        False means that data label is not visible (and so all Show*-flags (ShowValue, ...) are false). Read-only boolean.


        If data label is visible you can make it hidden with Hide() method. But if data label is not visible (IsVisible is false) you can make data label visible with setting Show*-flags (ShowValue, ...) to true state.
        Specified by:
        isVisible in interface IDataLabel
      • hide

        public final void hide()

        Make data label hidden by setting all Show*-flags (ShowValue, ...) to false state. IsVisible will be false after this.


        If data label is not visible (IsVisible is false) you can make data label visible with setting Show*-flags (ShowValue, ...) to true state.
        Specified by:
        hide in interface IDataLabel
      • getActualLabelText

        public final java.lang.String getActualLabelText()

        Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.

        Specified by:
        getActualLabelText in interface IDataLabel
        Returns:
        The String object.
      • addTextFrameForOverriding

        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.

        Specified by:
        addTextFrameForOverriding in interface IOverridableText
        Parameters:
        text - Text for a new TextFrameForOverriding.
      • 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 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.

        Specified by:
        getTextFrameForOverriding in interface IOverridableText
      • 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.

        Specified by:
        getX in interface ILayoutable
      • setX

        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.

        Specified by:
        setX in interface ILayoutable
      • 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.

        Specified by:
        getY in interface ILayoutable
      • setY

        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.

        Specified by:
        setY in interface ILayoutable
      • 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.

        Specified by:
        getWidth in interface ILayoutable
      • setWidth

        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.

        Specified by:
        setWidth in interface ILayoutable
      • 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.

        Specified by:
        getHeight in interface ILayoutable
      • setHeight

        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.

        Specified by:
        setHeight in interface ILayoutable
      • getRight

        public final float getRight()

        Right. Read-only float.

        Specified by:
        getRight in interface ILayoutable
      • getBottom

        public final float getBottom()

        Bottom. Read-only float.

        Specified by:
        getBottom in interface ILayoutable
      • getValueFromCell

        public final IChartDataCell getValueFromCell()

        Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.

        Specified by:
        getValueFromCell in interface IDataLabel
      • setValueFromCell

        public final void setValueFromCell(IChartDataCell value)

        Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.

        Specified by:
        setValueFromCell in interface IDataLabel
      • getActualX

        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.

        Specified by:
        getActualX in interface IActualLayout
      • getActualY

        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.

        Specified by:
        getActualY in interface IActualLayout
      • getActualWidth

        public final float getActualWidth()

        Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read float.

        Specified by:
        getActualWidth in interface IActualLayout
      • getActualHeight

        public final float getActualHeight()

        Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read float.

        Specified by:
        getActualHeight in interface IActualLayout