com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class SlideSize

  • java.lang.Object
    • com.aspose.slides.SlideSize
  • All Implemented Interfaces:
    ISlideSize


    public class SlideSize
    extends java.lang.Object
    implements ISlideSize

    Represents a size of slide.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getOrientation()
      Returns or sets the slide orientation.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      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.
      • Methods inherited from class java.lang.Object

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

      • getOrientation

        public final int getOrientation()

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


        Changing this value will swap slide's dimensions.

        Specified by:
        getOrientation in interface ISlideSize
      • setOrientation

        public final void setOrientation(int value)

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


        Changing this value will swap slide's dimensions.

        Specified by:
        setOrientation in interface ISlideSize
      • setSize

        public final void setSize(int type,
                                  int scaleType)

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

        Specified by:
        setSize in interface ISlideSize
        Parameters:
        type - Slide size type.
        scaleType - Scale type of slide content.


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

      • setSize

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

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

        Specified by:
        setSize in interface ISlideSize
        Parameters:
        width - Width.
        height - Height.
        scaleType - Scale type of slide content.


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

      • getParent_Immediate

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

        Returns Parent_Immediate object. Read-only IDOMObject.