public class SimplePageMaster extends FormattingObject implements PageMaster
Modifier and Type | Class and Description |
---|---|
static class |
SimplePageMaster.PageDescription |
Modifier and Type | Field and Description |
---|---|
static SimplePageMaster.PageDescription |
DIN_A0
Describes a DIN A0 Page.
|
static SimplePageMaster.PageDescription |
DIN_A1
Describes a DIN A1 Page.
|
static SimplePageMaster.PageDescription |
DIN_A2
Describes a DIN A2 Page.
|
static SimplePageMaster.PageDescription |
DIN_A3
Describes a DIN A3 Page.
|
static SimplePageMaster.PageDescription |
DIN_A4
Describes a DIN A4 Page.
|
static SimplePageMaster.PageDescription |
DIN_A5
Describes a DIN A5 Page.
|
static SimplePageMaster.PageDescription |
DIN_A6
Describes a DIN A6 Page.
|
static SimplePageMaster.PageDescription |
DIN_C4
Describes a DIN C4 Page.
|
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
SimplePageMaster()
Creates a new SimplePageMaster.
|
SimplePageMaster(Measure width,
Measure height)
Creates a new SimplePageMaster.
|
SimplePageMaster(Measure width,
Measure height,
Measure margH,
Measure margV)
Creates a new SimplePageMaster.
|
SimplePageMaster(SimplePageMaster.PageDescription pageDesc)
Creates a new SimplePageMaster.
|
SimplePageMaster(java.lang.String masterName)
Creates a new SimplePageMaster.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addUnsafe(java.lang.Object child)
Adds a NodeElement to this FormattingObject.
|
java.lang.Object |
clone()
Clones this element.
|
SimplePageMaster |
cloned() |
Measure |
getBodyHeight(int pageNumber)
Gets the height of the body defined (or referenced) by this PageMaster excluding
Before- and AfterRegion.
|
Measure |
getBodyWidth(int pageNumber)
Gets the width of the body defined (or referenced) by this PageMaster excluding
Start- and EndRegion.
|
java.util.List |
getElements()
Gets childreen of this node.
|
LayoutMasterSet |
getLayoutMasterSet() |
Margin |
getMargin()
Gets the margin of this fo.
|
java.lang.String |
getMasterName()
Gets the master-name of this PageMaster.
|
Measure |
getPageHeight() |
Measure |
getPageWidth() |
RegionAfter |
getRegionAfter() |
RegionBefore |
getRegionBefore() |
RegionBody |
getRegionBody() |
RegionEnd |
getRegionEnd() |
RegionStart |
getRegionStart() |
SimplePageMaster |
getSimplePageMaster(int pageNumber)
Gets the SimplePageMaster of given page number.
|
SimplePageMaster[] |
getUsedSimplePageMasters()
Gets an array of all used (referenced) simple page masters of this
page master.
|
Values.WritingMode |
getWritingMode()
Gets the writing mode of this formatting object.
|
void |
removeRegionAfter() |
void |
removeRegionBefore() |
void |
removeRegionEnd() |
void |
removeRegionStart() |
void |
setHeight(Measure h) |
void |
setMargin(Margin margin)
Sets the margin of this fo.
|
void |
setMasterName(java.lang.String name)
Sets the master-name of this PageMaster.
|
void |
setRegionAfter(Measure height,
Measure space)
Defines the region at bottom of body (footer).
|
void |
setRegionBefore(Measure height,
Measure space)
Defines the region at top of body (header).
|
void |
setRegionEnd(Measure width,
Measure space)
Defines the region right of body.
|
void |
setRegionStart(Measure width,
Measure space)
Defines the region left of body.
|
void |
setRegionTopSize(Measure topMargin,
Measure extend,
Measure bottomMargin) |
void |
setWidth(Measure w) |
void |
setWritingMode(Values.WritingMode mode)
Sets the writing mode for this formatting object.
|
addElement, addElement, addUnsafe, cloned, clonedList, createUniqueID, createUniqueID, doGetAttribute, doSetAttribute, elementCount, get, getAbsolutePosition, getAccessibility, getAttributeMap, getBackground, getBorder, getDefinedAttributes, getDocument, getFont, getID, getLanguage, getLogger, getMeasureValue, getObjectValue, getObjectValue, getObjectValue, getObjectValue, getOrphans, getPadding, getParentFO, getRelativePosition, getWidows, hasBorder, hasID, hasPadding, isEmpty, isHyphenation, removeElement, removeElement, replaceElement, setAbsolutePosition, setAccessibility, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBackground, setBorder, setElement, setFont, setHyphenation, setID, setLanguage, setLanguage, setOrphans, setPadding, setRelativePosition, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, addElements, addElements, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, firstElement, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, lastElement, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeChangeListener, addElement, addElement, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, fireSaxEvents, firstElement, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getDefinedAttributes, getElements, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getQName, getRoot, indexOf, isEmpty, lastElement, removeAttributeChangeListener, removeElement, removeElement, replaceElement, setAttribute, setAttributes, setElement, setNamespace
getParent, setParent, writeTo
public static SimplePageMaster.PageDescription DIN_A0
public static SimplePageMaster.PageDescription DIN_A1
public static SimplePageMaster.PageDescription DIN_A2
public static SimplePageMaster.PageDescription DIN_A3
public static SimplePageMaster.PageDescription DIN_A4
public static SimplePageMaster.PageDescription DIN_A5
public static SimplePageMaster.PageDescription DIN_A6
public static SimplePageMaster.PageDescription DIN_C4
public SimplePageMaster()
public SimplePageMaster(SimplePageMaster.PageDescription pageDesc)
pageDesc
- PageDescriptionpublic SimplePageMaster(java.lang.String masterName)
masterName
- Master-Name.public SimplePageMaster(Measure width, Measure height)
width
- Width of page.height
- Height of page.public SimplePageMaster getSimplePageMaster(int pageNumber)
getSimplePageMaster
in interface PageMaster
pageNumber
- Page number.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
NodeElement
clone
in interface NodeElement
clone
in class FormattingObject
java.lang.CloneNotSupportedException
public SimplePageMaster cloned()
public LayoutMasterSet getLayoutMasterSet()
public Margin getMargin()
getMargin
in class FormattingObject
public void setMargin(Margin margin)
setMargin
in class FormattingObject
margin
- Margin.public java.lang.String getMasterName()
PageMaster
getMasterName
in interface PageMaster
public void setWidth(Measure w)
public void setHeight(Measure h)
public Measure getPageWidth()
public Measure getPageHeight()
public RegionBefore getRegionBefore()
public RegionAfter getRegionAfter()
public RegionEnd getRegionEnd()
public RegionStart getRegionStart()
public RegionBody getRegionBody()
public void removeRegionStart()
public void removeRegionEnd()
public void removeRegionBefore()
public void removeRegionAfter()
public void setMasterName(java.lang.String name)
PageMaster
setMasterName
in interface PageMaster
name
- MasterName.public void setRegionAfter(Measure height, Measure space)
height
- Height of region-after.space
- Space between body and region-after.public void setRegionBefore(Measure height, Measure space)
height
- Height of region-before.space
- Space between body and region-before.public void setRegionStart(Measure width, Measure space)
width
- Width of region-start.space
- Space between body and region-start.public void setRegionEnd(Measure width, Measure space)
width
- Width of region-end.space
- Space between body and region-end.public Measure getBodyWidth(int pageNumber)
PageMaster
getBodyWidth
in interface PageMaster
pageNumber
- Number of page in PageSequence relative to point where is
PageMaster is used.public Measure getBodyHeight(int pageNumber)
PageMaster
getBodyHeight
in interface PageMaster
pageNumber
- Number of page in PageSequence relative to point where is
PageMaster is used.public void setRegionTopSize(Measure topMargin, Measure extend, Measure bottomMargin)
public SimplePageMaster[] getUsedSimplePageMasters()
PageMaster
getUsedSimplePageMasters
in interface PageMaster
public Values.WritingMode getWritingMode()
public void setWritingMode(Values.WritingMode mode)
mode
- Writing mode.public java.util.List getElements()
AbstractNode
NodeElement
or String
.getElements
in interface Node
getElements
in class AbstractNode
public boolean addUnsafe(java.lang.Object child)
FormattingObject
addUnsafe
in class FormattingObject
child
- Element.false
if this FO is unable to add object.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.