com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ISlideSize

  • All Known Implementing Classes:
    SlideSize


    public interface ISlideSize

    Represents a size of slide.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int getOrientation()
      Returns or sets the slide orientation.
      java.awt.geom.Dimension2D getSize()
      Returns or sets the size in points.
      int getType()
      Returns or sets the type of slide size.
      void setOrientation(int value)
      Returns or sets the slide orientation.
      void setSize(float width, float height, int scaleType)
      Sets the size in points and scales content using scale type.
      void setSize(int type, int scaleType)
      Sets the type of slide size and scales content using scale type.
    • Method Detail

      • getOrientation

        int getOrientation()

        Returns or sets the slide orientation. Read/write SlideOrienation.


        Changing this value will swap slide's dimensions.
      • setOrientation

        void setOrientation(int value)

        Returns or sets the slide orientation. Read/write SlideOrienation.


        Changing this value will swap slide's dimensions.
      • setSize

        void setSize(int type,
                     int scaleType)

        Sets the type of slide size and scales content using scale type.

        Parameters:
        type - Slide size type.
        scaleType - Scale type of slide content.


        Assigning any value except SlideSizeType.Custom will change ISlideSize.SizeSize(getSize()) accordingly, but will keep ISlideSize.OrientationOrientation(getOrientation()/setOrientation(int)) intact.
      • setSize

        void setSize(float width,
                     float height,
                     int scaleType)

        Sets the size in points and scales content using scale type.

        Parameters:
        width - Width.
        height - Height.
        scaleType - Scale type of slide content.


        Assigning any value will reset TypeType(getType()) property to SlideSizeType.Custom and set ISlideSize.OrientationOrientation(getOrientation()/setOrientation(int)).