com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class DataLabelCollection

  • java.lang.Object
    • com.aspose.slides.DataLabelCollection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IDataLabel get_Item(int index)
      Gets the data label for the data point with the specified index.
      IChart getChart()
      Returns the parent chart.
      int getCount()
      Gets the number of all data labels in the collection.
      int getCountOfVisibleDataLabels()
      Gets the number of visible data labels in the collection.
      IDataLabelFormat getDefaultDataLabelFormat()
      Gets the default data label format.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      IChartSeries getParentSeries()
      Gets the parent series.
      IPresentation getPresentation()
      Returns the parent presentation of a FillFormat.
      IBaseSlide getSlide()
      Returns the parent slide of a FillFormat.
      void hide()
      Make data label hidden by default by setting all Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property to false state.
      int indexOf(IDataLabel value)
      Returns an index of the specified DataLabel in the collection.
      boolean isVisible()
      False means that data label is not visible by default (and so all Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property are false).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDataLabel> iterator()
      Returns an enumerator that iterates through the collection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.

      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDataLabel> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IDataLabel>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IDataLabel>
        Specified by:
        iterator in interface java.lang.Iterable<IDataLabel>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • isVisible

        public final boolean isVisible()

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


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

        public final void hide()

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


        If data label is not visible by default (IsVisible is false) you can make data label "visible by default" with setting Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property to true state.
        Specified by:
        hide in interface IDataLabelCollection
      • getCount

        public final int getCount()

        Gets the number of all data labels in the collection. Read-only int.

        Specified by:
        getCount in interface IDataLabelCollection
      • indexOf

        public final int indexOf(IDataLabel value)

        Returns an index of the specified DataLabel in the collection.

        Specified by:
        indexOf in interface IDataLabelCollection
        Parameters:
        value - DataLabel to find.
        Returns:
        Index of a DataLabel or -1 if DataLabel not from this collection.
      • get_Item

        public final IDataLabel get_Item(int index)

        Gets the data label for the data point with the specified index.


        Alternate way to access data label is: - series.getDataPoints().get_Item(i).getLabel() - manage label properties.
        Specified by:
        get_Item in interface IDataLabelCollection