public static class XslfoDocumentBuilder.Margins
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
XslfoDocumentBuilder.Margins()
Creates a new set of margins with the default values.
|
XslfoDocumentBuilder.Margins(float top,
float bottom,
float left,
float right)
Creates a new set of margins with the specified values.
|
Modifier and Type | Method and Description |
---|---|
float |
getMarginBottom()
Returns the margin-bottom property in cm.
|
float |
getMarginLeft()
Returns the margin-left property in cm.
|
float |
getMarginRight()
Returns the margin-right property of the master page in cm.
|
float |
getMarginTop()
Returns the margin-top propert in cm.
|
void |
setMarginBottom(float marginBottom)
Sets the margin-bottom property in cm.
|
void |
setMarginLeft(float marginLeft)
Sets the margin-left property in cm.
|
void |
setMarginRight(float marginRight)
Sets the margin-right property in cm.
|
void |
setMarginTop(float marginTop)
Sets the margin-top property in cm.
|
public XslfoDocumentBuilder.Margins()
public XslfoDocumentBuilder.Margins(float top, float bottom, float left, float right)
top
- value of the top margin in cmbottom
- value of the bottom margin in cmleft
- value of the left margin in cmright
- value of the right margin in cmpublic void setMarginTop(float marginTop)
marginTop
- new value of the top margin in cmpublic float getMarginTop()
public void setMarginBottom(float marginBottom)
marginBottom
- new value of the top margin in cmpublic float getMarginBottom()
public void setMarginLeft(float marginLeft)
marginLeft
- new value of the left margin in cmpublic float getMarginLeft()
public void setMarginRight(float marginRight)
marginRight
- new value of the right margin in cmpublic float getMarginRight()
Copyright © 2007, 2013 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html