SaveOptions.MarginInfo

Inheritance: java.lang.Object

public static class SaveOptions.MarginInfo

Instance of this class represents information about page margin That can be drown on some result document.

Constructors

ConstructorDescription
MarginInfo()Creates instance of MarginInfo
MarginInfo(SaveOptions.MarginPartStyle commonMargin)Creates instance of MarginInfo class and initializes all elements of page margin(Top, Left, Right, Bottom) with attributes copied from supplied margin style

Methods

MethodDescription
getTopMarginIfAny()Represents top page margin(if any)
setTopMarginIfAny(SaveOptions.MarginPartStyle topMarginIfAny)Represents top page margin(if any)
getRightMarginIfAny()Represents right page margin(if any)
setRightMarginIfAny(SaveOptions.MarginPartStyle rightMarginIfAny)Represents right page margin(if any)
getBottomMarginIfAny()Represents bottom page margin(if any)
setBottomMarginIfAny(SaveOptions.MarginPartStyle bottomMarginIfAny)Represents bottom page margin(if any)
getLeftMarginIfAny()Represents left page margin(if any)
setLeftMarginIfAny(SaveOptions.MarginPartStyle leftMarginIfAny)Represents left page margin(if any)

MarginInfo()

public MarginInfo()

Creates instance of MarginInfo

MarginInfo(SaveOptions.MarginPartStyle commonMargin)

public MarginInfo(SaveOptions.MarginPartStyle commonMargin)

Creates instance of MarginInfo class and initializes all elements of page margin(Top, Left, Right, Bottom) with attributes copied from supplied margin style

Parameters:

ParameterTypeDescription
commonMarginMarginPartStylestyle of margin parts that will be used for all elements of margin(left, right, top, bottom)

getTopMarginIfAny()

public SaveOptions.MarginPartStyle getTopMarginIfAny()

Represents top page margin(if any)

Returns: MarginPartStyle - MarginPartStyle instance

setTopMarginIfAny(SaveOptions.MarginPartStyle topMarginIfAny)

public void setTopMarginIfAny(SaveOptions.MarginPartStyle topMarginIfAny)

Represents top page margin(if any)

Parameters:

ParameterTypeDescription
topMarginIfAnyMarginPartStyleMarginPartStyle instance

getRightMarginIfAny()

public SaveOptions.MarginPartStyle getRightMarginIfAny()

Represents right page margin(if any)

Returns: MarginPartStyle - MarginPartStyle instance

setRightMarginIfAny(SaveOptions.MarginPartStyle rightMarginIfAny)

public void setRightMarginIfAny(SaveOptions.MarginPartStyle rightMarginIfAny)

Represents right page margin(if any)

Parameters:

ParameterTypeDescription
rightMarginIfAnyMarginPartStyleMarginPartStyle instance

getBottomMarginIfAny()

public SaveOptions.MarginPartStyle getBottomMarginIfAny()

Represents bottom page margin(if any)

Returns: MarginPartStyle - MarginPartStyle instance

setBottomMarginIfAny(SaveOptions.MarginPartStyle bottomMarginIfAny)

public void setBottomMarginIfAny(SaveOptions.MarginPartStyle bottomMarginIfAny)

Represents bottom page margin(if any)

Parameters:

ParameterTypeDescription
bottomMarginIfAnyMarginPartStyleMarginPartStyle instance

getLeftMarginIfAny()

public SaveOptions.MarginPartStyle getLeftMarginIfAny()

Represents left page margin(if any)

Returns: MarginPartStyle - MarginPartStyle instance

setLeftMarginIfAny(SaveOptions.MarginPartStyle leftMarginIfAny)

public void setLeftMarginIfAny(SaveOptions.MarginPartStyle leftMarginIfAny)

Represents left page margin(if any)

Parameters:

ParameterTypeDescription
leftMarginIfAnyMarginPartStyleMarginPartStyle instance