Skip to content
Last updated

API / geotoolkit / scene / exports / CustomPaperFormat / CustomPaperFormat

Class: CustomPaperFormat

exports.CustomPaperFormat.CustomPaperFormat

Custom paper format

Hierarchy

Table of contents

Constructors
  • [new CustomPaperFormat(name, width, height, top, bottom, left, right, unit, orientation)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.scene.exports.custompaperformat.custompaperformat.md#new custompaperformat(name, width, height, top, bottom, left, right, unit, orientation))
Methods

Contents

Constructors

new CustomPaperFormat(name, width, height, top, bottom, left, right, unit, orientation)

• new CustomPaperFormat(name, width, height, top, bottom, left, right, unit, orientation)

Parameters

Name Type
namestring
widthnumber
heightnumber
topnumber
bottomnumber
leftnumber
rightnumber
unitAbstractUnit
orientationPaperOrientation

Inherited from

PaperFormat.constructor

Methods

getBottom

▸ getBottom(): number

get bottom margin

Returns

number

bottom margin

Inherited from

PaperFormat.getBottom


getClassName

▸ getClassName(): string

Returns

string

Inherited from

PaperFormat.getClassName


getDimension

▸ getDimension(): Dimension

get dimension

Returns

Dimension

dimension

Inherited from

PaperFormat.getDimension


getHeight

▸ getHeight(): number

get paper height

Returns

number

height

Inherited from

PaperFormat.getHeight


getLeft

▸ getLeft(): number

get left margin

Returns

number

left margin

Inherited from

PaperFormat.getLeft


getName

▸ getName(): string

get the paper name

Returns

string

paper name

Inherited from

PaperFormat.getName


getOrientation

▸ getOrientation(): PaperOrientation

get paper orientation

Returns

PaperOrientation

orientation

Inherited from

PaperFormat.getOrientation


getRight

▸ getRight(): number

get right margin

Returns

number

right margin

Inherited from

PaperFormat.getRight


getTop

▸ getTop(): number

get top margin

Returns

number

top margin

Inherited from

PaperFormat.getTop


getUnit

▸ getUnit(): AbstractUnit

get paper unit

Returns

AbstractUnit

unit

Inherited from

PaperFormat.getUnit


getWidth

▸ getWidth(): number

get paper width

Returns

number

width

Inherited from

PaperFormat.getWidth


setBottom

▸ setBottom(bottom): CustomPaperFormat

set bottom margin

Parameters

Name Type Description
bottomnumberbottom margin

Returns

CustomPaperFormat

this


setDimension

▸ setDimension(dimension): CustomPaperFormat

set dimension

Parameters

Name Type Description
dimensionDimensionpaper dimension

Returns

CustomPaperFormat

this


setHeight

▸ setHeight(height): CustomPaperFormat

set paper height

Parameters

Name Type Description
heightnumberpaper height

Returns

CustomPaperFormat

this


setLeft

▸ setLeft(left): CustomPaperFormat

set left margin

Parameters

Name Type Description
leftnumberleft margin

Returns

CustomPaperFormat

this


setName

▸ setName(name): CustomPaperFormat

set the paper name

Parameters

Name Type Description
namestringpaper name

Returns

CustomPaperFormat

this


setOrientation

▸ setOrientation(orientation): CustomPaperFormat

set paper orientation

Parameters

Name Type Description
orientationPaperOrientationpaper orientation

Returns

CustomPaperFormat

this


setRight

▸ setRight(right): CustomPaperFormat

set right margin

Parameters

Name Type Description
rightnumberright margin

Returns

CustomPaperFormat

this


setTop

▸ setTop(top): CustomPaperFormat

set top margin

Parameters

Name Type Description
topnumbertop margin

Returns

CustomPaperFormat

this


setUnit

▸ setUnit(unit): CustomPaperFormat

set paper unit

Parameters

Name Type Description
unitAbstractUnitpaper unit

Returns

CustomPaperFormat

this


setWidth

▸ setWidth(width): CustomPaperFormat

set paper width

Parameters

Name Type Description
widthnumberpaper width

Returns

CustomPaperFormat

this


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

PaperFormat.getClassName