Home Reference Source
public class | source

PageSize

Extends:

TypedObject → PageSize

Stores information about the common paper formats

Static Method Summary

Static Public Methods
public static

getByName(name: *): *

Gets the paper size by name

public static

getBySize(width: *, height: *): *

Gets the paper size given the width and the height

Constructor Summary

Public Constructor
public

constructor(name: *, width: *, height: *)

Member Summary

Public Members
public

height: *

public
public

name: *

public

width: *

Method Summary

Public Methods
public

clone(): *

Clones the paper size

public
public

getHeight(): *

Height of the paper size

public

getWidth(): *

Width of the paper size

public

rotate(): *

Flips the orientation from potrait to landscape and back

public

setHeight(val: *)

public

setWidth(val: *)

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

Static Public Methods

public static getByName(name: *): * source

Gets the paper size by name

Params:

NameTypeAttributeDescription
name *

Return:

*

public static getBySize(width: *, height: *): * source

Gets the paper size given the width and the height

Params:

NameTypeAttributeDescription
width *
height *

Return:

*

Public Constructors

public constructor(name: *, width: *, height: *) source

Override:

TypedObject#constructor

Params:

NameTypeAttributeDescription
name *
width *
height *

Public Members

public height: * source

public isLandscape: boolean source

public name: * source

public width: * source

Public Methods

public clone(): * source

Clones the paper size

Return:

*

public getClassNames(): string[] source

Returns a list of strings that represent the object hierarchy for this object.

Override:

TypedObject#getClassNames

Return:

string[]

public getHeight(): * source

Height of the paper size

Return:

*

public getWidth(): * source

Width of the paper size

Return:

*

public rotate(): * source

Flips the orientation from potrait to landscape and back

Return:

*

public setHeight(val: *) source

Params:

NameTypeAttributeDescription
val *

public setWidth(val: *) source

Params:

NameTypeAttributeDescription
val *