com.aspose.diagram
Class PageSize

java.lang.Object
    extended by com.aspose.diagram.PageSize

public class PageSize 
extends java.lang.Object

Contains information about page size for the generated images.


Constructor Summary
PageSize(int paperSizeFormat)
           Initializes a new instance of this class that can be used to set page size for the generated images.
PageSize(float width, float height)
           Initializes a new instance of this class that can be used to set page size for the generated images.
 
Property Getters/Setters Summary
floatgetHeight()
voidsetHeight(float)
           Gets or sets the page height in points for the the generated images.
intgetPaperSizeFormat()
voidsetPaperSizeFormat(int)
           Gets or sets the paper size format for the generated images. Can be PaperSizeFormat. The value of the property is PaperSizeFormat integer constant.
floatgetWidth()
voidsetWidth(float)
           Gets or sets the page width in points for the the generated images.
 

Constructor Detail

PageSize

public PageSize(int paperSizeFormat)
Initializes a new instance of this class that can be used to set page size for the generated images.
Parameters:
paperSizeFormat - A PaperSizeFormat value. Can be PaperSizeFormat.

PageSize

public PageSize(float width, float height)
         throws java.lang.Exception
Initializes a new instance of this class that can be used to set page size for the generated images.
Parameters:
width - Page width in points for the the generated images.
height - Page height in points for the the generated images.

Property Getters/Setters Detail

getWidth/setWidth

public float getWidth() / public void setWidth(float value)
Gets or sets the page width in points for the the generated images. The value must be > 0. If Width is set, Height must be set too.

getHeight/setHeight

public float getHeight() / public void setHeight(float value)
Gets or sets the page height in points for the the generated images. The value must be > 0. If Height is set,Width must be set too.

getPaperSizeFormat/setPaperSizeFormat

public int getPaperSizeFormat() / public void setPaperSizeFormat(int value)
Gets or sets the paper size format for the generated images. Can be PaperSizeFormat. The value of the property is PaperSizeFormat integer constant.

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.