Package org.docx4j.dml.chart
Class CTPageSetup
java.lang.Object
org.docx4j.dml.chart.CTPageSetup
- All Implemented Interfaces:
Child
public class CTPageSetup extends java.lang.Object implements Child
Java class for CT_PageSetup complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_PageSetup">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
<attribute name="orientation" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_PageSetupOrientation" default="default" />
<attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}int" default="600" />
<attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}int" default="600" />
<attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.BooleanblackAndWhiteprotected java.lang.Longcopiesprotected java.lang.Booleandraftprotected java.lang.LongfirstPageNumberprotected java.lang.IntegerhorizontalDpiprotected STPageSetupOrientationorientationprotected java.lang.LongpaperSizeprotected java.lang.BooleanuseFirstPageNumberprotected java.lang.IntegerverticalDpi -
Constructor Summary
Constructors Constructor Description CTPageSetup() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.longgetCopies()Gets the value of the copies property.longgetFirstPageNumber()Gets the value of the firstPageNumber property.intgetHorizontalDpi()Gets the value of the horizontalDpi property.STPageSetupOrientationgetOrientation()Gets the value of the orientation property.longgetPaperSize()Gets the value of the paperSize property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.intgetVerticalDpi()Gets the value of the verticalDpi property.booleanisBlackAndWhite()Gets the value of the blackAndWhite property.booleanisDraft()Gets the value of the draft property.booleanisUseFirstPageNumber()Gets the value of the useFirstPageNumber property.voidsetBlackAndWhite(java.lang.Boolean value)Sets the value of the blackAndWhite property.voidsetCopies(java.lang.Long value)Sets the value of the copies property.voidsetDraft(java.lang.Boolean value)Sets the value of the draft property.voidsetFirstPageNumber(java.lang.Long value)Sets the value of the firstPageNumber property.voidsetHorizontalDpi(java.lang.Integer value)Sets the value of the horizontalDpi property.voidsetOrientation(STPageSetupOrientation value)Sets the value of the orientation property.voidsetPaperSize(java.lang.Long value)Sets the value of the paperSize property.voidsetParent(java.lang.Object parent)voidsetUseFirstPageNumber(java.lang.Boolean value)Sets the value of the useFirstPageNumber property.voidsetVerticalDpi(java.lang.Integer value)Sets the value of the verticalDpi property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
paperSize
protected java.lang.Long paperSize -
firstPageNumber
protected java.lang.Long firstPageNumber -
orientation
-
blackAndWhite
protected java.lang.Boolean blackAndWhite -
draft
protected java.lang.Boolean draft -
useFirstPageNumber
protected java.lang.Boolean useFirstPageNumber -
horizontalDpi
protected java.lang.Integer horizontalDpi -
verticalDpi
protected java.lang.Integer verticalDpi -
copies
protected java.lang.Long copies
-
-
Constructor Details
-
CTPageSetup
public CTPageSetup()
-
-
Method Details
-
getPaperSize
public long getPaperSize()Gets the value of the paperSize property.- Returns:
- possible object is
Long
-
setPaperSize
public void setPaperSize(java.lang.Long value)Sets the value of the paperSize property.- Parameters:
value- allowed object isLong
-
getFirstPageNumber
public long getFirstPageNumber()Gets the value of the firstPageNumber property.- Returns:
- possible object is
Long
-
setFirstPageNumber
public void setFirstPageNumber(java.lang.Long value)Sets the value of the firstPageNumber property.- Parameters:
value- allowed object isLong
-
getOrientation
Gets the value of the orientation property.- Returns:
- possible object is
STPageSetupOrientation
-
setOrientation
Sets the value of the orientation property.- Parameters:
value- allowed object isSTPageSetupOrientation
-
isBlackAndWhite
public boolean isBlackAndWhite()Gets the value of the blackAndWhite property.- Returns:
- possible object is
Boolean
-
setBlackAndWhite
public void setBlackAndWhite(java.lang.Boolean value)Sets the value of the blackAndWhite property.- Parameters:
value- allowed object isBoolean
-
isDraft
public boolean isDraft()Gets the value of the draft property.- Returns:
- possible object is
Boolean
-
setDraft
public void setDraft(java.lang.Boolean value)Sets the value of the draft property.- Parameters:
value- allowed object isBoolean
-
isUseFirstPageNumber
public boolean isUseFirstPageNumber()Gets the value of the useFirstPageNumber property.- Returns:
- possible object is
Boolean
-
setUseFirstPageNumber
public void setUseFirstPageNumber(java.lang.Boolean value)Sets the value of the useFirstPageNumber property.- Parameters:
value- allowed object isBoolean
-
getHorizontalDpi
public int getHorizontalDpi()Gets the value of the horizontalDpi property.- Returns:
- possible object is
Integer
-
setHorizontalDpi
public void setHorizontalDpi(java.lang.Integer value)Sets the value of the horizontalDpi property.- Parameters:
value- allowed object isInteger
-
getVerticalDpi
public int getVerticalDpi()Gets the value of the verticalDpi property.- Returns:
- possible object is
Integer
-
setVerticalDpi
public void setVerticalDpi(java.lang.Integer value)Sets the value of the verticalDpi property.- Parameters:
value- allowed object isInteger
-
getCopies
public long getCopies()Gets the value of the copies property.- Returns:
- possible object is
Long
-
setCopies
public void setCopies(java.lang.Long value)Sets the value of the copies property.- Parameters:
value- allowed object isLong
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-