|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.PdfElementBase com.aspose.pdf.elements.Paragraph
public abstract class Paragraph
Represents a paragraph object.
Constructor Summary | |
---|---|
Paragraph(ElementFactory elementFactory)
Initializes a new instance of the Paragraph class. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone an object. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
float |
getLeft()
Gets a float value that indicates the left position of the paragraph. |
MarginInfo |
getMargin()
Gets MarginInfo object that indicates the margin info of the paragraph. |
float |
getTop()
Gets a float value that indicates the top position of the paragraph. |
boolean |
isDisabled()
Gets a bool value that indicates whether this paragraph is disabled. The default value is false. |
boolean |
isFirstParagraph()
Gets a bool value that indicates whether the paragraph is the first paragraph of a page. |
boolean |
isKeptTogether()
Gets a bool value that indicates whether all lines in the paragraph are to remain on the same page. |
boolean |
isOnOddPage()
Gets a bool value that indicates whether this paragraph be shown in odd page only. |
void |
setDisabled(boolean disabled)
Sets a bool value that indicates whether this paragraph is disabled. The default value is false. |
void |
setFirstParagraph(boolean isFirstParagraph)
Sets a bool value that indicates whether the paragraph is the first paragraph of a page. |
void |
setKeptTogether(boolean keepTogether)
Sets a bool value that indicates whether all lines in the paragraph are to remain on the same page. |
void |
setLeft(float left)
Sets a float value that indicates the left position of the paragraph. |
void |
setMargin(MarginInfo marginInfo)
Sets MarginInfo object that indicates the margin info of the paragraph. |
void |
setOnOddPage(boolean onOddPage)
Sets a bool value that indicates whether this paragraph be shown in odd page only. |
void |
setTop(float top)
Sets a float value that indicates the top position of the paragraph. |
Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
---|
getElementFactory, getID, getNameIndex, setID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Paragraph(ElementFactory elementFactory)
elementFactory
- xsl-fo DOM element factory.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PdfElementBase
clone
in class PdfElementBase
java.lang.CloneNotSupportedException
Object.clone()
public boolean isDisabled()
public void setDisabled(boolean disabled)
public boolean isFirstParagraph()
public void setFirstParagraph(boolean isFirstParagraph)
public void setMargin(MarginInfo marginInfo)
marginInfo
- The MarginInfo to set.public MarginInfo getMargin()
public boolean isKeptTogether()
public void setKeptTogether(boolean keepTogether)
public boolean isOnOddPage()
public void setOnOddPage(boolean onOddPage)
public float getLeft()
public void setLeft(float left)
left
- The Left to set.public float getTop()
public void setTop(float top)
top
- The Top to set.public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class PdfElementBase
AsposeBaseException
PdfElementBase.getDOMElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |