com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ChartPlotArea

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float getActualHeight()
      Specifies actual height of the chart element.
      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()
      Chart.
      IFormat getFormat()
      Returns the format of a plot area.
      float getHeight()
      Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1).
      int getLayoutTargetType()
      If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels).
      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.
      float getWidth()
      Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1).
      float getX()
      Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1).
      float getY()
      Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1).
      boolean isLocationAutocalculated()
      Defines how location should be calculated: true – calculated automatically; defined by the X, Y, Width, Height properties.
      void setHeight(float value)
      Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1).
      void setLayoutTargetType(int value)
      If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels).
      void setWidth(float value)
      Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1).
      void setX(float value)
      Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1).
      void setY(float value)
      Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1).
      • Methods inherited from class java.lang.Object

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

      • getX

        public final float getX()

        Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

        Specified by:
        getX in interface ILayoutable
      • setX

        public final void setX(float value)

        Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

        Specified by:
        setX in interface ILayoutable
      • getY

        public final float getY()

        Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

        Specified by:
        getY in interface ILayoutable
      • setY

        public final void setY(float value)

        Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

        Specified by:
        setY in interface ILayoutable
      • getWidth

        public final float getWidth()

        Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

        Specified by:
        getWidth in interface ILayoutable
      • setWidth

        public final void setWidth(float value)

        Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

        Specified by:
        setWidth in interface ILayoutable
      • getHeight

        public final float getHeight()

        Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

        Specified by:
        getHeight in interface ILayoutable
      • setHeight

        public final void setHeight(float value)

        Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1). 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
      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.

      • isLocationAutocalculated

        public final boolean isLocationAutocalculated()

        Defines how location should be calculated: true – calculated automatically; defined by the X, Y, Width, Height properties. Read-only boolean.

      • getLayoutTargetType

        public final int getLayoutTargetType()

        If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels). Read/write LayoutTargetType(getLayoutTargetType()/setLayoutTargetType(int)).

          Presentation presentation = new Presentation();
          try
          {
              ISlide slide = presentation.getSlides().get_Item(0);
              IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 100, 600, 400);
              chart.getPlotArea().setX(0.2f);
              chart.getPlotArea().setY(0.2f);
              chart.getPlotArea().setWidth(0.7f);
              chart.getPlotArea().setHeight(0.7f);
              chart.getPlotArea().setLayoutTargetType(LayoutTargetType.Inner);
              ...
          } finally {
              if (presentation != null) presentation.dispose();
          }
          
        Specified by:
        getLayoutTargetType in interface IChartPlotArea
      • setLayoutTargetType

        public final void setLayoutTargetType(int value)

        If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels). Read/write LayoutTargetType(getLayoutTargetType()/setLayoutTargetType(int)).

          Presentation presentation = new Presentation();
          try
          {
              ISlide slide = presentation.getSlides().get_Item(0);
              IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 100, 600, 400);
              chart.getPlotArea().setX(0.2f);
              chart.getPlotArea().setY(0.2f);
              chart.getPlotArea().setWidth(0.7f);
              chart.getPlotArea().setHeight(0.7f);
              chart.getPlotArea().setLayoutTargetType(LayoutTargetType.Inner);
              ...
          } finally {
              if (presentation != null) presentation.dispose();
          }
          
        Specified by:
        setLayoutTargetType in interface IChartPlotArea
      • 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