ISlideSize

public interface ISlideSize

Represents a size of slide.

Methods

MethodDescription
getSize()Returns or sets the size in points.
getType()Returns or sets the type of slide size.
getOrientation()Returns or sets the slide orientation.
setOrientation(int value)Returns or sets the slide orientation.
setSize(int type, int scaleType)Sets the type of slide size and scales content using scale type.
setSize(float width, float height, int scaleType)Sets the size in points and scales content using scale type.

getSize()

public abstract Dimension2D getSize()

Returns or sets the size in points. Read/write java.awt.geom.Dimension2D.


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

Returns: java.awt.geom.Dimension2D

getType()

public abstract int getType()

Returns or sets the type of slide size. Read/write SlideSizeType.


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

Returns: int

getOrientation()

public abstract int getOrientation()

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


Changing this value will swap slide’s dimensions.

Returns: int

setOrientation(int value)

public abstract void setOrientation(int value)

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


Changing this value will swap slide’s dimensions.

Parameters:

ParameterTypeDescription
valueint

setSize(int type, int scaleType)

public abstract void setSize(int type, int scaleType)

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

Parameters:

ParameterTypeDescription
typeintSlide size type.
scaleTypeintScale type of slide content.

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

setSize(float width, float height, int scaleType)

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

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

Parameters:

ParameterTypeDescription
widthfloatWidth.
heightfloatHeight.
scaleTypeintScale type of slide content.

Assigning any value will reset (#getType.getType) property to SlideSizeType.Custom and set (getOrientation/setOrientation(int)). |