com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ChartDataPointLevel

  • java.lang.Object
    • com.aspose.slides.ChartDataPointLevel
  • All Implemented Interfaces:
    IChartDataPointLevel


    public class ChartDataPointLevel
    extends java.lang.Object
    implements IChartDataPointLevel

    Represents data point level. Applies for Treemap and Sunburst chart.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IFormat getFormat()
      Represents formatting properties of data point level.
      IDataLabel getLabel()
      Represents data label of data point level.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      • Methods inherited from class java.lang.Object

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

      • getFormat

        public final IFormat getFormat()

        Represents formatting properties of data point level. Read/write IFormat.


         
         Presentation pres = new Presentation();
         try
         {
             IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.Treemap, 50, 50, 500, 400);
             IChartSeries series = chart.getChartData().getSeries().get_Item(0);
             IChartDataPointLevel dataPointLevel = series.getDataPoints().get_Item(7).getDataPointLevels().get_Item(2);
             dataPointLevel.getFormat().getFill().setFillType(FillType.Solid);
             dataPointLevel.getFormat().getFill().getSolidFillColor().setColor(Color.Red);
         } finally {
             if (pres != null) pres.dispose();
         }
         

        Specified by:
        getFormat in interface IChartDataPointLevel
      • getLabel

        public final IDataLabel getLabel()

        Represents data label of data point level. Applied for Treemap and Sunburst sereis types. Read-only IDataLabel.


         
         Presentation pres = new Presentation();
         try
         {
             IChart chart = pres.getSlides().get_Item(0).getShapes().addChart(ChartType.Sunburst, 50, 50, 500, 400);
             IChartSeries series = chart.getChartData().getSeries().get_Item(0);
             IChartDataPointLevel dataPointLevel = series.getDataPoints().get_Item(0).getDataPointLevels().get_Item(1);
             dataPointLevel.getLabel().getDataLabelFormat().setShowCategoryName(false);
             dataPointLevel.getLabel().getDataLabelFormat().setShowValue(true);
             dataPointLevel.getLabel().getDataLabelFormat().setShowSeriesName(true);
             dataPointLevel = series.getDataPoints().get_Item(12).getDataPointLevels().get_Item(1);
             dataPointLevel.getLabel().getTextFormat().getPortionFormat().getFillFormat().setFillType(FillType.Solid);
             dataPointLevel.getLabel().getTextFormat().getPortionFormat().getFillFormat().getSolidFillColor().setColor(Color.Red);
         } finally {
             if (pres != null) pres.dispose();
         }
         

        Specified by:
        getLabel in interface IChartDataPointLevel
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.